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 }}
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 }}
Thanks, is it possible to remove the [ and ]
You can use join
instead of list
.
join(', ')
= comma-separated
join('\n')
= paragraphs
Perfect. Thanks