Page 1 of 1

How manage settings timers during the holidays ?

Posted: Wednesday 13 May 2015 14:38
by warp
If I want a virtual switch to do settings holidays or normal on the dashboard ? can i use lua ? or other ?

Re: How manage settings timers during the holidays ?

Posted: Saturday 23 May 2015 10:09
by G3rard
I would like this possibility as well.
So to be able to switch the timer plan (Settings, Other) from default to Holiday and vice versa. See picture below (scroll down for setting).
Is it possible to do this via a script?
image.jpg
image.jpg (71.93 KiB) Viewed 3075 times

Re: How manage settings timers during the holidays ?

Posted: Saturday 06 June 2015 11:14
by G3rard
Does anyone know if this is possible or not?

I want to be able to set Domoticz in holiday mode (changed timers, receive notifications etc) with one virtual switch.

Re: How manage settings timers during the holidays ?

Posted: Wednesday 10 June 2015 23:56
by G3rard
I saw in this topic viewtopic.php?f=23&t=6446&p=42360&hilit ... lan#p42360 that it's currently not possible to set this via a script.

How manage settings timers during the holidays ?

Posted: Saturday 16 April 2016 14:57
by G3rard
Thanks to @dnwppo it is now possible to switch between Default and Holiday timer groups using a virtual switch.

Add the following in the On Action of the switch to activate the Holiday timer:

Code: Select all

http://127.0.0.1:8084/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1
In the Off Action to activate the Default timer:

Code: Select all

http://127.0.0.1:8084/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=0
See more information on https://github.com/domoticz/domoticz/co ... d2ec61cb8a.

Re: How manage settings timers during the holidays ?

Posted: Monday 02 May 2016 13:40
by warp
Hi,
Is it possible to test the state in LUA script ?