I created a simple rule to switch on a light when I press a pushbutton connected to a GPIO.
Code: Select all
on Taster#Taster do
if [Taster#Taster]=0
gpio,12,0
else
gpio,12,1
endif
endon
Code: Select all
mosquitto_pub -q 1 -d -t /Garten/Taster/Taster -m 1
What can I do for finetuning to get rid of this behaviour?
Update:
I tried around and found no solution so far. But I am trying something different, I like to address the rules directly via mqtt, but so far I had no luck. How can this be done?