#camera_entity API retrieve incorrect stream

1 messages · Page 1 of 1 (latest)

ripe fractal
#

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=cameratoken in 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.snapshot incorrectly retrieves a snapshot of the mainstream
  • In Automations, calling the service camera.snapshot also incorrectly retrieves a snapshot of the mainstream.
  • Lovelace Dashboard Picture entity with camera.sliding_glass_door_camera_substream correctly 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