I got a new Z-Wave remote (Versternet 12 Button Remote) and I have programmed all my KeyPress events to various lights etc but I want to look at using KeyHold to brighten/dim the lights but this is where I am getting confused.
I can trigger based on the KeyHold events and then I am using a Loop until building block but I can’t seem to get it to pickup the KeyRelease event so it just continually brightens/dims.
Firstly, am I going about this the right way and if so what am I doing wrong?
description: ""
mode: single
trigger:
- platform: device
device_id: e5fa2a0594950a99b5d8002e76863ad7
domain: zwave_js
type: event.value_notification.central_scene
property: scene
property_key: "001"
endpoint: 0
command_class: 91
subtype: Endpoint 0 Scene 001
value: 2
condition: []
action:
- repeat:
sequence:
- service: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.bedroom_lights
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 250
until:
- condition: device
device_id: e5fa2a0594950a99b5d8002e76863ad7
domain: zwave_js
type: value
command_class: 91
property: scene-001
value: 1
If I watch the Z-wave debugging window this is the line I get when I release the key:
2024-01-16 22:02:53.936 INFO Z-WAVE: [Node 049] Value notification: 91-0-scene-001 1
Thanks so much in advance for any help, pulling my hair out trying to figure this one out.