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
227 stars 121 forks source link

SinricPro.restoreDeviceStates #338

Closed hamedmirza closed 7 months ago

hamedmirza commented 10 months ago

Hi Team,

Thanks for great work you have done. I'm trying to restore the blinds status when power state changes as an value,and not forcing the motor to move to the previous value.

Is there any way to get it done?

by using "SinricPro.restoreDeviceStates" it forces the motor to move to the previous position.

Regards, Hamed

kakopappa commented 10 months ago

if you set SinricPro.restoreDeviceStates to true, when your ESP connects to the server, the sends the last known value, and your callback onRangeValue will trigger.

if you do not like this behavior better to manage the state by yourself. You could use this library https://github.com/vshymanskyy/Preferences can save/read values

stale[bot] commented 9 months 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!

sivar2311 commented 7 months ago

It's been more than 14 days since anything happened on this issue, so I'm going to close it. If you have any further questions about this issue, please feel free to reopen it.