Reolink, Automation records the wrong lens

Hi.

I have a reolink trackmix wifi that I’ve integrated with home assistant. All works well and I can get the camera feed from both lenses.

However, I’ve set up Automations that records whenever a person/vehicle/pet is detected and it only records with the one lens. It doesn’t matter if I specify the correct entity id, it only uses “lens 1” and not “lens 0” even if lens 0 is specified in the yaml code…

Same for both clear and fluent feed.

In the same automation I also take snapshots and that works with the correct lens. So it only seem to have issues with recordings.

Anyone noticed this with dual lens cameras and been able to resolve it?

alias: "Altan djur upptäckt"
description: ""
trigger:
  - type: turned_on
    platform: device
    device_id: 71af32742f0f83e17c2cd7854881252f
    entity_id: 89cb43b1786ba79226783803bf232d77
    domain: binary_sensor
condition: []
action:
  - device_id: 600e57cb749ded5eab49ae2e6a332b92
    domain: mobile_app
    type: notify
    message: >-
      Djur upptäcktes vid Altan Tid 
      {{now().hour}}:{{now().minute}}:{{now().second}}
    title: Djur upptäcktes!
  - service: camera.snapshot
    data:
      filename: >-
        /media/data1/snapshots/altan/Djur/{{now().year}}-{{now().month}}-{{now().day}}/Altan_Djur_{{
        now().strftime("%Y%m%d-%H%M%S") }}.jpg
    target:
      area_id: altan
      device_id: 71af32742f0f83e17c2cd7854881252f
      entity_id: camera.altan_clear_lens_0
  - service: camera.record
    data:
      duration: 30
      lookback: 5
      filename: >-
        /media/data1/recordings/altan/Djur/{{now().year}}-{{now().month}}-{{now().day}}/Altan_Djur_{{
        now().strftime("%Y%m%d-%H%M%S") }}.mp4
    target:
      area_id: altan
      device_id: 71af32742f0f83e17c2cd7854881252f
      entity_id: camera.altan_clear_lens_0
    enabled: true
mode: single

Sorry to jump here, but can you share the information about the config? I am trying to set it up within HA but can’t get the clear stream to work. I am using official Reolink integration through Reolink NVR.

Everything gets detected, but clear streams don’t work, I can only see still image constantly flashing with generic stream error within HA.

Do you use different integration?

I would remove the device_id and only use the entity_id.

Then change the entity_id to the one of lens_1