SmartThings Community

Connection to Domoticz defined devices like Blinds and On/Off switches

somfy
x10
rgbw
project_shades

(Martin Verbeek) #524

Pretty sure it is not mine…


(Gareth) #525

@dudz40 - thanks for pulling this together. Was a bit of a struggle to follow the exact steps but got there in the end. I had the Invalid URL notification pop up despite everything working fine with the device. This may already exist but thought it would be handy to have a step by step summary - so here it goes…

Setting up Yeelight Colour light running through Domoticz Server on Raspberry PI:

  1. Installed Domoticz on my raspberry pi - https://www.domoticz.com/wiki/Raspberry_Pi_-_Build_Domoticz_from_source - make a note of the IP and Port of the Domoticz server. When entering this you should get the Domoticz interface which shows it is up and running as expected.

  2. Add repo to Smartthings IDE and install the Smartapp - I also manually installed the device types too (selecting only those relevant for the device I wanted to install but assume you could also add them all

  3. Follow the steps in the wiki to setup the Smartapp: http://thingsthataresmart.wiki/index.php?title=Domoticz_Server293

  4. Get hold of the custom URL at the bottom of the smartapp and make note of it.

  5. Go back to Domoticz and there is one area which needs editing:

    • Setup --> Settings --> Custom HTTP/Action --> Enable it --> Paste the Custom URL in the URL/Action
  6. Now I’m not sure if this is required but I created my Yeelight manually in Domoticz by going to Setup --> Hardware and then added the Yeelight LED device type. At this point I could see the status of the device responding to changes I had made in the native Yeelight app.

  7. I went back to the Domoticz Smartapp and then generated the device in Smartthings. Checked in the IDE and I noticed a new device was generated.

  8. Checked the device in Smartthings app and was then able to control the Yeelight - on/off/dimmer/colour

Thanks again for setting this up - super helpful to have proper control of the Yeelight device in Smartthings

PS: If any of these steps don’t work, let me know where I’ve missed and I’ll update this post.


(Martin Verbeek) #526

Thx Gareth. Under 5, there is no need for the second setup. I am using notifications going back into SmartThings with the customUrl endpoint, but only the http/action is needed. This is in the Wiki.
I am changing the app to have the customUrl copyable from the interface. When creating this I only had a normal browser in mind and copy it from the ST IDE into Domoticz.


(Martin Verbeek) #527

V7.03 is now on Github, customUrl is copy/pastable, als you can now hit external url to bring you to the Domoticz Setup page.


(Gareth) #528

Just updated and like the ability to copy/paste. I wanted to let you know that I’m getting the push notification when I open the smartapp despite everything with the device working as expected. What is driving this push notification to be displayed? What is it validating?


(Martin Verbeek) #529

Could you paste the notification for me?


(Martin Verbeek) #530

almost there to have this completely automated…


(Gareth) #531

It looks to be driven by line 1505 in the Smartapp. It appears as a push notification in the Smartthings app…just wondering why it’s appearing as the integration is working…


(Gcaley) #532

I’ve successfully managed to setup the domoticz-server app and have two-way device updates. Want wasnt taken from ST->DM though, was the ST Presence Keyfob? Should that have been, or is it not defined and how would i go about doing that?

Thanks,.


(Martin Verbeek) #533

Not supported yet. Will look into it, there is not really a presence device in domoticz. Could transform it into a switch. On is present. Creating a program as wet mail that is creating Bluetooth presence in domoticz… almost there :grin:

met vriendelijke groeten,

Martin


(Peke) #534

My Domoticz connection is not working anymore, live logging says this:
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:01: error java.lang.NullPointerException: Cannot get property ‘HTTPURL’ on null object @line 1489 (callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:01: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:01: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: error [callbackLog] null
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: error [callbackLog] physicalgraph.device.HubResponse(index:64, mac:B827EB10D6DA, ip:C0A80110, port:1F90, requestId:5be62393-c978-42cb-b6f1-2d983107d0d8, hubId:ee1ea5a1-2f5a-4f2a-b6ee-b1b75dec8763, callback:callbackLog)
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: trace 2 state Devices : [1, 2]
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: debug getChildDevices(true), children=2
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: trace [updateDeviceList]
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: trace [notifyNewVersion] on GitHub 7.03 running 7.00
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: trace [Initialize] Domoticz Server. Version 7.00. Copyright © 2018 Martin Verbeek
ea23c631-877c-4541-95de-fc8ca69d4277 00:08:00: trace [updated]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:58: error java.lang.NullPointerException: Cannot get property ‘HTTPURL’ on null object @line 1489 (callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:58: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:58: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:58: info smartapp_pause called by smartAppName=Domoticz Server, value=2, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: info smartapp_pause called by smartAppName=Domoticz Server, value=10, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: info smartapp_pause called by smartAppName=Domoticz Server, value=10, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: info smartapp_pause called by smartAppName=Domoticz Server, value=3, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: trace 2 state Devices : [1, 2]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: debug getChildDevices(true), children=2
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: trace [updateDeviceList]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:57: trace [setupAddDevices]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:56: trace [setupDeviceRequest]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:55: trace 2 state Devices : [1, 2]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:55: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:55: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:55: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:55: debug getChildDevices(true), children=2
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:55: trace [updateDeviceList]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:54: error java.lang.NullPointerException: Cannot get property ‘HTTPURL’ on null object @line 1489 (callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:54: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:54: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:53: info smartapp_pause called by smartAppName=Domoticz Server, value=2, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:53: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:53: trace [setupListDevices]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:50: error java.lang.NullPointerException: Cannot get property ‘HTTPURL’ on null object @line 1489 (callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:50: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:50: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:47: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:47: trace [setupDomoticz]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:46: error java.lang.NullPointerException: Cannot get property ‘HTTPURL’ on null object @line 1489 (callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:46: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:46: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 00:07:46: trace [setupInit]
ea23c631-877c-4541-95de-fc8ca69d4277 00:06:10: error [callbackLog] null
ea23c631-877c-4541-95de-fc8ca69d4277 00:06:10: error [callbackLog] physicalgraph.device.HubResponse(index:4B, mac:B827EB10D6DA, ip:C0A80110, port:1F90, requestId:56ae56d0-e02f-4c16-8241-ab0324a7e930, hubId:ee1ea5a1-2f5a-4f2a-b6ee-b1b75dec8763, callback:callbackLog)


(Daniel Consuegra) #535

On another note… I have (I think, have to check with the reseller) the soliris rts wind/sun sensor installed… Any chances of having it integrated on Domoticz?


(Martin Verbeek) #536

Hi Pedro. What is the release of the app. I have moved the app to a separate repository. Might be that is the issue.

Will post on how to move later.


(Martin Verbeek) #537

I do not see in the supported devices of RFXCOM, might be the same reason why the rfxcom device does not see the commands coming from the Somfy remote.


(Daniel Consuegra) #538

I just saw this… https://www.domoticz.com/forum/viewtopic.php?t=13042 Old I know… but promising?

EDIT: I also found this while fiddling with the domoticz website while at work…

Even more promising?


(Peke) #539

7.0 if that is what you mean.


(Martin Verbeek) #540

Indeed, saw it in the log you provided.

Could you add the following repository to to the IDE? image

change the repo for SmartApp Domoticz Server to this repo.
change all devices that start with domoticz to this repo.
do an update from repo in My SmartApps, select the new repo and update Domoticz Server
do an update from repo in My Device handlers, select the new repo and update and add all new device handlers (there are many, it is now very component driven).

youo should now be at V7.04 of the App.


(Peke) #541

Still not working, different output of log now.

ea23c631-877c-4541-95de-fc8ca69d4277 3:56:37 PM: error [callbackForSettings] null
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:37 PM: error [callbackForSettings] physicalgraph.device.HubResponse(index:B7, mac:B827EB10D6DA, ip:C0A80110, port:1F90, requestId:66bbd9b0-a566-4533-ab6d-fd57a962a6e3, hubId:ee1ea5a1-2f5a-4f2a-b6ee-b1b75dec8763, callback:callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:37 PM: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:37 PM: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:29 PM: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:29 PM: trace [setupDomoticz]
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:27 PM: error [callbackForSettings] null
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:27 PM: error [callbackForSettings] physicalgraph.device.HubResponse(index:B5, mac:B827EB10D6DA, ip:C0A80110, port:1F90, requestId:fef16e88-0cc1-4fca-b31e-e45d601e2b4e, hubId:ee1ea5a1-2f5a-4f2a-b6ee-b1b75dec8763, callback:callbackForSettings)
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:26 PM: info smartapp_pause called by smartAppName=Domoticz Server, value=5, smartAppVersionId=61438df9-2ac4-46cf-85dc-5e3c6ab10f8d
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:26 PM: trace [setupMenu]
ea23c631-877c-4541-95de-fc8ca69d4277 3:56:26 PM: trace [setupInit]


(Martin Verbeek) #542

Need to be at home and see if I can replicate this. Will be back… is this only during setup as I can see that is happening and what is it you are changing… or is this complete new setup? Or do you also have errors during normal ops.

met vriendelijke groeten,

Martin


(Peke) #543

I already had this running for a month or so and i worked in the beginning, i did it for the yeelights and it was working. I added some mi flora’s to domoticz and wanted to add them in smartthings and thats why i opened the setup and found it wasnt working.