I created two devices: a manual switch and a dummy output for MQTT.
The output is on GPIO 12 and the switch (Push button active low) on GPIO 0.
My rules are simple:
Code: Select all
on Manual#Switch do
if [Manual#Switch]=1
GPIO 12,1
Publish domoticz/in, { "idx": xxx, "nvalue": 1 }
else
GPIO 12,0
Publish domoticz/in, { "idx": xxx, "nvalue": 0 }
endif
endon
Are there any plans to change this or did I make some mistake here?