I am currently trying my hand at integrating an oven with Home Connect. So far, everything is integrated in Home Assistant. I now only have the problem that the oven is switched on with an input_select or set to standby. I would like to have a button that switches on / off with one click. I have written this automation, but it does not work. Does anyone have an idea and can help me?
alias: Küche Backofen Ein/Aus
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.feuerkruste_schalter
id: Backofen An
to: "on"
- platform: state
entity_id:
- input_boolean.feuerkruste_schalter
id: Backofen Aus
to: "off"
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Backofen An
sequence:
- service: input_select.set_options
target:
entity_id: >-
select.bosch_hbg676eb6_xxxxxxxxxxxx_bsh_common_setting_powerstate
data:
option: An
- conditions:
- condition: trigger
id:
- Backofen Aus
sequence:
- service: input_select.set_options
target:
entity_id: >-
select.bosch_hbg676eb6_xxxxxxxxxxxx_bsh_common_setting_powerstate
data:
option: Standby
mode: single
A select entity does not respond to input_select services. You need to use service: select.select_option not set_options which is for setting the options available to be selected.
alias: Küche Backofen Ein/Aus
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.feuerkruste_schalter
id: An
to: "on"
- platform: state
entity_id:
- input_boolean.feuerkruste_schalter
id: Standby
to: "off"
condition: []
action:
- service: select.select_option
target:
entity_id: select.bosch_hbg676eb6_xxxxxxxxxxxx_bsh_common_setting_powerstate
data:
option: "{{ trigger.id }}"
mode: single
Triggered by the state of input_boolean.feuerkruste_schalter at 29. Juli 2023 um 21:08:52
Aufruf eines Dienstes 'Auswählen: Select' auf Feuerkruste - Power State
Stopped because an error was encountered at 29. Juli 2023 um 21:08:52 (runtime: 0.05 seconds)
Option Standby not valid for select.bosch_hbg676eb6_68a40ea8e990_bsh_common_setting_powerstate
I took a look at the logs. Apparently An and Standby are not available options although they are the only ones I have to choose from.
Küche Backofen Ein/Aus: Error executing script. Unexpected error for call_service at pos 1: Option An not valid for select.bosch_hbg676eb6_68a40ea8e990_bsh_common_setting_powerstate
While executing automation automation.kuche_backofen_ein_aus
Küche Backofen Ein/Aus: Error executing script. Unexpected error for call_service at pos 1: Option Standby not valid for select.bosch_hbg676eb6_68a40ea8e990_bsh_common_setting_powerstate