Need help with Domoticz to ST Integration

Hello

I recently decided to utilize the Domoticz server for controlling two Yeelight LED lightstrips I have. The Domoticz server/app work great and very reliabily control the Yeelights. I did installed the Domoticz Smartapp as per instructions in this link http://thingsthataresmart.wiki/index.php?title=Domoticz_Server

Everything was working fine for a few days but then something changed and it appears that notifications from the Domoticz server to SmartThings are not happening. I see the following in the logs on the Domoticz

2018-07-12 08:10:37.072 Status: Notification: IDX 2 off
2018-07-12 08:10:37.078 Status: Notification: IDX 2 off
2018-07-12 08:10:37.082 Status: Notification: IDX 1 off
2018-07-12 08:10:37.086 Status: Notification: IDX 1 off
2018-07-12 08:10:37.832 Error: HTTP:
2018-07-12 08:10:38.355 Notification sent (http) => Failed
2018-07-12 08:10:38.824 Notification sent (http) => Failed
2018-07-12 08:10:38.355 Error: HTTP:
2018-07-12 08:10:38.824 Error: HTTP:
2018-07-12 08:10:39.343 Notification sent (http) => Failed
2018-07-12 08:10:39.342 Error: HTTP:

I tried deleting everything in the IDE and starting over but I still get the same behaviour. I tried domoticzUrl from the IDE in a seperate web browser (just to see what happens) and I get the following:

nullinvalid_token

It would appear to me that the URL from the IDE domoticzUrl is not working so notifications from the Domoticz server never get back to my SmartThings instance and thus control is broken.

Does any one have suggestions on how to fix/troubleshoot this? In the Smartapp on my mobile device there is an option to Revoke/Recreate Access Token but when I select that I get a screen that says “Something’s Wrong - We can’t load your screen right now”

Any help/suggesitons/feedback would be very much appreciated.

Cheers

Toby Field

Hi Toby, what version of the app are you running? And to which repo is it pointing? And what are the errors if any you see in live logging, specifically when selecting tree revoke access screen

According to the code in the IDE it looks to be 7.11. I am using the following for the repo (verbem Domoticz-Server master). I figured out the Revoke/Recreate Access Token issue. I had forgotten to enable OAuth in the SmartApp in the IDE. Once I did that the function worked fine.

I am still getting the error in the Domoticz server logs showing the following:

2018-07-12 22:24:03.550 (Kitchen Lightstrip 2) Color Switch (Kitchen Lightstrip 1)
2018-07-12 22:24:03.491 Status: User: Admin initiated a switch command (1/Kitchen Lightstrip 1/On)
2018-07-12 22:24:03.545 Status: Notification: IDX 1 on
2018-07-12 22:24:04.045 Notification sent (http) => Failed
2018-07-12 22:24:04.045 Error: HTTP:
2018-07-12 22:24:07.313 (Kitchen Lightstrip 2) Color Switch (Kitchen Lightstrip 2)
2018-07-12 22:24:07.792 Notification sent (http) => Failed
2018-07-12 22:24:07.250 Status: User: Admin initiated a switch command (2/Kitchen Lightstrip 2/On)
2018-07-12 22:24:07.309 Status: Notification: IDX 2 on
2018-07-12 22:24:07.792 Error: HTTP:

To me it looks like the Domoticz server is sending the notification but the URL that I have provided in the notifications section is not working. Does that make sense?

Is there a way I can test the URL to see if it works separately? I am trying to isolate where the issue is occurring and I am just not sure what is the best way to do this.

Thanks again for getting back to me. Any feedback/advice/next steps are greatly appreciated

Cheers

Toby

Ok I am an idiot. I figured out the URL thing. I was copying the wrong one.

I was taking the domoticzUrl instead of the correct one which is urlCustomActionHttp

Now my log files look nice and clean

2018-07-12 22:53:33.878 (Kitchen Lightstrip 2) Color Switch (Kitchen Lightstrip 1)
2018-07-12 22:53:33.422 Status: User: Admin initiated a switch command (1/Kitchen Lightstrip 1/On)
2018-07-12 22:53:33.875 Status: Notification: IDX 1 on
2018-07-12 22:53:34.466 Notification sent (http) => Success

The status in the SmartThings app updates quickly which is great.

