1
0
mirror of synced 2026-03-09 20:13:40 +00:00

Add fix for AD410 events

This commit is contained in:
Daniel Chesterton
2021-05-16 00:37:32 +01:00
parent 22bf616c16
commit 319217b195

View File

@@ -248,7 +248,7 @@ log("Listening for events...")
try:
for code, payload in camera.event_actions("All", retries=5):
if (is_doorbell and code == "ProfileAlarmTransmit") or (code == "VideoMotion" and not is_doorbell):
if (device_type == "AD110" and code == "ProfileAlarmTransmit") or (code == "VideoMotion" and device_type != "AD110"):
motion_payload = "on" if payload["action"] == "Start" else "off"
mqtt_publish(topics["motion"], motion_payload)
elif code == "_DoTalkAction_":