home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

Zwave_JS - no zwave_js_value_notification events reporting #122666

Open pawkakol1 opened 1 month ago

pawkakol1 commented 1 month ago

The problem

Yesterday I updated my 2024.1.3 HA Core and 0.4.3 Z-WAVE JS to 2024.7.3 HA Core and 0.6.2 Z-WAVE JS. I use zwave_js_value_notification in my automatons to detect scene button using example trigger placed in "Example YAML snippet" section. After update this automation hasn't worked. I used Developer Tools to Listen zwave_js_value_notification and zwave_js_notification events, but no events was reported. When I listen all events (* filter) in the newest update, and I push scene button, then I see state_changed event only (details in "Anything in the logs that might be useful for us" section)

What version of Home Assistant Core has the issue?

2024.7.3

What was the last working version of Home Assistant Core?

2024.1.3

What type of installation are you running?

Home Assistant Core

Integration causing the issue

zwave_js

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zwave_js

Diagnostics information

No response

Example YAML snippet

trigger:
  platform: event
  event_type: zwave_js_value_notification
  event_data:
    node_id: 20

Anything in the logs that might be useful for us?

All events listening with 2024.7.3 HA Core and 0.6.2 Z-WAVE JS after push scene button 
`event_type: state_changed
data:
  entity_id: sensor.oswietlenie_last_seen_7
  old_state:
    entity_id: sensor.oswietlenie_last_seen_7
    state: "2024-07-26T18:13:53+00:00"
    attributes:
      device_class: timestamp
      friendly_name: Oświetlenie Last seen
    last_changed: "2024-07-26T18:13:53.211162+00:00"
    last_reported: "2024-07-26T18:13:53.461793+00:00"
    last_updated: "2024-07-26T18:13:53.211162+00:00"
    context:
      id: 01J3R3ZMXV2V07CDF41CRXP92C
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.oswietlenie_last_seen_7
    state: "2024-07-26T18:14:09+00:00"
    attributes:
      device_class: timestamp
      friendly_name: Oświetlenie Last seen
    last_changed: "2024-07-26T18:14:09.587690+00:00"
    last_reported: "2024-07-26T18:14:09.587690+00:00"
    last_updated: "2024-07-26T18:14:09.587690+00:00"
    context:
      id: 01J3R404XK9XZ6BQYGS518Q79N
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2024-07-26T18:14:09.587690+00:00"
context:
  id: 01J3R404XK9XZ6BQYGS518Q79N
  parent_id: null
  user_id: null`

All events listening with 2024.1.3 HA Core and 0.4.3 Z-WAVE JS after push scene button 
`event_type: zwave_js_value_notification
data:
  domain: zwave_js
  node_id: 20
  home_id: 3809522424
  endpoint: 3
  device_id: d8587fb67c3e22a309b77f4acfe9fa4f
  command_class: 43
  command_class_name: Scene Activation
  label: null
  property: sceneId
  property_name: sceneId
  property_key: null
  property_key_name: null
  value: 3
  value_raw: 3
origin: LOCAL
time_fired: "2024-07-26T18:40:54.245639+00:00"
context:
  id: 01J3R5H3Z5E5EKW2BA8P9YDAD1
  parent_id: null
  user_id: null`

Additional information

In documentation there is below description placed:

Events There are two types of events that are fired, notification events and value notification events. You can test what events come in using the event developer tools in Home Assistant and subscribing to the zwave_js_notification or zwave_js_value_notification events respectively. Once you know what the event data looks like, you can use this to create automations.

I tried to restore Z-WAVE JS to 0.4.3 version in 2024.7.3 HA Core, but restored addon prints, it is not supported by 2024.7.3 HA Core.

home-assistant[bot] commented 1 month ago

Hey there @home-assistant/z-wave, mind taking a look at this issue as it has been labeled with an integration (zwave_js) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zwave_js` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zwave_js` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zwave_js documentation zwave_js source (message by IssueLinks)

kpine commented 1 month ago

Please provide more information to help diagnose the problem.

  1. Provide the device diagnostic file for an affected device (this was requested when you created the issue), see: https://www.home-assistant.io/integrations/zwave_js/#network-devices. image
  2. Turn on the integration debug logging, capture a timeframe when you are interacting with the device to produce an event, and make note of the time you produced the event and attach the log file here. You can remove any unrelated logs from the file if you want, just be sure to keep all the z-wave ones. Instructions: https://www.home-assistant.io/integrations/zwave_js/#how-do-i-access-the-z-wave-logs