#camera_entity API retrieve incorrect stream
1 messages · Page 1 of 1 (latest)
camera_entity API retrieve incorrect stream
My cameras are connected via the ONVIF integration.
Each camera has 2 streams, Main and Sub, which are 4K and 720p respectively.
When streaming the cameras on the lovelace dashboard, they correctly stream the Substream feed.
However, I can never seem to get the API or camera.snapshot service to target the substream, only the mainstream.
What I've tried so far:
- Calling
https://home.assistant.url/api/camera_proxy/camera.sliding_glass_door_camera_substream?token=cameratokenin a browser URL incorrectly streams/shows a still image of the mainstream. (This also means that the entity picture is also retrieving a snapshot from the mainstream... which explains now why that icon always takes so long to populate for me)- In Node-Red, calling the service
camera.snapshotincorrectly retrieves a snapshot of the mainstream- In Automations, calling the service
camera.snapshotalso incorrectly retrieves a snapshot of the mainstream.- Lovelace Dashboard Picture entity with
camera.sliding_glass_door_camera_substreamcorrectly streams the substream- Lovelace Dashboard I copied from /r/swake88/ https://github.com/pqpxo/SWAKES_hassio/blob/master/dashboards/security.yaml strangely incorrectly streams the MainStream