Thanks again for responding. I am very happy with the Domoticz to Smartthings integration. It has made it so my Yeelight LED light strips are controllable from a variety of sources and the status updates in all the right places.

Cheers

Toby

Go to domoticz and copy paste the httpcustomactionurl into a browser. Might be that the copy paste included some extra char like a space, have seen that before.

EDIT Did not see you reply…thx! any suggestions or other things you need to make it more useful, please let me know

I follow up on this topic.
I have one dusksensor in Domo who are running.
I have also some temp sensors who I need to update my self in ST. They dont do it automaticly.
Running the lastet Domoticz server from Github.

this from my ST Log:
12:09:43: trace [callbackForEveryThing]

12:09:43: trace [callbackForEveryThing]

12:09:43: trace [callbackForEveryThing]

12:09:43: trace [socketSend] callbackhandler: [callbackForEveryThing]

12:09:43: trace [socketSend] callbackhandler: [callbackForEveryThing]

12:09:43: trace [socketSend] callbackhandler: [callbackForEveryThing]

12:09:23: trace [callbackForDevices] 22 [309, 194, 436, 441, 442, 443, 444, 445, 446, 447, 448, 449, 451, 452, 559, 560, 561, 562, 563, 564, 1664, 2076]

12:09:23: info smartapp_pause called by smartAppName=Domoticz Server, value=2, smartAppVersionId=b01822d9-0448-4d31-9349-ef521fe327d5

12:09:23: debug getChildDevices(false), children=22

12:09:23: trace [handleList] Delete from State devices

12:09:23: trace [handleList] Deleted, remove child devices

12:09:23: trace [handleList] New in Domoticz

12:09:23: trace [handleList]

12:09:23: info smartapp_pause called by smartAppName=Domoticz Server, value=2, smartAppVersionId=b01822d9-0448-4d31-9349-ef521fe327d5

12:09:23: trace [callbackForPlans] Domoticz response with Title : Plans number of items returned 3

12:09:23: trace [socketSend] callbackhandler: [handleList]

12:09:23: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=b01822d9-0448-4d31-9349-ef521fe327d5

12:09:23: trace [socketSend] callbackhandler: [callbackForScenes]

12:09:23: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=b01822d9-0448-4d31-9349-ef521fe327d5

12:09:23: trace [socketSend] callbackhandler: [callbackForPlans]

12:09:23: trace [refreshDevicesFromDomoticz]

12:09:13: trace [socketSend] callbackhandler: [aliveResponse]

12:09:13: trace [socketSend] callbackhandler: [aliveResponse]

Hallo Marius, i´ve been out a while, so sorry the late response, will take a look at it…

No stress.

I see when I choose one of these, it says type: domoticzSensor and whave Battery and Signal Strengt as child devices.
Shouldnt it also be one child device for the temperature?

@dudz40, Hey Martin, love your Domo to ST integration. I’m just about to roll-up my sleeves and dive in. Just one question before I do: the wiki summary suggests it does not support controlling thermostats in Domo from ST, but then when I read the detail documentation, there is a thermostat DH.

I have a Heatit thermostat that controls underfloor radiant heat in Domo that I’d like to control in ST. Any reason to believe it wouldn’t work? Thanks in advance.

Give it a try, might work out of the box. If not, ping me with the problem you encounter

Verzonden vanaf Samsung-tablet.

-------- Oorspronkelijk bericht --------

@dudz40 Martin, I tried your Domoticz-ST integration code. The installation process was very well documented, props to you. Seemed to go perfectly. I have setup a shadow ST device in Domoticz which works seamlessly and near immediately.

However, the other way (Domoticz device in ST) is a problem. I can’t find the one Domoticz thing (a thermostat) that I wanted to include in SmartThings.

Any ideas or troubleshooting I could do? I don’t see any errors in live logging, but I’m not sure what I’m looking for.

Could you send the output of the /json.htm?type=devices&rid=IDX. ?

Verzonden vanaf Samsung-tablet.

-------- Oorspronkelijk bericht --------

Nedd help with this integration.
I lost the last 2 weeks trying to link domoticz and smartthings but i encounter a lot of problems:

  1. After i install the app and I add the devices into the app, they appear onto domoticz but all the time in the hardware menu I can see 2 or 4 smartthings Hardware devices.
  2. Most of the ST devices are doubled in domoticz, so I have 2 devices in domoticz for teh same thermostat or the same light or the same motion detector
  3. sometime, after i switch off or on a light that light is going crazy, switching itself on and off rapidly, without any control.

