HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
695 stars 179 forks source link

re-enable idle scripts #625

Closed hb020 closed 8 months ago

hb020 commented 8 months ago

See https://github.com/HASwitchPlate/openHASP/issues/618

The idle scripts were inoperative since a recent commit.

Not sure if what I claim is true, but this is my interpretation: Since:

and we want the scripts to be called only when the state changes, I decided to put the scripts directly in the function that detects the changes: hasp_update_sleep_state()

hb020 commented 8 months ago

Done

fvanroie commented 8 months ago

Thanks!