Skip to content

Instantly share code, notes, and snippets.

@nelsonjchen
Last active January 30, 2022 23:11
Show Gist options
  • Save nelsonjchen/b35bf1d651d13943201c58c3bcc73124 to your computer and use it in GitHub Desktop.
Save nelsonjchen/b35bf1d651d13943201c58c3bcc73124 to your computer and use it in GitHub Desktop.
Aeotec Minimote buttons
---
blueprint:
name: Aeotec Minimote
description: Create automations for the Aeotec Minimote
domain: automation
input:
aeotec_minimote:
name: Aeotec MiniMote
description: The Minimote to interact with.
selector:
device:
integration: zwave_js
button_1:
name: Press Button One
description: Action to run on button press.
default: []
selector:
action: {}
button_2:
name: Press Button Two
description: Action to run on button press.
default: []
selector:
action: {}
button_3:
name: Press Button Three
description: Action to run on button press.
default: []
selector:
action: {}
button_4:
name: Press Button Four
description: Action to run on button press.
default: []
selector:
action: {}
mode: single
max_exceeded: silent
trigger:
platform: event
event_type: zwave_js_value_notification
event_data:
command_class_name: Scene Activation
device_id: !input aeotec_minimote
action:
- variables:
scene_id: "{{ trigger.event.data.value }}"
- choose:
- conditions: "{{ scene_id == 1 }}"
sequence: !input button_1
- conditions: "{{ scene_id == 3 }}"
sequence: !input button_2
- conditions: "{{ scene_id == 5 }}"
sequence: !input button_3
- conditions: "{{ scene_id == 7 }}"
sequence: !input button_4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment