Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105679

Automate ZwaveJS Ping Dead Nodes?

$
0
0

Occasionally I have a few powered zwave nodes go dead. For what reason I don’t know, the device going dead seems to vary. It’s not often but a simple zwave ping is enough to fix the device.

I created this automation and its working fine to trigger on dead sensors (e.g sensor.downstairs_light_node_status = dead). However the zwave ping service is expecting the parent device so the action doesn’t work. Does anyone know how to relate back to the device from a triggering entity to call the service with the right device?

alias: Zwave - Ping Dead Nodes
description: Try to ping a node if it goes dead to bring it back up
trigger:
  - platform: event
    event_type: state_changed
condition:
  - condition: and
    conditions:
      - condition: template
        value_template: '{{ trigger.event.data.new_state.domain == "sensor" }}'
      - condition: template
        value_template: '{{ trigger.event.data.new_state.state == "dead" }}'
action:
  - repeat:
      until:
        - condition: template
          value_template: '{{ trigger.event.data.new_state.state == "alive" }}'
      sequence:
        - service: zwave_js.ping
          target:
            entity_id: '{{ trigger.entity_id }}'
        - delay:
            hours: 0
            minutes: 1
            seconds: 0
            milliseconds: 0
mode: parallel
max: 5

Thanks!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>