Zwave devices Re-interview

From time to time some Zwave devices stop responding, which can then be resolved with a Re-Interview. Is this something that can be automated ?

Check and see if they respond to just being pinged instead of a full reinterview.

2 Likes

Yes you can automate the reinterview but it requires you use the Z-Wave JS UI addon with mqtt. All of this is provided in the documentation here Z-Wave JS UI.

Also it is a good idea to ping first to see if they respond. You can automate the ping by using the Z-Wave: Ping service.

2 Likes

Good suggestion and I will try next time it happens. I have read the Zwave JS Ui documention and activated the various settings, but I stay away from YAML configuration which I still find complicated.
Is there any negative to ping all Zwave devices for example at 3 am ?

2 Likes

FWIW, for all zwave mains powered devices that do not periodically send data, i poll them on a staggered basis every 15 minutes. Never had a dead device.

2 Likes

How do you make that happen (noob)

This is an example:

description: ""
mode: single
triggers:
  - trigger: time
    at: "00:00:00"
conditions: []
actions:
  - device_id: 520d21fc5d02c6add9a6608ad68ce4b2
    domain: zwave_js
    type: ping
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - device_id: 50febad19a6af1c861c2c36dd5b31032
    domain: zwave_js
    type: ping
  - delay:
      hours: 0
      minutes: 20
      seconds: 0
      milliseconds: 0
  - repeat:
      count: 66
      sequence: []

In fact, in my automation I put a pause only after 5 Zwave devices, so as not to overload my system.
The purpose is that every 20 minutes my Zwave devices are pinged.

Others in this forum may have and better solutions.

I do a similar thing, excerpt instead of pinging I refresh a value. For example, if it’s a swtich i force a poll of the switch. This has the added benefit of also making sure the switch value is up to date.

- id: "basement_light_1 poll switch state"
  alias: basement_light_1 poll switch
  description: "Automation to periodically poll switches"
  mode: single
  max_exceeded: silent
  trigger:
    - platform: time_pattern
      minutes: "9"
    - platform: time_pattern
      minutes: "39"
  action:
    - service: zwave_js.refresh_value
      data:
        entity_id: switch.basement_light_1
        refresh_all_values: false
1 Like