Hi all just got a new coffee machine that uses Home Connect to make it smart. The interrogation uses a select. to switch the machine from Standby to On, I would like that to be a button can I change the entity “select.713050390774001643_bsh_common_setting_powerstate” from a select to a button maybe in configuration.yaml something like this.
button:
- platform: template
buttons:
coffee_machine_button:
name: 'Toggle Coffee Machine'
icon: 'mdi:coffee' # Optional: Set an icon for the button
turn_on:
service: select.select_option
data:
entity_id: select.713050390774001643_bsh_common_setting_powerstate
option: 'On'
turn_off:
service: select.select_option
data:
entity_id: select.713050390774001643_bsh_common_setting_powerstate
option: 'Standby'
This configuration creates a button that will send a service call to the select.select_option service when turned on or off, changing the state of the coffee machine between ‘On’ and ‘Standby’.
After adding this to your configuration.yaml, you may need to restart Home Assistant or check if there’s a way to reload your configuration for the changes to take effect. Once it’s set up, you should see the button on your Home Assistant dashboard, and clicking it will toggle your coffee machine’s state.
Hi Hector that looks good but unfortunately it isn’t working. i do try changing the state value to as stated in the developer tools which is “BSH.Common.EnumType.PowerState.On” and “BSH.Common.EnumType.PowerState.Standby” but when I try to add a button card with the entity Toggle Coffee Machine it doesn’t show.