The idle scripts were inoperative since a recent commit.
Not sure if what I claim is true, but this is my interpretation: Since:
dispatch_idle_state() seems to be called also when a state situation is requested (dispatch_current_state())
dispatch_idle() seems to be called only upon startup
hasp_set_sleep_state() seems to be deprecated
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()
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:
dispatch_idle_state()
seems to be called also when a state situation is requested (dispatch_current_state()
)dispatch_idle()
seems to be called only upon startuphasp_set_sleep_state()
seems to be deprecatedand 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()