Shelly BLU Button 1 seen as BTHome Device - 4 actions

Shelly BLU Button 1 seen as BTHome Device - 4 actions

blueprint:
  name: Shelly BLU Button 1 seen as BTHome Device - 4 actions
  domain: automation
  input:
    button:
      name: Select your Shelly BLU Button 1
      selector:
        device:
          integration: bthome
          multiple: false
    1_click:
      name: Simple click action
      default: []
      selector:
        action: {}
    2_click:
      name: Double click action
      default: []
      selector:
        action: {}
    3_click:
      name: Tripple click action
      default: []
      selector:
        action: {}
    l_click:
      name: Long click action
      default: []
      selector:
        action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: device
  device_id: !input button
  domain: bthome
  type: button
  subtype: press
  id: bt_1_click
- platform: device
  device_id: !input button
  domain: bthome
  type: button
  subtype: double_press
  id: bt_2_click
- platform: device
  device_id: !input button
  domain: bthome
  type: button
  subtype: triple_press
  id: bt_3_click
- platform: device
  device_id: !input button
  domain: bthome
  type: button
  subtype: long_press
  id: bt_l_click
action:
- choose:
  - conditions:
    - condition: trigger
      id: bt_1_click
    sequence: !input 1_click
  - conditions:
    - condition: trigger
      id: bt_2_click
    sequence: !input 2_click
  - conditions:
    - condition: trigger
      id: bt_3_click
    sequence: !input 3_click
  - conditions:
    - condition: trigger
      id: bt_l_click
    sequence: !input l_click