Implemented switch for schedule triggered lights
This commit is contained in:
parent
e05f5e204b
commit
8dcf095c60
1 changed files with 5 additions and 1 deletions
|
@ -12,6 +12,9 @@ from timeloop import Timeloop
|
||||||
# Should lights already turn on where there is any kind of motion in the sensor
|
# Should lights already turn on where there is any kind of motion in the sensor
|
||||||
ENABLE_MOTION_TRIGGERED_LIGHT = True
|
ENABLE_MOTION_TRIGGERED_LIGHT = True
|
||||||
|
|
||||||
|
# Should lights change when a certain time in the schedule is reached
|
||||||
|
ENABLE_SCHEDULE_TRIGGERS = False # Not working correctly at the moment, so turned off by default
|
||||||
|
|
||||||
# Schedule (Key is time after scene should be used. Value is scene name to be used.)
|
# Schedule (Key is time after scene should be used. Value is scene name to be used.)
|
||||||
# Needs to be sorted chronologically
|
# Needs to be sorted chronologically
|
||||||
SCHEDULE = {}
|
SCHEDULE = {}
|
||||||
|
@ -269,6 +272,7 @@ def register_time_triggers():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
if ENABLE_SCHEDULE_TRIGGERS:
|
||||||
register_time_triggers()
|
register_time_triggers()
|
||||||
|
|
||||||
# Represents callback trigger order
|
# Represents callback trigger order
|
||||||
|
|
Loading…
Reference in a new issue