Rollladensteuerung mit Shelly und 2 Taster

Ich habe für jeden HmIP mehrfachschalter eine Automation.
Vielleicht kann das jemand brauchen, die unteren vier tasten sind jeweils Rollo hoch und runter, wenn das Rolle fährt kann mit der hoch oder runter Taste gestopt werden.

alias: Schalter_HmIP-WRC6_2
description: Licht und Rollosteuerung im Schlafzimmer
triggers:
  - domain: homematicip_local
    device_id: ca54741b979xxxxxx67fcf161cac9
    event_type: homematic.keypress
    address: 000Bxxxxxx8458F
    model: HmIP-WRC6
    interface_id: Homatic.local-HmIP-RF
    type: press_short
    subtype: 1
    trigger: device
    id: HmIP-WRC6_2_T1
  - domain: homematicip_local
    device_id: ca54741b979xxxxxx67fcf161cac9
    event_type: homematic.keypress
    address: 000Bxxxxxx8458F
    model: HmIP-WRC6
    interface_id: Homatic.local-HmIP-RF
    type: press_short
    subtype: 2
    trigger: device
    id: HmIP-WRC6_2_T2
  - domain: homematicip_local
    device_id: ca54741b979xxxxxx67fcf161cac9
    event_type: homematic.keypress
    address: 000Bxxxxxx8458F
    model: HmIP-WRC6
    interface_id: Homatic.local-HmIP-RF
    type: press_short
    subtype: 3
    trigger: device
    id: HmIP-WRC6_2_T3
  - domain: homematicip_local
    device_id: ca54741b979xxxxxx67fcf161cac9
    event_type: homematic.keypress
    address: 000Bxxxxxx8458F
    model: HmIP-WRC6
    interface_id: Homatic.local-HmIP-RF
    type: press_short
    subtype: 4
    trigger: device
    id: HmIP-WRC6_2_T4
  - domain: homematicip_local
    device_id: ca54741b979xxxxxx67fcf161cac9
    event_type: homematic.keypress
    address: 000Bxxxxxx8458F
    model: HmIP-WRC6
    interface_id: Homatic.local-HmIP-RF
    type: press_short
    subtype: 5
    trigger: device
    id: HmIP-WRC6_2_T5
  - domain: homematicip_local
    device_id: ca54741b979xxxxxx67fcf161cac9
    event_type: homematic.keypress
    address: 000Bxxxxxx8458F
    model: HmIP-WRC6
    interface_id: Homatic.local-HmIP-RF
    type: press_short
    subtype: 6
    trigger: device
    id: HmIP-WRC6_2_T6
conditions: []
actions:
  - alias: Taste 1
    if:
      - condition: trigger
        id:
          - HmIP-WRC6_2_T1
    then:
      - target:
          entity_id: light.sh1p_3
        action: light.toggle
        data: {}
  - alias: Taste 2
    if:
      - condition: trigger
        id:
          - HmIP-WRC6_2_T2
    then:
      - target:
          entity_id: light.sh1p_3
        action: light.toggle
        data: {}
  - alias: Taste 3
    choose:
      - conditions:
          - condition: trigger
            id:
              - HmIP-WRC6_2_T3
          - condition: or
            conditions:
              - condition: state
                entity_id: cover.schlafzimmer_ture
                state: opening
              - condition: state
                entity_id: cover.schlafzimmer_ture
                state: closing
        sequence:
          - target:
              entity_id: cover.schlafzimmer_ture
            action: cover.stop_cover
            data: {}
      - conditions:
          - condition: trigger
            id:
              - HmIP-WRC6_2_T3
          - condition: numeric_state
            entity_id: cover.schlafzimmer_ture
            attribute: current_position
            below: 100
        sequence:
          - target:
              entity_id: cover.schlafzimmer_ture
            action: cover.open_cover
            data: {}
  - alias: Taste 4
    choose:
      - conditions:
          - condition: trigger
            id:
              - HmIP-WRC6_2_T4
          - condition: or
            conditions:
              - condition: state
                entity_id: cover.schlafzimmer_fenster
                state: opening
              - condition: state
                entity_id: cover.schlafzimmer_fenster
                state: closing
        sequence:
          - target:
              entity_id: cover.schlafzimmer_fenster
            action: cover.stop_cover
            data: {}
      - conditions:
          - condition: trigger
            id:
              - HmIP-WRC6_2_T4
          - condition: numeric_state
            entity_id: cover.schlafzimmer_fenster
            attribute: current_position
            below: 100
        sequence:
          - target:
              entity_id: cover.schlafzimmer_fenster
            action: cover.open_cover
            data: {}
  - alias: Taste 5
    choose:
      - conditions:
          - condition: trigger
            id:
              - HmIP-WRC6_2_T5
          - condition: or
            conditions:
              - condition: state
                entity_id: cover.schlafzimmer_ture
                state: opening
              - condition: state
                entity_id: cover.schlafzimmer_ture
                state: closing
        sequence:
          - target:
              entity_id: cover.schlafzimmer_ture
            action: cover.stop_cover
            data: {}
      - conditions:
          - condition: trigger
            id:
              - HmIP-WRC6_2_T5
          - condition: numeric_state
            entity_id: cover.schlafzimmer_ture
            attribute: current_position
            above: 0
        sequence:
          - target:
              entity_id: cover.schlafzimmer_ture
            action: cover.close_cover
            data: {}
  - alias: Taste 6
    choose:
      - conditions:
          - condition: trigger
            id: HmIP-WRC6_2_T6
          - condition: or
            conditions:
              - condition: state
                entity_id: cover.schlafzimmer_fenster
                state: opening
              - condition: state
                entity_id: cover.schlafzimmer_fenster
                state: closing
        sequence:
          - target:
              entity_id: cover.schlafzimmer_fenster
            action: cover.stop_cover
            data: {}
      - conditions:
          - condition: trigger
            id: HmIP-WRC6_2_T6
          - condition: numeric_state
            entity_id: cover.schlafzimmer_fenster
            attribute: current_position
            above: 0
        sequence:
          - target:
              entity_id: cover.schlafzimmer_fenster
            action: cover.close_cover
            data: {}
mode: single