Wallmote ZwaveJS Event Changed

I’ve been using a Wallmote successfully ever since ZWaveJS was released and it suddenly stopped working. When looking at Developer → Events tracking I noticed that the payload is different now, and that has caused my Wallmote buttons to stop being recognized by HomeAssistant.

I think this was an update to ZWaveJS within the past month (I don’t remember exactly when this stopped working but within the last release or two).

My trigger before that no longer works:

device_id: b3769ceaf0036f985b086b2b0842c4c5
command_class_name: Central Scene
property_key: '004'
value: KeyHeldDown

The TWO events that get fired now as the result of a long key press (rather than just one):

{
    "event_type": "zwave_js_value_notification",
    "data": {
        "domain": "zwave_js",
        "node_id": 54,
        "home_id": 3823806645,
        "endpoint": 0,
        "device_id": "b3769ceaf0036f985b086b2b0842c4c5",
        "command_class": 91,
        "command_class_name": "Central Scene",
        "label": "Scene 004",
        "property": "scene",
        "property_name": "scene",
        "property_key": "004",
        "property_key_name": "004",
        "value": 1,
        "value_raw": 1
    },
    "origin": "LOCAL",
    "time_fired": "2022-01-24T17:51:31.018330+00:00",
    "context": {
        "id": "8f526486cd1b14b99549fcdfe2d1cb29",
        "parent_id": null,
        "user_id": null
    }
}
{
    "event_type": "zwave_js_value_notification",
    "data": {
        "domain": "zwave_js",
        "node_id": 54,
        "home_id": 3823806645,
        "endpoint": 0,
        "device_id": "b3769ceaf0036f985b086b2b0842c4c5",
        "command_class": 91,
        "command_class_name": "Central Scene",
        "label": "Scene 004",
        "property": "scene",
        "property_name": "scene",
        "property_key": "004",
        "property_key_name": "004",
        "value": 2,
        "value_raw": 2
    },
    "origin": "LOCAL",
    "time_fired": "2022-01-24T17:51:30.901387+00:00",
    "context": {
        "id": "2466a5f03f0519a9982e080ec1268bc5",
        "parent_id": null,
        "user_id": null
    }
}

So there are two issues here. One is the two events fired instead of one “KeyHeldDown” and the other is that the value is no longer “KeyHeldDown” and instead is value 2 followed by a value 1.

I’m wondering if anyone else has noticed this? I can change my trigger easily enough but this seems like a pretty big break in things.

In case it is relevant:
HA: 2021.12.10
HA OS: 7.1
zwavejs2mqtt: 6.4.1
zwave-js: 8.11.1

1 Like

Actually I cannot change my trigger, since I utilize both long and short presses, meaning that the first event that fires would perform the single press action, followed instantly by the long press action.