My first blueprint. I couldn’t find one for the Aeotec Key Fob (Gen5 ZW088). Make sure the fob is in scene mode. The buttons work with a tap and a hold giving you 8 options.
blueprint:
name: ZWaveJS - Aeon Labs Keyfob scene controller
description: 'Perform actions when keyfob buttons are pressed or held down.'
domain: automation
input:
zwavejs_device:
name: ZWaveJS Device
description: The Aeon keyfob listen for events on.
selector:
device:
integration: zwave_js
manufacturer: AEON Labs
model: ZW088
multiple: false
tap_top_left_actions:
name: Tap Top Left Actions
selector:
action: {}
default: []
tap_top_right_actions:
name: Tap Top Right Actions
selector:
action: {}
default: []
tap_bottom_left_actions:
name: Tap Bottom Left Actions
selector:
action: {}
default: []
tap_bottom_right_actions:
name: Tap Bottom Right Actions
selector:
action: {}
default: []
hold_top_left_actions:
name: Hold Top Left Actions
selector:
action: {}
default: []
hold_top_right_actions:
name: Hold Top Right Actions
selector:
action: {}
default: []
hold_bottom_left_actions:
name: Hold Bottom Left Actions
selector:
action: {}
default: []
hold_bottom_right_actions:
name: Hold Bottom Right Actions
selector:
action: {}
default: []
source_url: https://community.home-assistant.io/t/zwavejs-aeon-labs-aeotec-zw130-wallmote-quad-all-scenes-supported/290685/38
mode: single
trigger:
- platform: event
event_type: zwave_js_value_notification
variables:
logger: blueprint.zwavejs_scene_activation
zwavejs_device: !input 'zwavejs_device'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.event.data.device_id == zwavejs_device }}'
- condition: template
value_template: '{{ trigger.event.data.command_class_name == ''Scene Activation''
}}'
sequence:
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 1 }}'
sequence: !input 'tap_top_left_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 3 }}'
sequence: !input 'tap_top_right_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 5 }}'
sequence: !input 'tap_bottom_left_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 7 }}'
sequence: !input 'tap_bottom_right_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 2 }}'
sequence: !input 'hold_top_left_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 4 }}'
sequence: !input 'hold_top_right_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 6 }}'
sequence: !input 'hold_bottom_left_actions'
- conditions:
- condition: template
value_template: '{{ trigger.event.data.value == 8 }}'
sequence: !input 'hold_bottom_right_actions'
default:
- service: system_log.write
data:
level: debug
logger: '{{ logger }}'
message: Activated scene '{{ trigger.event.data.label }}' with value '{{
trigger.event.data.value }}' for node '{{ zwavejs_device }}' ({{ trigger.event.data.node_id
}})
default: []