Use ProfileAlarmTransmit event for motion instead of AlarmLocal

pull/5/head
Daniel Chesterton 4 years ago
parent 7fe314614d
commit b84537dd4e
No known key found for this signature in database
GPG Key ID: 38C6A35C5F124D69

@ -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)

Loading…
Cancel
Save