NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://nspanelmanager.com/
126 stars 10 forks source link

SCREENSAVER MODE - Time 00:00 when sending command to screensaver_mode topic #146

Closed cablesandcoffee closed 2 months ago

cablesandcoffee commented 2 months ago

Describe the bug The first time you send a command to screensaver_mode topic and change from weather->no weather or no weather->weather clock shows 00:00. After a while the time updates and everything is fine. My guess is that it is because this changes the page to the second screensaver page and the time hasn't been set on that entity yet and is not automatically updated when the user chooses to switch screensaver_mode. A small issue since it only happens the first time after a reboot and the time is eventually updated but would look better if it was updated straight away.

To Reproduce Steps to reproduce the behavior:

  1. Set panel setting on the manager to Show With Background
  2. Reboot panel
  3. Send "date_time_withbackground" to topic: screensaver_mode
  4. Clock shows 00:00
  5. About 60 seconds later time is updated correctly.

Expected behavior Time is updated straight away when screensaver_mode changes.

Environment info (please complete the following information):

tpanajott commented 2 months ago

This was caused by the same problem as #148 which is now fixed, closing this issue.