Control 3 heating levels if-then-else?

Hello, need your help. I would like to switch 3 heating coils depending on the feed current. The 3 levels should be controlled by a shelly (2pmplus). Level 1 S0, Level 2 S1, Level 3 S0+S1 … I managed to get the query about the excess power. But I’m overwhelmed with the loops if, then, else. The following controls should work:
P < 400W no function
P > 400W Level1
p > 800W < 1200W Level2
p > 1200W level 3
Have no idea how I can do that between the levels up and down or switched off.
Here is the Yaml I have so far:

alias: Warmwasser
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.einspeisung
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 400
    id: Stufe1
    below: 799.9
  - platform: numeric_state
    entity_id: sensor.einspeisung
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 800
    id: Stufe2
    below: 1199.9
  - platform: numeric_state
    entity_id: sensor.einspeisung
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 1200
    id: Stufe 3
condition: []
action:
  - if:
      - condition: trigger
        id: Stufe1
    then:
      - service: input_booleam.turn_on
      - type: turn_on
        device_id: 99c001e5a0cd6c43782fe1d3e3e15f5c
        entity_id: switch.wasser_heizung_switch_0
        domain: switch
mode: single

Thx for your help

For 3 possibilities you need an action that can handle an Else-If… in HA that is a Choose action. Each sequence option needs to include the appropriate “turn off” and “turn on” actions.

alias: Warmwasser
description: ""
trigger:
  - platform: numeric_state 
    id: Stufe1
    entity_id: sensor.einspeisung
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 400
    below: 799.9
  - platform: numeric_state 
    id: Stufe2
    entity_id: sensor.einspeisung
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 800
    below: 1199.9
  - platform: numeric_state 
    id: Stufe 3
    entity_id: sensor.einspeisung
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 1200
condition: []
action:
  - choose:
      - condition:
          - condition: trigger
            id: Stufe1
        sequence:
          - service: switch.turn_on
            target:
              entity_id: switch.wasser_heizung_switch_0
          - service: switch.turn_off
            target:
              entity_id: switch.wasser_heizung_switch_1
      - condition:
          - condition: trigger
            id: Stufe2
        sequence:
          - service: switch.turn_off
            target:
              entity_id: switch.wasser_heizung_switch_0
          - service: switch.turn_on
            target:
              entity_id: switch.wasser_heizung_switch_1
      - condition:
          - condition: trigger
            id: Stufe3
        sequence:
          - service: switch.turn_on
            target:
              entity_id: 
                - switch.wasser_heizung_switch_0
                - switch.wasser_heizung_switch_1
mode: single