Page 1 of 1

Switch input (Push Button Active Low) control from Rules

Posted: 29 May 2019, 15:04
by Zorch
Hi All,
"Switch input - Switch" in type "Push Button Active Low" can store state and switch switch between 1 and 0 by one button push.
Also it rise event once state was changed that can be handled in rules.
If I setup a controller (domoticz MQTT) I can control stored state of that Switch, and it will also rise event (e.g Switch1#value).
But I didn't find a way how to change state from rules, I can change state by command TaskValueSet, but it only change stored value (that I can see on UI) it doesn't generate event in rules (Switch1#value).
Is there a way to control it from rules, not only from domoticz.
Thank you in advance!

Re: Switch input (Push Button Active Low) control from Rules

Posted: 29 May 2019, 16:59
by grovkillen
You need to trigger a "task run" command for it to trigger an event.

Re: Switch input (Push Button Active Low) control from Rules

Posted: 29 May 2019, 21:30
by Zorch
Awesome! Thank you!
I spent a few evenings on it, but haven't checked Internal commands.