I’m having trouble triggering an automation based on a “zwave.scene_activated” event.
I’m running core-2021.8.8, supervisor-2021.10.8, on Home Assistant OS 6.2 with the “Z-Wave (import from configuration.yaml)” integration.
My end goal is to simply trigger some automations using the buttons on a GoControl WA00Z-1 switch. I wrote a script that I thought would work, but no go.
In HA Developer Tools, under Events, I can listen to zwave.scene_activated, and I see an event occur when I click the top button (for example):
Event 0 fired 5:40 PM:
{
"event_type": "zwave.scene_activated",
"data": {
"entity_id": "zwave.linear_nortek_security_control_llc_wa00z_1_scene_switch",
"node_id": 16,
"scene_id": 1,
"scene_data": 0
},
"origin": "LOCAL",
"time_fired": "2021-11-18T23:40:08.034852+00:00",
"context": {
"id": "43c4fabe44516821a1b09024e998285c",
"parent_id": null,
"user_id": null
}
}
So I believe that the switch is properly set up in zwave, and that my zwcfg_*.xml file is set up correctly.
After trying various permutations of triggers with and without data
entity_id, node_id, scene_id, scene_data; all with no luck. So now
I’ve stripped my automation down to:
- id: ps_top_single_click
alias: Light up the house
trigger:
- platform: event
event_type: zwave.scene_activated
action:
service: switch.turn_on
entity_id: switch.roaming_switch_one
I can trigger this automation under HA Configuration - Automations - Run Actions; my test light comes on as expected - so I believe that the action: portion of the automation is OK.
And if I fire a zwave.scene_activated event artificially, using Developer Tools, I again see a reasonable result in the Listener window:
Event 0 fired 5:34 PM:
{
"event_type": "zwave.scene_activated",
"data": {},
"origin": "REMOTE",
"time_fired": "2021-11-18T23:34:16.669754+00:00",
"context": {
"id": "aba21f4c2c468cc54dc2873390d673ae",
"parent_id": null,
"user_id": "09e2e52dbcc74d5898a9aa8b55a3781e"
}
But still, the automation will not trigger.
I’ve scoured the web, and can’t find a solution. I don’t understand why the Listener can “hear” the event, whether generated by the Developer Tools or by my switch, but the automation can’t. Any ideas?
Thanks!