verbose at emerg
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
b704aee0fc
commit
2c3206fc06
@ -403,6 +403,7 @@ def polling_method_for_room_monitor(request: schemas.MonitorUpdateReadings,
|
||||
if request.temperature >= EMERG_TEMP or request.smoke_sensor_reading >= EMERG_SMOKE:
|
||||
print("********EMERGENCY AT %s********" % device.description)
|
||||
door : models.IotEntity = device.door
|
||||
print("********OPENING DOOR %s ID:%d********" % (door.description, door.id))
|
||||
crud.set_open_door_request(db, door.id, T_HOUR_SEC)
|
||||
crud.record_emergancy_entry(db, request, device.id)
|
||||
# Call into a hook to notify with room and people
|
||||
|
Loading…
Reference in New Issue
Block a user