From b84537dd4e74989c16d0f53acf35aafaff9f95b8 Mon Sep 17 00:00:00 2001 From: Daniel Chesterton Date: Tue, 9 Feb 2021 09:27:10 +0000 Subject: [PATCH] Use ProfileAlarmTransmit event for motion instead of AlarmLocal --- src/amcrest2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amcrest2mqtt.py b/src/amcrest2mqtt.py index 216ec96..ded7208 100644 --- a/src/amcrest2mqtt.py +++ b/src/amcrest2mqtt.py @@ -166,7 +166,7 @@ try: for code, payload in camera.event_actions("All", retries=5): log(str(payload)) - if code == "AlarmLocal": + if code == "ProfileAlarmTransmit": mqtt_payload = "on" if payload["action"] == "Start" else "off" mqtt_publish(motion_topic, mqtt_payload)