Hi all,
I’m trying to get my DAFANG (CFW) cameras working on my new hassio installation. I found RTSP to be unreliable (presumably due to the low-powered CPU in my rpi 3b), so I’ve been attempting this configuration:
- platform: generic
name: Kid #1
username: root
password: <random password>
authentication: basic
still_image_url: https://kid1-camera.myinternaldomain.com/cgi-bin/currentpic.cgi
verify_ssl: false
scan_interval: 30
But this fails 90% of the time (I had one, random unexplained success), with the following error in homeassistant.log:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 242, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
2018-12-24 09:36:24 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting camera image
2018-12-24 09:36:25 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting camera image
2018-12-24 09:36:25 ERROR (MainThread) [homeassistant.components.camera.generic] Timeout getting camera image
When I test the URL with curl, the image downloads fine:
curl -k https://root:<mypassword>@kid1-camera.myinternaldomain.com/cgi-bin/currentpic.cgi > ~/Desktop/image.jpg
I’ve added the following to configuration.yaml to try to debug, but nothing additional to the above is logged:
logger:
default: warning
logs:
homeassistant.components: info
homeassistant.components.device_tracker: critical
homeassistant.components.camera.generic: debug
Any ideas how to proceed from here?
Thanks!
D