05.09.2016, 13:21
If running RC firmware you must call clearschedulers() after making any changes, otherwise all scheduler events until the end of the day will still run even when the scheduler is disabled.
Simplified Erwin's example:
Simplified Erwin's example:
Code:
name = 'Scheduler 1'
active = event.getvalue()
db:update('schedulers', { active = toboolean(active) }, { name = name })
clearschedulers()