my logs from domoticz look like this the light is going on and off rapidly:
2019-02-16 19:55:20.107 Status: User: Admin initiated a switch command (17/Light stairs IKEA E27/Off)

2019-02-16 19:55:20.108 Status: Notification: IDX 17 off

2019-02-16 19:55:21.868 Notification sent (http) => Success

2019-02-16 19:55:22.852 Notification sent (http) => Success

2019-02-16 19:55:24.027 Notification sent (http) => Success

2019-02-16 19:55:24.650 Notification sent (http) => Success

2019-02-16 19:55:25.305 Notification sent (http) => Success

2019-02-16 19:55:25.861 Notification sent (http) => Success

2019-02-16 19:55:26.391 Notification sent (http) => Success

2019-02-16 19:55:26.927 Notification sent (http) => Success

2019-02-16 19:55:28.182 Notification sent (http) => Success

Other times I have a lot of errors in logs like tis:
019-02-16 19:46:02.590 Error: HTTP:

2019-02-16 19:46:03.171 Notification sent (http) => Failed

2019-02-16 19:46:03.734 Notification sent (http) => Failed

2019-02-16 19:46:03.171 Error: HTTP:

2019-02-16 19:46:03.734 Error: HTTP:

2019-02-16 19:46:04.280 Notification sent (http) => Failed

2019-02-16 19:46:04.838 Notification sent (http) => Failed

2019-02-16 19:46:04.280 Error: HTTP:

2019-02-16 19:46:04.838 Error: HTTP:

2019-02-16 19:46:05.377 Notification sent (http) => Failed

2019-02-16 19:46:05.377 Error: HTTP:

2019-02-16 19:46:18.562 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 19:46:18.558 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 19:46:18.560 Status: Notification: IDX 15 off

Another log when the lights are acting crazy:
2019-02-16 20:05:11.186 Status: Notification: IDX 15 off

2019-02-16 20:05:11.234 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:11.236 Status: Notification: IDX 15 off

2019-02-16 20:05:12.246 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:12.293 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:12.587 Notification sent (http) => Success

2019-02-16 20:05:12.241 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/On)

2019-02-16 20:05:12.243 Status: Notification: IDX 15 on

2019-02-16 20:05:12.290 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/On)

2019-02-16 20:05:12.292 Status: Notification: IDX 15 on

2019-02-16 20:05:13.217 Notification sent (http) => Success

2019-02-16 20:05:13.423 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:13.467 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:13.420 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:13.422 Status: Notification: IDX 15 off

2019-02-16 20:05:13.464 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:13.466 Status: Notification: IDX 15 off

2019-02-16 20:05:14.408 Notification sent (http) => Success

2019-02-16 20:05:14.662 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:14.776 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:14.659 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/On)

2019-02-16 20:05:14.661 Status: Notification: IDX 15 on

2019-02-16 20:05:14.771 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/On)

2019-02-16 20:05:14.774 Status: Notification: IDX 15 on

2019-02-16 20:05:15.014 Notification sent (http) => Success

2019-02-16 20:05:15.646 Notification sent (http) => Success

2019-02-16 20:05:16.229 Notification sent (http) => Success

2019-02-16 20:05:16.356 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:16.444 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:16.886 Notification sent (http) => Success

2019-02-16 20:05:16.351 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:16.354 Status: Notification: IDX 15 off

2019-02-16 20:05:16.440 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:16.442 Status: Notification: IDX 15 off

2019-02-16 20:05:17.122 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:17.168 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:17.499 Notification sent (http) => Success

2019-02-16 20:05:17.119 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/On)

2019-02-16 20:05:17.121 Status: Notification: IDX 15 on

2019-02-16 20:05:17.163 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/On)

2019-02-16 20:05:17.166 Status: Notification: IDX 15 on

2019-02-16 20:05:18.150 Notification sent (http) => Success

2019-02-16 20:05:18.405 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:18.442 (SmartThings) Lighting 1 (Light bedroom dad Hive)

2019-02-16 20:05:18.402 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:18.403 Status: Notification: IDX 15 off

