Page 1 of 1

Timerplan switch button

Posted: Monday 13 May 2019 20:03
by ocean123
Hi,

How can I make a switch button to set vacation-timerplan on and off. The only way I found at the moment is by settings to switch between two plans. We just want a simple button to switch on/off.

When switch is "on" then follow timer plan X. When switch is "off" follow timer plan Y. We do not want a Google calendar connection.

Does someone has any suggestions how?

In the future there will be a physical button connected to the gpio-pin or by z-wave

Re: Timerplan switch button

Posted: Monday 13 May 2019 20:33
by felix63
Hi,

You can make a virtual switch and attach this action to it:

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=0

Re: Timerplan switch button

Posted: Saturday 25 May 2019 10:53
by ocean123
Thanks for your suggestion.
Greats
Ocean

Re: Timerplan switch button

Posted: Wednesday 19 August 2020 16:38
by Ron
I was struggeling a little with this, but its not complicated:
Create a dummy switch
Settings dummy switch, On action:

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=2
Settings dummy switch, Off action:

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1
ActiveTimerPlan=2 --> Holiday timer plan with ID 2 (Second timer plan with Idx 2)
ActiveTimerPlan=1 --> Default timer plan with ID 1 (Standard/default timer plan with Idx 1)

If switch is on timerplan Holiday/2 is activated, if switch is off timerplan Default/1 is activated.