Dear Hunterjm and others,
I kindly came to ask your help to make work the stream function of my camera in Home Assistant. I spent the last days trying to figure out how to make it work, but without success.
I’m running Hass.io in a Raspberry Pi 3B+ and using a generic / chinese camera (Guanghou - IPC, model C3-S-H3 sold as Lenovo brand). I already tested with success this camera with VLC software (still image and streaming) and I used the HTTP and RSTP adress to set it up in HA. There, my configuration.yalm is like this:
Copy to clipboard
stream:
camera:
- platform: generic
name: camera1
username: XXXX
password: YYYY
authentication: digest
verify_ssl: false
still_image_url: http://192.168.0.29/snapshot.jpg?
stream_source: rtsp://XXXX:[email protected]/ch0_0.264
Note1: The stream address above works on VLC.
Note2: My Home assistant version: 0.108.6; Frontend version: 20200407.2 - latest
I inserted a card in my lovelace with the following configuration:
Copy to clipboard
aspect_ratio: 50%
camera_image: camera.camera1
entity: camera.camera1
name: Camera
type: picture-entity
The static image of the camera appears in this card, but when I click on it to start the stream function, it opens a media player window but does not play the video.
I tried in a lot different ways but never the streaming function works…
In my error file log there is only this 2 lines:
Copy to clipboard
2020-04-22 22:27:52 ERROR (stream_worker) [homeassistant.components.stream.worker] Error demuxing stream: No dts in packet
2020-04-22 22:27:59 ERROR (SyncWorker_3) [homeassistant.components.generic.camera] Error getting new camera image from camera1: HTTPConnectionPool(host='192.168.0.29', port=80): Read timed out.
I would be very grateful if you can help me with this matter…