diff --git a/echo-master/echo_controller/switch.py b/echo-master/echo_controller/switch.py index 2d2dc76..c7461ec 100644 --- a/echo-master/echo_controller/switch.py +++ b/echo-master/echo_controller/switch.py @@ -54,7 +54,7 @@ class Switch: # Check if light levels are low enough to turn on light collectionLight = EchoDB.EchoDB.database['LightLogs'] data = collectionLight.find().sort([('timestamp', -1)]).limit(1) - if data[0]['light_amount'] > 250: + if data[0]['light_amount'] > 20: return; # Light is already on, update automatic shutdown.