Hi all,
I have an input_select with the options: None, TV, Music and Lights
I have a picture-elements image and I want the tap_action to change the input_select.
If the input_select is already ‘TV’ I want it to change to ‘None’, else, change it to TV.
This is what I have, but I’m getting the error:
Failed to call service input_select/select_option. required key not provided @ data ['option']
This is what I have so far in my ui-lovelace.yaml:
tap_action:
action: call-service
service: input_select.select_option
service_template:
entity_id: input_select.living_room_item_selection
option: >
{% if is_state ('input_select.living_room_item_selection', 'TV') %}
None
{% else %}
TV
{% endif %}
This is giving me the above error. Any suggestions?