Hello,
Have a smart washingmachine and struggle with some code.
I want to select the washing programm
I would like to select an item from one <input_select> that consists of one line. By means of a button up and down would be the possibility to scroll through the list. The input_select was created as a helper. The helper is filled with about 10 items
I use the integration for this:
select-list-card .
So two buttons and a input_select list.
The code in the custom button card I’m using doesn’t do what it’s supposed to. The tab_action late in the input_select list does not provide the scroll effect.
A button card made in love-lace horizontal stacked does work.
Can someone help me get started?
This works:
type: horizontal-stack
cards:
- show_name: false
show_icon: true
type: button
tap_action:
action: perform-action
perform_action: input_select.select_next
target:
entity_id: input_select.was_wasprogramma
data:
cycle: true
entity: input_button.button_down
- show_name: false
show_icon: true
type: button
tap_action:
action: perform-action
perform_action: input_select.select_previous
target:
label_id: washingmachine_input_select
entity: input_button.button_up
- type: custom:select-list-card
entity: input_select.was_wasprogramma
icon: ""
truncate: true
show_toggle: false
scroll_to_selected: true
max_options: 1
This does not work…
item2:
card:
type: custom:button-card
template: custom_washer_grid_select_program
custom_fields:
item1:
card:
type: custom:button-card
show_name: false
show_label: false
template:
- icon_info
entity: >-
[[[ return variables.ulm_custom_washer_grid_select_programm
]]]
state: null
icon: mdi:upload-circle-outline
name: Selection-down
tap_action:
action: call-service
service: input_select.select_previous
target: '[[[ variables.ulm_custom_washer_grid_select_programm ]]]'
data:
cycles: true
styles:
icon:
- transform: scale(1.9)
item2:
card:
type: custom:button-card
show_name: false
show_label: false
template:
- icon_info
entity: >-
[[[ return variables.ulm_custom_washer_grid_select_programm
]]]
state: null
icon: mdi:download-circle-outline
name: Selection-down
tap_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: >-
[[[ return
variables.ulm_custom_washer_grid_select_programm ]]]
styles:
icon:
- transform: scale(1.9)
item3:
card:
entity: >-
[[[ return variables.ulm_custom_washer_grid_select_programm
]]]
type: custom:select-list-card
icon: ''
truncate: true
show_toggle: false
scroll_to_selected: true
max_options: 1