Hi, I am trying to stream video from my cctv in the Home Assistant so I can view it on the dashboard.
However I have searched high and low and tried all possible combinations to stream it. I can stream the camera in VLC using the link rtsp://admin:***@10.107.1.:00554/ch01/0 and it loads the stream fine.
Without adding the camera component and adding the following code
All I am trying to do is play the stream. or even play it in a iframe or anyway possible. Or is this something not possible? Any help will be appreciated.
I have tried all three above mentioned ways and every time it threw the same error while checking the configuration.yaml
Error “Component error: camera - cannot import name ‘get_url’ from ‘homeassistant.helpers.network’ (/usr/src/homeassistant/homeassistant/helpers/network.py)”
For anyone else finding this topic in search of video integration in home assistant:
key for me also was to add the Picture Glance Card to the dashboard to see it live. At first I didn’t think my configuration worked because the default dashboard camera showed gray static content until I accidentally pressed it and saw the video feed pop up.
using the secrets.yaml file my config looks like this:
configuration.yaml:
the (redacted) secrets.yaml needs no reference and looks like this for a dahua doorbell:
# Use this file to store secrets like usernames and passwords.
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
rtsp_doorbell_url: rtsp://<user>:<url-adjusted-password>@<ip>:<port-like-554>/cam/realmonitor?channel=1&subtype=0
rtsp_doorbell_still_image_url: http://<user>:<url-adjusted-password>@<ip>/cgi-bin/snapshot.cgi?1