Added early light state to log

This commit is contained in:
Maximilian Giller 2021-12-03 18:13:30 +01:00
parent 3278d31f27
commit 48eed72acb

View file

@ -21,7 +21,7 @@ hue_conf = {
hue = PhilipsHue(hue_conf)
counter = PeopleCounter(VL53L1XSensor())
peopleCount = 0
early_light_state = False # TODO: Is probably redundant and can be implemented over peopleCount
early_light_state = False
logging.getLogger().setLevel(logging.INFO)
@ -93,7 +93,8 @@ def change_cb(countChange: int, directionState: Dict):
'previousPeopleCount': peopleCount,
'countChange': countChange,
'directionState': directionState,
'dateTime': datetime.now()
'dateTime': datetime.now(),
'earlyLightState': early_light_state
}
try: