Switch input (Push Button Active Low) control from Rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Zorch
New user
Posts: 2
Joined: 29 May 2019, 14:46

Switch input (Push Button Active Low) control from Rules

#1 Post by Zorch » 29 May 2019, 15:04

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!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#2 Post by grovkillen » 29 May 2019, 16:59

You need to trigger a "task run" command for it to trigger an event.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Zorch
New user
Posts: 2
Joined: 29 May 2019, 14:46

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

#3 Post by Zorch » 29 May 2019, 21:30

Awesome! Thank you!
I spent a few evenings on it, but haven't checked Internal commands.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests