No matter what, it always rejects my URL’s for still image, and sporadically it rejects for rtsp stream url as well. I can open the URL’s in the browser or in VLC, but ha says it can’t load the still image URL. I was able to use the amcrest integration to get the amcrest camera’s setup, but now i cannot setup the dbell. no matter what it is rejecting the still image URL, though i can open the URL in the browser just fine. Any ideas for this frustrating issue?
I have the same issue with Reolink RLC-820A. I can add it with custom integration https://github.com/fwestenberg/reolink_dev, but cannot add it with generic camera.
@lee-van-oetz Please can you paste the UI message and ideally the console output that happens when you try to add it?
I also know this problem with my Dahua/Amcrest cameras and NVR.
If I try to enter the still image URL I get the same error. If I only enter the stream URL it’s working.
BTW: Before the settings were made via the generic camera interface/dashboard, i.e. via configuration.yaml like this
#camera:
#
# - platform: generic
# still_image_url: http://name:[email protected]:80/cgi-bin/snapshot.cgi?1
# stream_source: rtsp://name:[email protected]:554/cam/realmonitor?channel=9&subtype=0
# name: Dahua NVR
# verify_ssl: false
# username: name
# password: password
# authentication: digest
everything was fine and without errors.
Quick update: I had container install via Umbrel. I’ve removed that and I’m now running docker container directly on raspberry OS. Overall, it seems like HA works better. I can now add the camera without the still image – but I think I just can’t figure out the correct URL for that.
They’re working on it
The work in progress issue linked above relates to reconfiguring.
The first time you connect it should work fine.
The ‘still image url’ you enter needs to be just the raw image, e.g. a jpeg/png, not a web page containing an image.
Can you check that the url you used does not return any html?
I can’t add OR reconfigure- seems like the same issue.
Of course you can add a web page with an image source (as I’ve been doing with animated weather radar charts for ages). In fact an example they give in the documentation for a still_image_url
source is
https://www.yr.no/en/content/1-72837/meteogram.svg
The example is not an html file, it’s an svg file. The first text in it is <svg …>
If you configure a new camera and paste that as a still_image_url it should work.
But if you put http://www.wikipedia.org it won’t work. The URL in the screenshot in @lee-van-oetz 's post looked too short to be a raw image url.
While helping other users I’ve found some trying to use a URL that rendered a full screen image in a html page rather than the actual image.
@fmon I’ve submitted a PR to fix the configure issue, but am not aware of any problem with adding. Please can you provide more detail of what won’t add?
Ah, I see what you mean.
This is the error that I get if I use that same .svg URL from the documentation (in my last post):
User input malformed: value must be one of ['http', 'tcp', 'udp', 'udp_multicast'] for dictionary value @ data['rtsp_transport']
… which looks like it wants something in the stream source field. If I put the same thing in both still image and stream source and select http as the authentication, it times out.
That error is just saying you’ve not picked anything for the first radio button. One could argue that leaving it blank should be allowed if no stream is in use.
But you can tick the first option with no bad consequence.