Is there a way to template both keys and values?
I’ve tried:
actions: |-
{%- for entity in room_entities -%}
- action: 'autoroom_{{ entity }}'
title: '{{ state_attr(entity, 'friendly_name') }}'
{%- endfor %}
but it becomes
actions: |-
- action: 'autoroom_light.wohnzimmer_dimmer'
title: 'Wohnzimmer Dimme
and it should become
actions:
- action: 'autoroom_light.wohnzimmer_dimmer'
title: 'Wohnzimmer Dimme
Thanks!
1 post - 1 participant