Hello
I’m trying to create an automatic popup for my buttons that are inputs_selects,
I can get the lists of options like this
state_attr('input_select.optioninput', 'options')
But I would like to use it in a poupup dynamically, I tried the following way but I don’t see any option.
tap_action:
action: call-service
service: browser_mod.popup
service_data:
title: Escolha uma opção
card_mod:
style:
ha-dialog$: |
div.mdc-dialog div.mdc-dialog__scrim {
backdrop-filter: blur(10px);
}
right_button: Definir
right_button_action:
action: call-service
service: input_select.select_option
service_data:
option: "???"
entity_id: "[[[ return entity.entity_id; ]]]"
content:
- name: params
label: Options
selector:
select:
multiple: false
options: >
{{ state_attr(entity.entity_id, 'options') }}
Any idea how to get this to work?