If this politically incorrect please delete.
Also its a terrible copy of @bachya for the nanomote quad blueprint but it works with any (or at least with my other button made by
Technisat.
there are still many code from the nano mote, but it works
you can change the number of buttons you want to use and also change the device name on the yaml. But it works like a charm for me! for all the noobs like me, if you enconter any problem , just reply. and i will try to help.
I coundt change the Device ID on the trigger, but it works still
Also, please if someone can make this better, please do
blueprint:
name: remote buttons
description: Create automations for any button for z-wave js integration.
domain: automation
input:
aeotec_nanomote:
name: Four-key Scene Controller
description: The remote to interact with.
selector:
device:
integration: zwave_js
manufacturer: HANK Electronics Ltd.
model: SCN04
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_event
event_data:
command_class_name: Central Scene
device_id: !input aeotec_nanomote
action:
- variables:
scene_id: "{{ trigger.event.data.property_key_name }}"
- choose:
- conditions: "{{ scene_id == '001' }}"
sequence: !input button_1
- conditions: "{{ scene_id == '002' }}"
sequence: !input button_2
- conditions: "{{ scene_id == '003' }}"
sequence: !input button_3
- conditions: "{{ scene_id == '004' }}"
sequence: !input button_4