How manage settings timers during the holidays ?

Moderator: leecollings

Post Reply
User avatar
warp
Posts: 33
Joined: Thursday 07 May 2015 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Fr
Contact:

How manage settings timers during the holidays ?

Post by warp »

If I want a virtual switch to do settings holidays or normal on the dashboard ? can i use lua ? or other ?
Raspberry 2B:RaZberry Z-Wave+:Edimax EW-7811UN:Huawei E220 3G
4xQubino ZMNHCA2
Everspring SE812 & ST812
Mcohome MH-S411 & MH-S412
2xAEON LABS ZW-100
2xFibaro FGSD-002:Fibaro FGFS-101:Fibaro FGS-221 & KLF-050
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: How manage settings timers during the holidays ?

Post 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 3071 times
Not using Domoticz anymore
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: How manage settings timers during the holidays ?

Post 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.
Not using Domoticz anymore
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: How manage settings timers during the holidays ?

Post 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.
Not using Domoticz anymore
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

How manage settings timers during the holidays ?

Post 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.
Not using Domoticz anymore
User avatar
warp
Posts: 33
Joined: Thursday 07 May 2015 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Fr
Contact:

Re: How manage settings timers during the holidays ?

Post by warp »

Hi,
Is it possible to test the state in LUA script ?
Raspberry 2B:RaZberry Z-Wave+:Edimax EW-7811UN:Huawei E220 3G
4xQubino ZMNHCA2
Everspring SE812 & ST812
Mcohome MH-S411 & MH-S412
2xAEON LABS ZW-100
2xFibaro FGSD-002:Fibaro FGFS-101:Fibaro FGS-221 & KLF-050
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest