Test pour minimot-mini

Ceci est un test pour les minimote ZW088 pour une intégration dans home asistant

blueprint:
  name: Aeon Labs Minimote-Mini
  description: Create automations for the Aeon Labs Minimote
  domain: automation

  input:
    minimote_device:
      name: Minimote Device
      description: A Minimote device.
      selector:
        device:
          integration: zwave_js
          manufacturer: AEON Labs
          model: ZW088

    button_1_pressed:
      name: Button 1 Pressed
      description: Actions to run when button 1 is pressed.
      default: []
      selector:
        action:

    button_1_held:
      name: Button 1 Held Down
      description: Actions to run when button 1 is held down.
      default: []
      selector:
        action:

    button_2_pressed:
      name: Button 2 Pressed
      description: Actions to run when button 2 is pressed.
      default: []
      selector:
        action:

    button_2_held:
      name: Button 2 Held Down
      description: Actions to run when button 2 is held down.
      default: []
      selector:
        action:

    button_3_pressed:
      name: Button 3 Pressed
      description: Actions to run when button 3 is pressed.
      default: []
      selector:
        action:

    button_3_held:
      name: Button 3 Held Down
      description: Actions to run when button 3 is held down.
      default: []
      selector:
        action:

    button_4_pressed:
      name: Button 4 Pressed
      description: Actions to run when button 4 is pressed.
      default: []
      selector:
        action:

    button_4_held:
      name: Button 4 Held Down
      description: Actions to run when button 4 is held down.
      default: []
      selector:
        action:

mode: single
max_exceeded: silent

trigger:
  platform: event
  event_type: zwave_js_value_notification
  event_data:
    device_id: !input minimote_device
    command_class: 43   # Scene Activation
    property: sceneId

action:
  - variables:
      scene_id: "{{ trigger.event.data.value_raw }}"
  - choose:
    - conditions: "{{ scene_id == 1 }}"
      sequence: !input button_1_pressed
    - conditions: "{{ scene_id == 2 }}"
      sequence: !input button_1_held
    - conditions: "{{ scene_id == 3 }}"
      sequence: !input button_2_pressed
    - conditions: "{{ scene_id == 4 }}"
      sequence: !input button_2_held
    - conditions: "{{ scene_id == 5 }}"
      sequence: !input button_3_pressed
    - conditions: "{{ scene_id == 6 }}"
      sequence: !input button_3_held
    - conditions: "{{ scene_id == 7 }}"
      sequence: !input button_4_pressed
    - conditions: "{{ scene_id == 8 }}"
      sequence: !input button_4_held