blueprint:
  name: Aqara single switch
  domain: automation
  input:
    action_entity:
    click:
      default: []
    double_click:
      default: []
    hold:
      default: []
mode: queued
trigger:
  platform: state
  entity_id: !input action_entity

action:
  - choose:
    - conditions: "{{ trigger.to_state.state == 'single' }}"
      sequence: !input click

    - conditions: "{{ trigger.to_state.state == 'double' }}"
      sequence: !input double_click

    - conditions: "{{ trigger.to_state.state == 'hold' }}"
      sequence: !input hold
