I don’t know how to create a trigger to handle this event. In the Developer Tools I tried listening for “zwave_js.value_notification” but that did not hear the above event.
I’m working on consolidating some automations and these examples were really helpful, so thank you!
@kmwoley I know I’m asking months later, but I notice on node_id line, you’ve left a comment to fix. Was the thought being able to somehow look this up?
No, I haven’t! I’d love to know if someone had a solution for this. Here’s how I used to do it prior to moving over to Zwavejs2Mqtt. As far as I can tell, there’s not a way to use the data_template or similar with the event_data.
- alias: Set light defaults at startup
trigger:
- platform: state
entity_id: zwave.master_bathroom_overhead_light
to: 'ready'
action:
- delay:
minutes: 5
- service: zwave.set_config_parameter
data_template:
node_id: "{{ states.zwave.master_bathroom_overhead_light.attributes.node_id }}"
parameter: 9
value: '{% if ((5 < now().hour) and (now().hour < 22)) %}99{% else %}1{% endif %}'
size: 1
Thanks for replying/sharing! That’s exactly what I’d like to do too in some capacity, but I couldn’t figure it out. The only alternative I have come up with is to use helpers for storing node values, but I haven’t played with doing that yet and could end up being more of a hassle than it’s worth.