Device name from device_id selector

How can I get device name in templating? I want to use device name in blueprint by using device selector. But selector gives me device_id. How can read device name?

One way is to use the device_attr like this:

{{ device_attr("<device id>", "name") }}
1 Like

yes! thank you! This is it!

“name_by_user” was what I needed
for those that come after:

1 Like