From cf0846aba0d3f83a58d469d3147607c35fcfbda7 Mon Sep 17 00:00:00 2001 From: Jeff Culverhouse Date: Thu, 20 Feb 2025 18:42:02 -0500 Subject: [PATCH] one more dict entry to fix --- src/amcrest2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amcrest2mqtt.py b/src/amcrest2mqtt.py index ee3fda7..e178ac2 100644 --- a/src/amcrest2mqtt.py +++ b/src/amcrest2mqtt.py @@ -489,7 +489,7 @@ async def main(): try: for host in hosts: async for code, payload in cameras[host].async_event_actions("All"): - if (camera_configs[host].is_ad110 and code == "ProfileAlarmTransmit") or (code == "VideoMotion" and not camera_configs[host].is_ad110): + if (camera_configs[host]["is_ad110"] and code == "ProfileAlarmTransmit") or (code == "VideoMotion" and not camera_configs[host]["is_ad110"]): motion_payload = "on" if payload["action"] == "Start" else "off" mqtt_publish(camera_topics[host]["motion"], motion_payload) elif code == "CrossRegionDetection" and payload["data"]["ObjectType"] == "Human":