Help with relay decoupling and rules #22398
-
Hi everyone. I tried with the rules below, but Mqtt#connected is never executed.
How can I do this?
Tasmota 14.2.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Rule 1:
Rule 2:
Rule 3:
Activate the rules:
Restart the device, so that it starts controlling the rules automatically |
Beta Was this translation helpful? Give feedback.
Rule 1:
When disconnecting from MQTT, connect the relay to the switch, activate rule 2 and deactivate rule 3
When connecting to MQTT, disconnect the relay from the switch, deactivate rule 2, activate rule 3 and leave the relay always on
Rule 2:
The switch will control the relay, enabling the lamp to be turned on and off
Rule 3:
The switch will send a message to the mqtt topic, enabling the lamp to be controlled via mqtt