Status of one Device is not displayed with two devices

Hello, in my attempts to display the status of the washer and dryer, I run into the problem that it only succeeds with one. depending on which one is on top. The status is not displayed correctly for one of them. Do I need to arrange the config differently? Here’s my config:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

sensor:  
  - platform: template
    sensors:
    # Trockner
      trockner_watts:
        value_template: '{{ states.switch.trockner.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'w'
      trockner_total_kwh:
        value_template: '{{ states.switch.trockner.attributes["total_consumption"] | float }}'
        unit_of_measurement: 'kwh'
      trockner_temperature:
        value_template: '{{ states.switch.trockner.attributes["temperature"] | float }}'
        unit_of_measurement: '°C'

    # Waschmaschine
      waschmaschine_watts:
        value_template: '{{ states.switch.waschmaschine.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'w'
      waschmaschine_total_kwh:
        value_template: '{{ states.switch.waschmaschine.attributes["total_consumption"] | float }}'
        unit_of_measurement: 'kwh'
      waschmaschine_temperature:
        value_template: '{{ states.switch.waschmaschine.attributes["temperature"] | float }}'
        unit_of_measurement: '°C'

    # Aquarium Gaesteklo
      aquarium_watts:
        value_template: '{{ states.switch.aquarium_gasteklo.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'w'
      aquarium_total_kwh:
        value_template: '{{ states.switch.aquarium_gasteklo.attributes["total_consumption"] | float }}'
        unit_of_measurement: 'kwh'
      aquarium_temperature:
        value_template: '{{ states.switch.aquarium_gasteklo.attributes["temperature"] | float }}'
        unit_of_measurement: '°C'

      # Trockner eigener Sensor
      dryer_status:
        entity_id:
          - input_select.dryer_status
        value_template: '{{ states.input_select.dryer_status.state}}'

      # Waschmaschine eigener Sensor
      washing_machine_status:
        entity_id:
          - input_select.washing_machine_status
        value_template: '{{ states.input_select.washing_machine_status.state}}'
   
# Eingabemöglichkeiten Trockner
input_select:
  dryer_status:
    name: trockner status
    options:
      - aus
      - arbeitet
      - fertig
    initial: aus

# Eingabemöglichkeiten Waschmaschine
input_select:
  washing_machine_status:
    name: waschmaschine status
    options:
      - aus
      - arbeitet
      - fertig
    initial: aus

and the automation:

## Waschmaschine arbeitet
- id: '1122334455018'
  alias: Waschmaschine arbeitet
  description: Wenn Steckdose über 10 Watt verbraucht, wird Zustand des Sensors Waschmaschine
    auf "arbeitet" gesetzt.
  trigger:
  - above: '10'
    entity_id: sensor.waschmaschine_watts
    for: 00:00:30
    platform: numeric_state
  condition: []
  action:
  - data:
      option: arbeitet
    entity_id: input_select.washing_machine_status
    service: input_select.select_option
  mode: single

## Waschmaschine fertig
- id: '1122334455019'
  alias: Waschmaschine fertig
  description: ''
  trigger:
  - above: '0.5'
    below: '7'
    entity_id: sensor.waschmaschine_watts
    for: 00:01:30
    platform: numeric_state
  condition:
  - condition: state
    entity_id: input_select.washing_machine_status
    state: arbeitet
  action:
  - data:
      option: fertig
    entity_id: input_select.washing_machine_status
    service: input_select.select_option
  - data:
      message: Die Waschmaschine ist fertig und möchte ausgeräumt werden!
    service: notify.mobile_app_in2023
  - data:
      message: Die Waschmaschine ist fertig und möchte ausgeräumt werden!
    service: notify.mobile_app_oneplus_a6013
  mode: single

##Waschmaschine aus
- id: '1122334455020'
  alias: Waschmaschine aus
  description: ''
  trigger:
  - below: '0.5'
    entity_id: sensor.waschmaschine_watts
    for: 00:00:30
    platform: numeric_state
  condition: []
  action:
  - data:
      option: aus
    entity_id: input_select.washing_machine_status
    service: input_select.select_option

## Trockner arbeitet
- id: '1122334455021'
  alias: Trockner arbeitet
  description: Wenn Steckdose über 10 Watt verbraucht, wird Zustand des Sensors Trockner
    auf "arbeitet" gesetzt.
  trigger:
  - above: '10'
    entity_id: sensor.trockner_watts
    for: 00:00:30
    platform: numeric_state
  condition: []
  action:
  - data:
      option: arbeitet
    entity_id: input_select.dryer_status
    service: input_select.select_option
  mode: single

## Trockner fertig
- id: '1122334455022'
  alias: Trockner fertig
  description: ''
  trigger:
  - above: '0.5'
    below: '7'
    entity_id: sensor.trockner_watts
    for: 00:01:30
    platform: numeric_state
  condition:
  - condition: state
    entity_id: input_select.dryer_status
    state: arbeitet
  action:
  - data:
      option: fertig
    entity_id: input_select.dryer_status
    service: input_select.select_option
  - data:
      message: Der Trockner ist fertig und möchte ausgeräumt werden!
    service: notify.mobile_app_in2023
  - data:
      message: Der Trockner ist fertig und möchte ausgeräumt werden!
    service: notify.mobile_app_oneplus_a6013
  mode: single

##Trockner aus
- id: '1122334455023'
  alias: Trockner aus
  description: ''
  trigger:
  - below: '2'
    entity_id: sensor.trockner_watts
    for: 00:00:30
    platform: numeric_state
  condition: []
  action:
  - data:
      option: aus
    entity_id: input_select.dryer_status
    service: input_select.select_option

The result is:
image
(First status = correct, second = not available)

This is wrong, there can only be one input_select section (as with all other domains). Use:

input_select:
# Eingabemöglichkeiten Trockner
  dryer_status:
    name: trockner status
    options:
      - aus
      - arbeitet
      - fertig
    initial: aus
# Eingabemöglichkeiten Waschmaschine
  washing_machine_status:
    name: waschmaschine status
    options:
      - aus
      - arbeitet
      - fertig
    initial: aus
1 Like

Works perfectly. Thanks a lot for the help! And learned again. :smiling_face_with_three_hearts: