Regular schedule vs holiday schedule

Posted on
Tue Oct 01, 2019 7:53 pm
rgspb offline
Posts: 196
Joined: Apr 24, 2009
Location: Florida

Regular schedule vs holiday schedule

I'm not real sure if i'm posting this in the correct forum but we'll see. I have a set of outside lights that come on at "Evening" 100%. At "Bedtime" they dim to 30% and then turn off completely later in the morning. For Halloween I'm putting some flicker flame LEDs in these fixtures. Since these bulbs aren't dimmable I want to skip the dimming at "Bedtime" and just turn them off completely. I'm just not sure what is the best way to set up a temporary schedule for these lights without completely changing my "Evening" and "Bedtime" action groups.

Posted on
Wed Oct 02, 2019 9:01 am
Dual offline
Posts: 158
Joined: Feb 05, 2019

Re: Regular schedule vs holiday schedule

I think you can disable your normal
Schedule on the 31st and enable it on the 1st. There should be a checkbox IIRC.


Sent from my iPhone using Tapatalk

Posted on
Fri Oct 04, 2019 9:59 am
rgspb offline
Posts: 196
Joined: Apr 24, 2009
Location: Florida

Re: Regular schedule vs holiday schedule

I think really what I'm looking to do is have a Condition attached to an item in an action group:

Turn light off if variable = Holiday
Brighten light to 30% if variable = Not Holiday

For now I'm just going to change that item in the list back and forth manually

Posted on
Fri Oct 04, 2019 10:09 am
FlyingDiver offline
User avatar
Posts: 4325
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Regular schedule vs holiday schedule

Have this script running every night at 12:01am:

Code: Select all
# indigo.variables[1980497029] # "isHoliday"
# indigo.variables[1479852422] # "whatHoliday"

from datetime import date
import holidays

indigo.variable.updateValue(1980497029, value="False")
indigo.variable.updateValue(1479852422, value="None")

us_holidays = holidays.UnitedStates()  # or holidays.US()

if date.today() in us_holidays:
   indigo.variable.updateValue(1980497029, value="True")
   indigo.variable.updateValue(1479852422, us_holidays.get(date.today()))


That updates two Indigo variables - isHoliday (boolean) and whatHoliday (string).

Very useful.

I'm not sure if the holidays library is installed by default. You might need to use pip to install it.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests