Skip to content

Reolink integration identifiers breaking change for retrieving channels #140599

Open
@JeromeHoen

Description

@JeromeHoen

The problem

I have a blueprint to send a notification with an action. The idea is to have a button (action) on the notification to open the camera feed that sent the photo. Code for the action:
`{% set identifiers = device_attr(camera, 'identifiers') | list %}
{% set uid = identifiers[0][1].split('_')[0] %}
{% set channel = identifiers[0][1].split('_ch')[1] | int %}
{% set almchn = 2 ** channel %}

intent:#Intent;component=com.mcu.reolink/com.android.bc.login.WelcomeActivity;S.UID={{ uid }};S.ALMTYPE=VISITOR;S.ALMCHN={{ almchn }};end`

Identifiers used to return something like:
[ [ "reolink", "NVRUID_ch1" ] ]
and I could extract the channel number and feed it to the intent of the action. Not sure after which upgrade it stopped working but I think it was still fine in early 2025.

Now identifiers return:
[ [ "reolink", "NVRUID_CAMERAUID" ] ]

How can I get the channel now?

Thank you!

What version of Home Assistant Core has the issue?

core-2025.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions