Thanks
- Code: Select all
if indigo.variables[1255222542].value == "true":
indigo.actionGroup.execute(1722700584) # "KPL [mbath] LED Brightness DAY"
elif indigo.variables[1255222542].value == "false":
indigo.actionGroup.execute(571210734) # "KPL [mbath] LED Brightness NIGHT"
- Code: Select all
# Get the drip instance
sprinkler = indigo.devices[1334555428]
if sprinkler.states["activeZone"] > 0:
#if the active zone is greater than 0 then it's running
indigo.variable.updateValue(1612324636, value="Irrigation Zone Running")
else:
# if the active zone is 0 then it's not running
indigo.variable.updateValue(1612324636, value="")
- Code: Select all
if (indigo.devices[122316047].onState == True):
indigo.insteon.sendSceneOn(8)
else:
indigo.insteon.sendSceneOff(8)
- Code: Select all
# Set up Variables
Shades_CurrentState = indigo.variables[1879201124].value
# Run Appropriate Action Group
if Shades_CurrentState == "up":
indigo.actionGroup.execute(1964223200) # "Shades [lvr] DOWN"
else:
if Shades_CurrentState == "down":
indigo.actionGroup.execute(1024457751) # "Shades [lvr] UP"
- Code: Select all
import datetime
now = datetime.datetime.now()
DayofWeek = now.strftime('%A')
indigo.variable.updateValue(1116262770, DayofWeek)
- Code: Select all
import datetime
now = datetime.datetime.now()
Month = now.strftime('%B')
indigo.variable.updateValue(1883706503, Month)
- Code: Select all
if indigo.variables[1747089685].value == "off":
indigo.actionGroup.execute(1577365829) # "TV ACTIVITY [watch]"
elif indigo.variables[1747089685].value == "on":
indigo.actionGroup.execute(518087377) # "TV ACTIVITY [off]"