From 8dcf095c6088c52747a009545d82aa72ad034ba4 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 18 May 2022 08:52:42 +0200 Subject: [PATCH] Implemented switch for schedule triggered lights --- src/philips_hue_counter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/philips_hue_counter.py b/src/philips_hue_counter.py index 69c6a99..0955ca4 100644 --- a/src/philips_hue_counter.py +++ b/src/philips_hue_counter.py @@ -12,6 +12,9 @@ from timeloop import Timeloop # Should lights already turn on where there is any kind of motion in the sensor 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.) # Needs to be sorted chronologically SCHEDULE = {} @@ -269,7 +272,8 @@ def register_time_triggers(): if __name__ == "__main__": - register_time_triggers() + if ENABLE_SCHEDULE_TRIGGERS: + register_time_triggers() # Represents callback trigger order counter.hookChange(change_cb)