Page 1 of 1

Public Holidays exceptions

Posted: Monday 01 May 2017 12:27
by nigels0
Hi,

Would be great if Domoticz could be set up so that on public holidays (maybe gotten from a .ics) an exception is made for some switches - useful if you have lights, blinds, radio etc. which would go on early if you have to get up for work, but on those days you can have a lie in :) It's pretty much impossible to do as it stands.

You would need a flag in each switch'group for holidays and a start/end time- and a option in settings to upload a .ics for the dates

Re: Public Holidays exceptions

Posted: Tuesday 02 May 2017 1:23
by sion
All my light came on this morning and woke me up at 7am on a bank holiday :(
So yes this would be good.

I thought about doing something before using ifttt and the maker channel, and linking in with my calendar.
The gmail cal uses the word "holiday" for any bank or public holidays, and you could add your own in too, and then get ifttt to fick a switch in domoticz to tell it it's a holiday. It's a bit of a log way around it though, as you would need to write this switch into any scripts that are relevant. Though, if it's just a wake up routine that it wouldn't be too bad.

Re: Public Holidays exceptions

Posted: Tuesday 02 May 2017 9:32
by pj-r
I think with bit of scripting you could read some calendar having these holiday entries and change timer plan with json call.

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=IDX_OF_TIMER_PLAN
by default:
- 0 = default
- 1 = holiday

https://www.domoticz.com/wiki/Interacti ... e_Calendar

Re: Public Holidays exceptions

Posted: Tuesday 02 May 2017 12:42
by nigels0
That wiki says it is depreciated. Not sure how that would work though...

Thanks for the info regarding timer plans - wasn't aware of that!

Re: Public Holidays exceptions

Posted: Tuesday 02 May 2017 12:45
by emme
there is a new version-in-progress for gCal.... check on this forum ;)

for bank holiday, I use a switch with a specifica date/time timer that disable it (yes.. I have to do it on my own) and evauate it in the script....

ciao
M

Re: Public Holidays exceptions

Posted: Tuesday 02 May 2017 14:14
by nigels0
Please share your script

Re: Public Holidays exceptions

Posted: Tuesday 02 May 2017 15:35
by maluko
i have my blind system working with domoticz and all days off week will open by timer, so all saturday and sunday dont open automaticly.
stay missing when it is holiday and vacation, so what i has done was create a dummy switch "holidays" meantime i create too a blocly rule, if "Holidays" on, do "Open Blinds mornig" scene inactive ( this will disable all timer of open blind morning scene./ if "Holiday" off, do "Open Blinds morning active (all timers goes enable).

At this moment only have to change the switch when holiday but i wanted more, so i interact with my google calendar by my android phone.
At begging of year i enter all holiday day, and vacation on my google calendar with the word "Holidays", so each 00:00 hours it will informe the domoticz the state of calendar.

i bought the tasker app and do this

Create on tasker this profile

"holiday on" - State/app/calendar entry - On title enter the word that tasker will find to trigger the task, my case was Holiday*
(* - can trigger Holidays-easter), on calendar choose your google calendar.
for this profile create the task: Net/http get and enter the server:port http://user:pass@ip:port/json.htm?type=command&param=switchlight&idx=99&switchcmd=On
you can create too a beep to warn you when is trigger.

Profile:
"holiday off" - State/app/calendar entry - the same but choose the invert button.
for this profile create the task: Net/http get and enter the server:port http://user:pass@ip:port/json.htm?type=command&param=switchlight&idx=99&switchcmd=Off
you can create too a beep to warn you when is trigger.

its done.

and if you want more :) can interact with turbo alarm to alarm not buzz on holiday day.

Re: Public Holidays exceptions

Posted: Wednesday 03 May 2017 0:22
by nigels0
Thanks, I see how you've done this, but I use an iPhone so can't use tasker. I'm at the stage now where I've got the timers to switch off one dummy switch (imaginatively called 'holiday') and have the public holidays in a google calendar, I think the next stage is to try to use the new (as of last month!) goal integration with Domoticz, but it seems rather complex right now. I think I'll have to wait until there are some examples that I can follow.

Re: Public Holidays exceptions

Posted: Wednesday 03 May 2017 1:52
by sion
nigels0 wrote:Thanks, I see how you've done this, but I use an iPhone so can't use tasker. I'm at the stage now where I've got the timers to switch off one dummy switch (imaginatively called 'holiday') and have the public holidays in a google calendar, I think the next stage is to try to use the new (as of last month!) goal integration with Domoticz, but it seems rather complex right now. I think I'll have to wait until there are some examples that I can follow.

Have a look at ifttt.com
You can link it to google cal. And use the maker Channell to send a Json command to the switch in domoticz. Independent of phone.

Re: Public Holidays exceptions

Posted: Wednesday 03 May 2017 7:38
by jake
Check out this thread about integrating Google calendar into Domoticz
https://www.domoticz.com/forum/viewtopic.php?t=17302