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)