Relay recovery last state after power failure

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Jufo
Normal user
Posts: 36
Joined: 12 Mar 2017, 13:47

Relay recovery last state after power failure

#1 Post by Jufo » 21 Aug 2018, 21:07

Hi,

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

Best Regards,

Robert

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Relay recovery last state after power failure

#2 Post by papperone » 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)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Relay recovery last state after power failure

#3 Post by toffel969 » 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.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Relay recovery last state after power failure

#4 Post by papperone » 23 Aug 2018, 13:31

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!)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Post Reply

Who is online

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