SmartApp connector for Domoticz (or anything else)

Hello.

I am trying to integrate my Domoticz installation into ST as cloud devices.

So far I have the following working:

  • A simple smartapp that pulls device info from a web server endpoint to create cloud devices; I have switches, and doors working well with my own simple device handlers
  • A web server endpoint that receives Domoticz notifications and updates switches and doors in ST using one of the commands available for each capability in ST, I do this using pysmartthings (github)

Why? I wanted to control my house via Bixby on my Samsung device without buying a ST hub (prefer to run my own hardware to handle the home - a little paranoid).

It all works brilliantly well.

Now I want to add the motion sensors and a presence sensor for the front door (a doorbell, but I could not really find anything appropriate)

The problem I have is that these don’t have commands, so I cannot update them.

I have read and read and I have the same problem as everyone else, the docs are not very good yet.

I thought of using a webhook endpoint to update the sensors, however I can’t seem to figure out how to get the endpoint url.

I have already updated the app with mappings and the simulator gives me the URL and the token, but when I install the app on my phone, how do I get those values???

Is there another way (besides polling - don’t think this is effective for sensors) that would work to update sensors?

Any help would be appreciated.

Would be happy to share all code if anyone is interested.

HI, Just stumbled across your post - are you still working on this? can you share code?

I would like to do something similar, mainly because I want to use the smarthings app - which is better then domoticz and integrated better to my phone and TV.

I have a domoticz server and do everything through it (even have direct alexa integration), but i’m not too happy about the app UI :slight_smile:

will be happy to look at your code and try to get some more things working.

Hi,

No, I dropped this completely. I ended up not being too happy with Domoticz so I programmed my own simple system that controls MQTT devices. I then integrated this with SmartThings so that SmartThings and Google Home can be the controllers. I can share code if you want, but it has nothing to do with Domoticz.

Regards,
Sam.

appreciate for your response :-), I think I’ll try it myself then and use domoticz directly.