New to Home Assistant but the 0.90 camera changes caught my eye and I decided to try. I did get them to work, very nice. I can now change to display my front door on my TV’s if I hear the doorbell ring (for example).
But I went around in circles for a while over authentication.
The cameras are Lorex LNE8974AB which is likely a rebranded Dahua, 4K. I have them configured as follows
- platform: generic
name: camsouthside
still_image_url: http://user:password@camSouthside/cgi-bin/snapshot.cgi
stream_source: rtsp://user:password@camSouthside/cam/realmonitor?channel=1&subtype=1
verify_ssl: false
username: "user"
password: "password"
authentication: digest
I am, for now, not using secrets but the username and password are explicit (changed here to just user/password).
Here’s the thing – the http (still) image requires the credentials inside the URL. The rstp requires the credentials to be explicit as separate lines.
So in the above if I remove the last three lines, the stream stops working.
And in the above if I remove the user:password@ from the URL then the still image does not work.
Including it in all possible places does work.
This is more observation in case it helps anyone than a question. I have no idea if this is a limitation in the cameras, or an issue in the new generic IP camera code, or… ?
But it sent me around in circles for a long time as I kept trying one or the other, not all (and for this camera digest was required as well).
But once I got that it worked nicely – with one service call my TV turns on and displays the stream. Very cool.
Thanks for this!
Linwood
PS. I’m on 0.90.1 not yet .2.