2019-02-16 20:05:18.439 Status: User: Admin initiated a switch command (15/Light bedroom dad Hive/Off)

2019-02-16 20:05:18.440 Status: Notification: IDX 15 off

I really like domoticz but it is very unstable in my config. Can you help me please?

And these are the logs from ST:
6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:38: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:38: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:38: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:38: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:38: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:37: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:37: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:37: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:37: trace [eventDomoticz] IDX switch with STATE IDX 15 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:36: trace [eventDomoticz] IDX switch with STATE IDX 15 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:36: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:35: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:35: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:35: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:35: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:35: trace [eventDomoticz] IDX switch with STATE IDX 15 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:34: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:34: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:34: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:34: trace [eventDomoticz] IDX switch with STATE IDX 15 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:33: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:33: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:33: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:33: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:33: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:32: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:32: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:32: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:32: trace [eventDomoticz] IDX switch with STATE IDX 15 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:31: trace [eventDomoticz] IDX switch with STATE IDX 15 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:31: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:31: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:31: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:31: trace [eventDomoticz] IDX switch with STATE IDX 15 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:30: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:30: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:30: trace HANDLER switch for 15

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:07:30: trace [eventDomoticz] IDX switch with STATE IDX 15 off

And another set:

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:49: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:49: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:48: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:48: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:47: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:47: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:47: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:47: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:47: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:46: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:46: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:46: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:46: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:45: trace HANDLER motion for 61

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:44: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:44: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:44: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:44: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: trace HANDLER motion for 63

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:43: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:42: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:42: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:41: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:41: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:41: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:41: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:40: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:40: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:40: trace [socketSend] Request: On callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:40: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:40: trace [eventDomoticz] IDX switch with STATE IDX 16 on

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:39: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=435b71cf-a417-492d-a7d0-076d1615dbbc

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:39: trace [socketSend] Request: Off callbackhandler: callbackLog

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:39: trace HANDLER switch for 16

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:39: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:39: trace [eventDomoticz] IDX switch with STATE IDX 16 off

6d6fabe7-2491-4fb9-92f7-a627a3ccfb4c 20:15:38: trace [eventDomoticz] IDX switch with STATE IDX 16 on

Hi Martin - great SmartApp I’ve almost got it working. I can see in the trace that the ST app is getting sensor data back from Domoticz (on a Rasp Pi on local network) but there seems to be an error somewhere as a sensor device type is not found. Any ideas? Running V7.30

43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: error java.lang.NullPointerException: Cannot invoke method hasAttribute() on null object @line 1726 (doCall)
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: error [defineDomoticzInSmartThings] Cannot create child device. null Error: physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘domoticzSensor’ in namespace ‘verbem’ not found.
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: trace [getHubID]
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: trace [defineDomoticzInSmartThings] Creating child device 1, domoticzSensor, Garden, [AddjMulti:1.0, AddjMulti2:1.0, AddjValue:0.0, AddjValue2:0.0, BatteryLevel:88, CustomImage:0, Data:18.4 C, 78 %, Description:, DewPoint:14.49, Favorite:1, HardwareID:2, HardwareName:Netatmo, HardwareType:Netatmo, HardwareTypeVal:54, HaveTimeout:false, Humidity:78, HumidityStatus:Wet, ID:02BE, LastUpdate:2019-07-13 21:07:49, Name:Garden, Notifications:true, PlanID:2, PlanIDs:[2], Protected:false, ShowNotifications:true, SignalLevel:2, SubType:WTGR800, Temp:18.399999999999999, Timers:false, Type:Temp + Humidity, TypeImg:temperature, Unit:0, Used:1, XOffset:0, YOffset:0, idx:1, trend:3]
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: info smartapp_pause called by smartAppName=Domoticz Server, value=2, smartAppVersionId=0b80cb92-d1e1-4415-9e07-05a1cd6de4a8
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: trace [handleList] Deleted scenes, remove child devices
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: trace [handleList] Deleted devices, remove child devices
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: trace [callbackForRoom] Domoticz response with Title : GetPlanDevices number of items returned 1
43c80ae1-709a-4aa7-9ffa-0d56681e7ee9 21:17:23: trace [callbackForPlans] Domoticz response with Title : Plans number of items returned 1

