Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - variables:
- alexa_entity_id: >
- {% set dispositivi_alexa =
- [
- {'select': 'Bagno', 'entity_id': 'media_player.alexa_bagno'},
- {'select': 'Cucina', 'entity_id': 'media_player.alexa_cucina},
- {'select': 'Soggiorno', 'entity_id': 'media_player.alexa_soggiorno},
- {'select': 'Cameretta', 'entity_id': 'media_player.alexa_cameretta},
- {'select': 'Ovunque', 'entity_id': 'media_player.ovunque}
- ]
- %}
- {{dispositivi_alexa | selectattr('select', 'eq', states('input_select.alexa')) | map(attribute='entity_id') | first | default('')}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement