Page 1 of 1

How do I make a switch/slide switch in domoticz only coupled to a script?

Posted: Tuesday 14 February 2017 22:38
by Greenwatts
Many of my devices are on same way IP coupled, an what i understand from domoticz is , i need for all these a switch, a selector or slide switch 0-100% which is coupled to a script, because I can't use one out of the predefined displayed selection list.

Example: My local IR spot heating or led-lighting, has on/off and from 10-100%, send a status on request by an ESP8266 with an actual Watt consumption (based on current measurement), percentage and a check-code as response
Reacts also on a change in settings from the physical wall switch/slide, which pulls a digital pin high and/or 0-5V on a other pin for 0-100% power setting

In a script I can request a status and compose the string to send with new setting IP:Port/device-id/Pass*)/command/value
Pass is not a fixed one, depends mathematical on the received check-code from last status (preventing repeatedly resending / "jitter"))