Skip to content

Is this possible: Automatically turn relay Off when MQTT is down long time? #14946

Answered by miXza81
miXza81 asked this question in Q&A
Discussion options

You must be logged in to vote

I have wrote this code...

Rule1 ON Mqtt#Disconnected DO Backlog ruletimer1 600 ENDON ON Mqtt#Connected DO ruletimer1 0 ENDON ON rules#timer=1 DO Power1 0 ENDON
rule1 1

Can I trust that it will work fine in every situation or have I missed something? (It's safety feature)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@barbudor
Comment options

@sfromis
Comment options

Answer selected by ascillato2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants