Greetings!
I’m trying to create an Automation to match events like this, which I see coming into Developer Logs from Z-Wave JS:
{
"event_type": "zwave_js_notification",
"data": {
"domain": "zwave_js",
"node_id": 3,
"home_id": xxx,
"device_id": "xxx",
"command_class": 113,
"command_class_name": "Notification",
"label": "Light sensor",
"type": 20,
"event": 2,
"event_label": "Light color transition detected",
"parameters": {}
},
"origin": "LOCAL",
"time_fired": "2022-02-04T23:51:10.825132+00:00",
"context": {
"id": "xxx",
"parent_id": null,
"user_id": null
}
}
I tried creating an automation like this, but it never triggers, so I assume I’m missing something, but I can’t figure out what:
alias: Notify - Dryer Done
description: ''
trigger:
- platform: event
event_type: zwave_js_notification
event_data:
domain: zwave_js
node_id: 3
command_class: 113
type: 20
event: 2
condition: []
action:
- service: notify.alexa_media_everywhere
data:
message: My text here!
data:
type: announce
mode: single
I’m really only concerned about the triggers, as the action runs as expected if “manually” triggered from the UI. I’m guessing it might have something to do with my event_data
, but everything I’ve tried matches a subset of what’s coming in, and I’ve even tried the whole set of keys/values in case that matters (I hope not; I don’t really care what the “friendly” names are, and they might change while the node ID doesn’t). I’d also use a “real” Home Assistant entity for the trigger if I could, but I’m resorting to the event since “color change” doesn’t seem to get one of those. (Of note, the color isn’t really changing; this is a HomeSeer Flex Sensor with the “LED/light sensor” attachment and it’s really noting a blinking light on my dryer…but this is what I have to work with.)
I’d appreciate any help or pointers to resources that might help. This is the most complicated thing I’ve tried to do with Automations before (I used AppDaemon in the past for almost everything and am trying not to have to set that up again), so please also be gentle.
Thanks!