24.08.2020, 16:40
I left you the log which shows the counting for on and off. For testing change the script interval to 10. It will then run tomerOn x 10s instead of 60s. Make sure you change 1/1/4 in both places.
Add to event script under else condition
storage.set('offCounter', 0)
storage.set('onCounter', 0)
so the counter is rested after disabling it.
Add to event script under else condition
storage.set('offCounter', 0)
storage.set('onCounter', 0)
so the counter is rested after disabling it.
------------------------------
Ctrl+F5
Ctrl+F5