kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
285 stars 166 forks source link

ESP8266 recovery after reset #297

Open steve8266 opened 5 years ago

steve8266 commented 5 years ago

Hi, I’ve used the switch example extensively to control home lights etc (thanks for the sinric example code). I want to make them more resilient to WiFi disconnects and have added code to do a reconnect when WiFi drops. What I need now is to be able to recover the last on/off status from sinric and thus automatically get the esp back to where it was before a failure. Is there a way to do that? Please advise.

kakopappa commented 5 years ago

You can use the API or store the switch status in the SPIFF (which is a lot easy)

You can check the API documentation in the WiKi page.

On Mon, 1 Jul 2019 at 8:36 PM steve8266 notifications@github.com wrote:

Hi, I’ve used the switch example extensively to control home lights etc (thanks for the sinric example code). I want to make them more resilient to WiFi disconnects and have added code to do a reconnect when WiFi drops. What I need now is to be able to recover the last on/off status from sinric and thus automatically get the esp back to where it was before a failure. Is there a way to do that? Please advise.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kakopappa/sinric/issues/297?email_source=notifications&email_token=ABZAZZW47235ZNU5JC2PLCDP5IB6HA5CNFSM4H4SPF22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4UQ7UA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZAZZSIXVIDI5RYR3DZFCDP5IB6HANCNFSM4H4SPF2Q .