sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
228 stars 122 forks source link

last stage not remember #206

Closed 9713285028 closed 2 years ago

9713285028 commented 2 years ago

Hello Everyone,

i am trying to control one relay with the manual switch, and its working, but i am facing 2 problems,

first is, after some time my device goes off automatically,

and the second one is it does not remember the last stage after the power cut anyone can help me!

related to the coding part I just uploaded the switch example on my ESP-01

sivar2311 commented 2 years ago

Regarding the first part: This would have to be examined more closely. There can be many causes for this (WiFi connection disconnected etc etc). Logging would be useful for this.

To the second part: There are two possibilities here. The simple way would be to use SinricPro.restoreDeviceState(true); see here for more details.

The second possibility would be to store the last known state in the EEPROM or in a file and read this back after a reset.

stale[bot] commented 2 years ago

This issue has gone quiet. Spooky quiet. We currently close issues after 14 days of inactivity. It’s been at least 7 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks for being a part of the SinricPro community!

stale[bot] commented 2 years ago

Hey again! It’s been 14 days since anything happened on this issue, so our friendly robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder, the best way to fix this or any other problem is to provide a detailed error description including a serial log. Thanks again for being a part of the SinricPro community!