Sonoff and restore state after power cycle

Everything about esp8266 and more.
Post Reply
kluczus
Posts: 24
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Sonoff and restore state after power cycle

Post by kluczus » Wednesday 20 September 2017 23:10

Hi,
Maybe someone can explain me step by step how to configure Sonoff S20 (with easyesp R147) to have always the same switch status on sonoff and domoticz, even after power cycle? I was fighting a few hours without luck :cry: Now when i reconnect sonoff, domoticz has switch set to on, but sonoff has switch set to off :-( I was using this tutorial https://smartdomsite.wordpress.com/2017 ... f-esp8266/
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!

Lebo2d9
Posts: 147
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi
Domoticz version: L stab
Location: Belgium
Contact:

Re: Sonoff and restore state after power cycle

Post by Lebo2d9 » Thursday 21 September 2017 7:24

Maybe you can create a dummy switch on sonoff that is controlling the output and send on regular base the status of that switch to your domoticz (dummy on domoticz). You need Then you check the state the dummy that is updated by the sonoff and when the state is not equal yiu send a toggle command to you dummy on the sonoff
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come

kluczus
Posts: 24
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff and restore state after power cycle

Post by kluczus » Friday 22 September 2017 14:49

I was trying to do that but after every power cycle dummy switch reverts state to 0 :-(
But finnaly I have solved by installing a different firmware. It is not that powerfull like easyesp but working out of the box :-)
http://smart-house.adrian.czabanowski.c ... re-sonoff/
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway + EQ-3 MAX!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest