I am new to Domoticz (and to home automation in general) but the platform seems to be incredible.
I connected a (previously flashed) Sonoff WiFi switch and it works great. I also wrote a Python script to publish messages on Mosquitto.
What I am trying to understand (among "hardware", "devices" and "scenes") is how to link both. I would like to run my script, which would send a message to a topic, be intercepted by domoticz, which would in turn toggle the switch.
The parts which are extremely confusing for me are:
- how to declare in domoticz my script (as "hardware", "device"?) - or the topic the script will be publishing to
- how to listen to the topic and act upon it by toggling the switch (which is defined as "switch"of type "light switch")
Thanks!