I first tried using the Amcrest integration but the motion detected and connected sensor lost connection every minute or so but they did change state.
I tried the custom Amcrest integration and this worked ok for the binary sensor motion however my system was struggling, high running temp, excess mem. and CPU.
I then tried the ONVIF Integration and I get
problem is they never change state, I know the camera has triggered a motion alarm as I get a push notification from the Amcrest App.
The camera streams are fine with ONVIF., am I missing some setting in the camera or in my configuration?
I looked on the Amcrest website for a firmware update but nothing listed for my particular model no.
The amcrest integration will have a new option in 0.113 for the motion detection binary sensor to use the older polling method instead of the newer event streaming method. It seems some newer Amcrest camera models and/or firmware versions have changed their HTTP API and don’t work with the streaming mode. Amcrest refuses to admit this has changed, and hence will not provide an updated spec. So the best I could do was to make the older polling method available again as an option which seems to work with some camera models/versions where the streaming method does not.
That custom integration is so old I’m surprised it works at all.
0.113 has all the recent changes I’ve made to the amcrest integration. If something still doesn’t work for you please check any existing issues and open a new one if it isn’t covered.
However, as I’ve already said, the main problem now is that Amcrest has changed the way these cameras are controlled via the network but has not admitted that they’ve done so, and consequently will not provide an updated specification covering those changes. So there’s not much I can do about that.
Regarding ONVIF, I don’t know a lot about it, other than the Amcrest cameras, in theory, support it. I’ve not personally tried to use the onvif integration with my Amcrest cameras because they all still work with the amcrest integration.