Template help : list friendly name

How do I make a list of this with friendly names instead of sensor name ?

{{ ['sensor.renoweb_240_l_2_kammer_papir_metal_havebolig', 'light.dinig_room'] | select('is_state', '21')  | list }}

{{ expand( ['sensor.1', 'sensor.2']|select('is_state', '21') )
|map(attribute='name') |list }}

1 Like

Thanks, is it possible to remove the [ and ]

image

You can use join instead of list.

join(', ') = comma-separated
join('\n') = paragraphs

1 Like

Perfect. Thanks :slight_smile: