Page 1 of 1

Relay recovery last state after power failure

Posted: 21 Aug 2018, 21:07
by Jufo
Hi,

How to read the status of relays from Domoticz during booting ESP Easy ? and set the relay in ESP Easy ?

Best Regards,

Robert

Re: Relay recovery last state after power failure

Posted: 21 Aug 2018, 21:22
by papperone
you must use MQTT and use the message persistance features in order to do this (I have this feature in some of my modules even thou I don't use Domoticz)

Re: Relay recovery last state after power failure

Posted: 23 Aug 2018, 09:58
by toffel969
papperone wrote: 21 Aug 2018, 21:22 you must use MQTT and use the message persistance features in order to do this (I have this feature in some of my modules even thou I don't use Domoticz)
To clarify, papperone says you must activate the "MQTT retain" feature on the advanced tab.

Re: Relay recovery last state after power failure

Posted: 23 Aug 2018, 13:31
by papperone
toffel969 wrote: 23 Aug 2018, 09:58
papperone wrote: 21 Aug 2018, 21:22 you must use MQTT and use the message persistance features in order to do this (I have this feature in some of my modules even thou I don't use Domoticz)
To clarify, papperone says you must activate the "MQTT retain" feature on the advanced tab.
yes indeed, thanks for clarification, and as well in all devices that can send that message!
(in my case I can toggle a switch from the GUI which runs on a RaspberryPi and those message must be sent as well with the retain activated else the setup will not work properly!)