amcrest2mqtt
amcrest2mqtt copied to clipboard
Update amcrest2mqtt.py
JSON structure seems to have changed in latest firmware. Updated the row 426 to use right json path for human detection.
Credits to jweston2112 for finding the issue.
This fixed my issues with the Amcrest 410. HA is now ingesting events.
I built a multiarch image with this change - unixorn/amcrest410-2-mqtt you can use until this gets merged.
I need a stable fork to base my addon on, if anyone can confirm this fix still works I would be happy to switch to @carefulcomputer's fork till the main repo is updated
@ikifar I just took a look at my history and see some human detection events in the log.
And motion detection too.
FWIW the motion detection is reliable, the human detection fires events sometimes but not always.