Added early light state to log
This commit is contained in:
parent
3278d31f27
commit
48eed72acb
1 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,7 @@ hue_conf = {
|
||||||
hue = PhilipsHue(hue_conf)
|
hue = PhilipsHue(hue_conf)
|
||||||
counter = PeopleCounter(VL53L1XSensor())
|
counter = PeopleCounter(VL53L1XSensor())
|
||||||
peopleCount = 0
|
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)
|
logging.getLogger().setLevel(logging.INFO)
|
||||||
|
|
||||||
|
@ -93,7 +93,8 @@ def change_cb(countChange: int, directionState: Dict):
|
||||||
'previousPeopleCount': peopleCount,
|
'previousPeopleCount': peopleCount,
|
||||||
'countChange': countChange,
|
'countChange': countChange,
|
||||||
'directionState': directionState,
|
'directionState': directionState,
|
||||||
'dateTime': datetime.now()
|
'dateTime': datetime.now(),
|
||||||
|
'earlyLightState': early_light_state
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue