Add fix for AD410 events

pull/14/head
Daniel Chesterton 4 years ago
parent 22bf616c16
commit 319217b195

@ -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_":

Loading…
Cancel
Save