kakopappa / sinric

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

Get status from Alexa from "void setup" #361

Open automatic12pro opened 4 years ago

automatic12pro commented 4 years ago

Hello

Whats the arduino code/procedure to get the latest alexa status from sinric for a switch when initializing my ESP8266? If my alexa routine changes the on/off of a switch while the device is not connected to the internet or powered off, I would like this to be updated by requesting it from sinric rather that pulling the last known state from SPIFFS. This would ensure that the device is always in sync with alexa. I'm somewhat new to this library and coding as well so any help would be very appreciated.

Thank you