I have three cameras manually added to configuration.yaml as follows:
- host: 192.168.0.110
username: !secret AmcrestUsername
password: !secret AmcrestPassword
name: "Name1"
resolution: high
binary_sensors:
- motion_detected
- online
- host: 192.168.0.111
username: !secret AmcrestUsername
password: !secret AmcrestPassword
name: "Name2"
resolution: high
binary_sensors:
- motion_detected
- online
- host: 192.168.0.112
username: !secret AmcrestUsername
password: !secret AmcrestPassword
name: "PlayCAM"
resolution: high
binary_sensors:
- motion_detected
- online
PlayCAM shows up intermittently as unavailable or disconnected. Yet, when I click on the entity and then the top right corner icon, it loads up the webcam stream. I tried deleting the integration and re-adding it but that did not help.
I ran debugger. Getting errors as below
2020-06-10 03:44:11 WARNING (Amcrest PlayCAM) [amcrest.http] <PlayCAM:AMC0015A930S1AK9WM> Trying again due to error: HTTPError('400 Client Error: Bad Request for url: http://192.168.0.112:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BVideoMotion%5D')
I tried disabling the sensor for motion detection which helps but these are AMC721 that support motion detection. Any idea whats going on? I can’t find anything different between the cameras in their configurations.