How to set input_select with an input_boolean

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

Changed it to:

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_68a40ea8e990_bsh_common_setting_powerstate
    data:
      option: "{{ trigger.id }}"
mode: single

The automation is triggered but unfortunately it does not work. I use the Home Connect alt integration. Maybe it should be done with a script?

Post the automation’s trace that was produced when it failed to work.


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

Ok, I have found the solution. Once you know it, it’s not that hard anymore. xD

alias: Küche Backofen Ein/Aus
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.feuerkruste_schalter
    id: "On"
    to: "on"
  - platform: state
    entity_id:
      - input_boolean.feuerkruste_schalter
    id: Standby
    to: "off"
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "On"
        sequence:
          - device_id: 20be3610d387f012b971430a927a2540
            domain: select
            entity_id: c29b7f316a0219f3a607c1b055dbbcf6
            type: select_option
            option: BSH.Common.EnumType.PowerState.On
      - conditions:
          - condition: trigger
            id:
              - Standby
        sequence:
          - device_id: 20be3610d387f012b971430a927a2540
            domain: select
            entity_id: c29b7f316a0219f3a607c1b055dbbcf6
            type: select_option
            option: BSH.Common.EnumType.PowerState.Standby
mode: single

Thanks to all who were willing to help