From b7caa637da6c1f63685d5da87dfef6972f26c0bb Mon Sep 17 00:00:00 2001 From: Pergola Fabio Date: Tue, 2 Jan 2024 19:36:22 +0100 Subject: [PATCH] employee update --- hikvision-doorbell/src/mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikvision-doorbell/src/mqtt.py b/hikvision-doorbell/src/mqtt.py index a454934..afb23e3 100644 --- a/hikvision-doorbell/src/mqtt.py +++ b/hikvision-doorbell/src/mqtt.py @@ -233,7 +233,7 @@ async def acs_alarm( match minor_alarm.name: case "MINOR_FACE_VERIFY_PASS": logger.info("Minor control event: {} found on door {} with employee id: {}", minor_alarm.name, door_id, employee_id) - trigger = DeviceTriggerMetadata(name=f"ACS Face Employee {employee_id}", type=f"face_verify", subtype=f"employee_id {employee_id}") + trigger = DeviceTriggerMetadata(name=f"ACS Face Employee {employee_id}", type=f"face_verify", subtype=f"employee_id_{employee_id}") self.handle_device_trigger(doorbell, trigger) trigger = DeviceTriggerMetadata(name=f"{major_alarm.name} {minor_alarm.name}", type=f"", subtype=f"{major_alarm.name} {minor_alarm.name}") self.handle_device_trigger(doorbell, trigger)