Public Holidays exceptions

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Public Holidays exceptions

Post 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
sion
Posts: 113
Joined: Friday 08 January 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Public Holidays exceptions

Post 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.
running domoticz 3.4834 on rpi2, with
Hue bridge / bulbs.
lightwave rf sockets, mood controlers, sensors & contacts.
Home bridge / Siri.
Ha bridge / echo Alexa.
Hard wired alarm system - setting home / away status.

Next: harmony hub.
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: Public Holidays exceptions

Post 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
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Public Holidays exceptions

Post 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!
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Public Holidays exceptions

Post 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
The most dangerous phrase in any language is:
"We always done this way"
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Public Holidays exceptions

Post by nigels0 »

Please share your script
maluko
Posts: 105
Joined: Sunday 02 February 2014 23:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Portugal
Contact:

Re: Public Holidays exceptions

Post 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.
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Public Holidays exceptions

Post 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.
sion
Posts: 113
Joined: Friday 08 January 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Public Holidays exceptions

Post 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.
running domoticz 3.4834 on rpi2, with
Hue bridge / bulbs.
lightwave rf sockets, mood controlers, sensors & contacts.
Home bridge / Siri.
Ha bridge / echo Alexa.
Hard wired alarm system - setting home / away status.

Next: harmony hub.
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Public Holidays exceptions

Post by jake »

Check out this thread about integrating Google calendar into Domoticz
https://www.domoticz.com/forum/viewtopic.php?t=17302
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest