diff --git a/src/amcrest2mqtt.py b/src/amcrest2mqtt.py index 4d142b7..96a7cde 100644 --- a/src/amcrest2mqtt.py +++ b/src/amcrest2mqtt.py @@ -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_":