I am starting to create blueprints and I am trying to create a blueprint for a zwave minimote by aeon labs. The remote has four button each button generate a scene_value_id for a single press and a different id for a long press.
I have create 8 different automation, one for each state and it works correctly. Since I have 3 of these remotes, I thought that instead of having to create 24 automation, I would create a blueprint for the remote and use it to create different automation based on the blueprint for each remote.
I searched the blueprint exchange and found a blueprint that is similar but for a different zwave remote. original remote
I created the basic blueprint, created an animation based on the blueprint that sends a notification when any of the buttons is pressed. When I test, only the first button is working. I am not sure what I am doing wrong. Any help would be appreciated.
Here is my blueprint
blueprint:
name: Aeon Labs MiniMote US
description: Create automations for the Aeon Labs ZWus MiniMote using the OZW
integration.
domain: automation
input:
aeonlabs_minimote:
name: Aeon Labs MiniMote US
description: List of available Minimote remotes to configure. This list
is only a reference. At this time, it is not possible to obtain the node's
id using the device selector.
selector:
device:
integration: ozw
manufacturer: AEON Labs
model: DSA03202 Minimote
ozw_node_id:
name: Node ID
description: Enter the node id for an available NanoMote Quad you wish to configure.
For now, this field is required. At this time, it is not possible to obtain
the node's id when using the device selector.
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: {}
# source_url:
mode: single
max_exceeded: silent
variables:
device_id: !input 'aeonlabs_minimote'
ozw_node_id: !input 'ozw_node_id'
trigger:
- platform: event
event_type: ozw.scene_activated
event_data:
scene_value_id: 1
condition: '{{ trigger.event.data.node_id == (ozw_node_id | int) }}'
action:
- variables:
scene_id: '{{ trigger.event.data.scene_value_id}}'
- 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'
and the created automation
- id: '1609095307452'
alias: Aeon Labs MiniMote Remote 3
description: ''
use_blueprint:
path: johnny/ozw-aeonlabs-zwus.yaml
input:
aeonlabs_minimote: 51fd7c54d4a1ef66706b701acfb474c5
ozw_node_id: '9'
button_1:
- service: notify.notify
data:
message: test 1
button_2:
- service: notify.notify
data:
message: Button 2 test
button_3:
- service: notify.notify
data:
message: Button 3 test
button_4:
- service: notify.notify
data:
message: button 4 test