Event Trigger on ZWave Central Scene

Hi.
I’m trying to trigger a scene on a button press from a ZWave wall controller. I can catch the central scene notification in the Event Listener

{
    "event_type": "zwave_js_value_notification",
    "data": {
        "domain": "zwave_js",
        "node_id": 22,
        "home_id": 3245779512,
        "endpoint": 0,
        "device_id": "5999f69fe9c1759879582cc70dfa0460",
        "command_class": 91,
        "command_class_name": "Central Scene",
        "label": "Scene 001",
        "property": "scene",
        "property_name": "scene",
        "property_key": "001",
        "property_key_name": "001",
        "value": 0,
        "value_raw": 0
    },
    "origin": "LOCAL",
    "time_fired": "2021-09-13T19:22:35.502688+00:00",
    "context": {
        "id": "217764d3281b80a60ff1a4a3b4269657",
        "parent_id": null,
        "user_id": null
    }
}

I then try to trigger on such an event in an automation, but this doesn’t happen.

- id: "20938402234922349284"
  alias: Blinds Salon Door Uncover
  trigger:
    - platform: event
      id: SwitchButtonA
      event_type: zwave_js_value_notification
      event_data:
        node_id: "22"
        command_class_name: "Central Scene"
        property_key: "001"
  condition: []
  action:
    - service: notify.persistent_notification
      data:
        title: ButtonA
        message: Indeed

Can anyone see why this isn’t working?

I believe the event listener is in JSON and you need to convert to yaml for the automation.

You can use this

http://www.json2yaml.com/

Try this code:

- id: "20938402234922349284"
  alias: Blinds Salon Door Uncover
  trigger:
    - platform: event
      id: SwitchButtonA
      event_type: zwave_js_value_notification
      event_data:
        node_id: 22
        command_class_name: Central Scene
        property_key: '001'
  condition: []
  action:
    - service: notify.persistent_notification
      data:
        title: ButtonA
        message: Indeed
1 Like

Thanks!

It was the quotes around the nose ID number. That seems a bit petty!