Way to enable/disable whole switch schedule...
Posted: Thursday 10 November 2016 10:15
Hello,
I've found no easy way to enable/disable whole shedule in a switch:
-There is the possibility to switch between 2 schedules (normal+vacations), this may help but does not really does the job (maybe done by having more shedules & mapping a selector virtual switch on them, indeed).
-Through the json api, there is a way to do this. But as every line in a schedule looks to be triggered by a timer (each with it's own timer idx) & json api uses timer idx this is not easy to invalidate all a switch schedule this way.
-Reading forum, I tried to use one sideway that alters to domoticz db directly: Looks successfull when looking at the enable statuses but sometimes, all schedules are set back to on! Probably it's not very sane to alter domoticz db while running: This may be cached somewere and previous enable statuses set back. Yesterday, I had to replace windows & used the virtual switch triggered scripts that invalidate all floor heaters plannings + sets them to off... but they restarted later because switches schedules were re-enabled.
So my question is: Is there a way to do this I may have missed (quite new to Domoticz)? If not, could it make it's way in the feature list for next version?
BR
I've found no easy way to enable/disable whole shedule in a switch:
-There is the possibility to switch between 2 schedules (normal+vacations), this may help but does not really does the job (maybe done by having more shedules & mapping a selector virtual switch on them, indeed).
-Through the json api, there is a way to do this. But as every line in a schedule looks to be triggered by a timer (each with it's own timer idx) & json api uses timer idx this is not easy to invalidate all a switch schedule this way.
-Reading forum, I tried to use one sideway that alters to domoticz db directly: Looks successfull when looking at the enable statuses but sometimes, all schedules are set back to on! Probably it's not very sane to alter domoticz db while running: This may be cached somewere and previous enable statuses set back. Yesterday, I had to replace windows & used the virtual switch triggered scripts that invalidate all floor heaters plannings + sets them to off... but they restarted later because switches schedules were re-enabled.
So my question is: Is there a way to do this I may have missed (quite new to Domoticz)? If not, could it make it's way in the feature list for next version?
BR