Hi Wardie, you need to add Device Type handler domoticzSensor in the IDE. Same way as the app or other device type jandlers you have added already. If you have the Git integration just add all DTHs from Domoticz-Server (master) repo.

Thanks for replying Martin. OK sorry about that, pretty obvious really…! Whole set from your repo added. It’s finding one room plan and one device with two sensors (correct) from my Netatmo (which work in Domoticz dashboard) are temp and humidity, but I noted some getResponse errors returning in the log still. No devices automatically appear on ST. Any ideas? I could email you the full log if you PM me address. I also tried to manually create a device using your DTH but no shakes. I must be missing something…

bfdb16fe-9b2c-427f-9773-146006cb6136 16:47:46: trace [refreshDevicesFromDomoticz]

bfdb16fe-9b2c-427f-9773-146006cb6136 16:47:34: trace [socketSend] Request: alive callbackhandler: aliveResponse
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:42: error [getResponse] [status:ERR]
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:42: error [getResponse] physicalgraph.device.HubResponse(index:02, mac:B827EB83081E, ip:C0A8004D, port:1F90, requestId:198cc75c-98e6-4445-bdd2-943643abf12b, hubId:de999549-4765-465f-9fb4-4f8306dfd36c, callback:callbackHumidityNotification)
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:41: error [getResponse] [status:ERR]
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:41: error [getResponse] physicalgraph.device.HubResponse(index:01, mac:B827EB83081E, ip:C0A8004D, port:1F90, requestId:5af9ac3b-5439-42c9-861e-dd083e9d6213, hubId:de999549-4765-465f-9fb4-4f8306dfd36c, callback:callbackSensorTempNotification)
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:41: error [getResponse] [status:ERR]
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:41: error [getResponse] physicalgraph.device.HubResponse(index:FC, mac:B827EB83081E, ip:C0A8004D, port:1F90, requestId:bff4431d-b11b-48a4-b024-0ee33f9cd946, hubId:de999549-4765-465f-9fb4-4f8306dfd36c, callback:callbackPressureNotification)
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:40: trace [socketSend] Request: SensorHumidityNotification callbackhandler: callbackHumidityNotification
bfdb16fe-9b2c-427f-9773-146006cb6136 16:46:40: trace [socketSend] Request: SensorTempNotification callbackhandler: callbackSensorTempNotification

Could you copy the comtent of httpcustomactionurl in domoticz into a browser and hit enter to see if you have a security problem?

Hey Martin! First of all thanks making this integration. I’ve run HASS before but got myself a ST and found your way of integrating my 433 devices through Domoticz with RFXTRX433E. I’m quite new to this, IDE, git and so on but I think I got it mostly right. I’ve read your wiki, read the post here, watched youtube. Although i havn’t been able to get my domo devices into ST.

I’ve made the smartapp and added it to ST Classic. Enabled OAuth. But the app differs some from the guide in the wiki. I can’t see “List installed devices”, I’ve got configure Domo server, Overview of device selection criteria, Create Composite Devices, Revoke/recreate access token and Define ST devices in Domo.

I have added your DHT motion, sensor, onoff and published them for me. I have the right “address” (graph-eu). I’ve added the address when in editing the code into domoticz Custom HTTP/Action, URL/Action. And the OAuth client secret (even tried the ID) to the end of the “string”:

https://graph-eu01-euwest1.api.smartthings.com/ide/app/editor/“XXXX”
Added it in Domo as:
https://graph-eu01-euwest1.api.smartthings.com/api/smartapps/installations/“XXXX”/EventDomoticz?access_token=“OAuthclientnumber”&message=#MESSAGE

When inserting that address in chrome I get a “invalid_token” respons. I have left the optinal field in the OAuth empty.

I cannot see any live logs in the ST.
The devices in Domo are PIR: Lightning 2, AC, Motion sensor and switches: Lightning 2, AC, On/Off.

I feel as quite a n00b (which I clearly am :smile:) but now I’m stuck. Any ideas?

Best regards,

Hello everyone! Who got this to work, im gonna buy a Rpi and a RFXTRX433E on blackfriday and i wanna do some 443mhz outlets to beging with. I already have the smartthings hub and some stuff. Reading here and some other places i understand i can combine theese 2 and domoticz. So i get the 433mhz outlets also in smarthings app?
And im wondering if someone can write a “Idiot proof guide”