bach
October 22, 2020, 4:49pm
1
Hi,
i’m quite new to hass and i need some help to setup a serie of buttons to select an input_select option
to be simple i want to change the option by clicking on a button
here is what i tried, without success so far
entities:
- entity: input_select.mode_chauffage_general
- type: 'custom:paper-buttons-row'
buttons:
- icon: 'mdi:radiator-off'
tap_action: call_service
service: input_select.select_option
entity_id: input_select.mode_chauffage_general
service_data:
option: "Arrêt"
- icon: 'mdi:snowflake'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: "Hors-Gel"
- icon: 'mdi:moon-waxing-crescent'
tap_action: call_service
service: input_select.mode_chauffage_general
service_data: { "option": "Eco" }
- icon: 'mdi:white-balance-sunny'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: Confort
tom_l
October 22, 2020, 5:46pm
2
This one looks correct to me:
- icon: 'mdi:snowflake'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: "Hors-Gel"
bach
October 22, 2020, 6:59pm
3
here is my full card, in case
type: entities
entities:
- entity: input_select.mode_chauffage_general
- type: 'custom:paper-buttons-row'
buttons:
- icon: 'mdi:radiator-off'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: Arrêt
- icon: 'mdi:snowflake'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: Hors-Gel
- icon: 'mdi:moon-waxing-crescent'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: Eco
- icon: 'mdi:white-balance-sunny'
tap_action: call_service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: Confort
- entity: light.qubino_goap_zmnhjd1_flush_dimmer_pilot_wire_level_2
secondary_info: brightness
name: salon
icon: 'mdi:radiator'
- entity: light.qubino_goap_zmnhjd1_flush_dimmer_pilot_wire_level
icon: 'mdi:radiator'
secondary_info: brightness
name: sdb rdc
- entity: light.qubino_goap_zmnhjd1_flush_dimmer_pilot_wire_level_3
icon: 'mdi:radiator'
name: sdb 1er
secondary_info: brightness
- entity: light.fp_qubino_chambre_1_level_4
icon: 'mdi:radiator'
name: chambre 1
secondary_info: brightness
- entity: light.qubino_goap_zmnhjd1_flush_dimmer_pilot_wire_level_5
name: qubino
icon: 'mdi:radiator'
secondary_info: brightness
title: Chauffage
state_color: true
tom_l
October 23, 2020, 4:32am
4
Oh I just noticed this:
bach:
custom:paper-buttons-row
I thought you were using the core buttons.
It still looks correct according to the custom card documentation. You should raise an issue here:
bach
October 23, 2020, 10:11am
5
i managed to get what a wanted with custom:stack-in-cards and custom:button-card
- type: 'custom:button-card'
entity: input_select.mode_chauffage_general
show_name: false
icon: 'mdi:radiator-off'
show_label: false
tooltip: Arrêt
tap_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: input_select.mode_chauffage_general
option: Arrêt
state:
- value: Arrêt
color: blue
and here is the issue https://github.com/jcwillox/lovelace-paper-buttons-row/issues/24