Skip to content

Commit

Permalink
Add fix for AD410 events
Browse files Browse the repository at this point in the history
  • Loading branch information
dchesterton committed May 15, 2021
1 parent 22bf616 commit 319217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amcrest2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def signal_handler(sig, frame):

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_":
Expand Down

0 comments on commit 319217b

Please sign in to comment.