Skip to content

Instantly share code, notes, and snippets.

@dgrove
Created February 19, 2023 18:18
Show Gist options
  • Save dgrove/1787bb54e82a54551d5333c85ce35a33 to your computer and use it in GitHub Desktop.
Save dgrove/1787bb54e82a54551d5333c85ce35a33 to your computer and use it in GitHub Desktop.
Zwave ping dead nodes
alias: Ping Dead ZWave Nodes
description: Auto press ping button for dead zwave nodes.
trigger:
- platform: state
entity_id: sensor.offline_zwave_devices
not_to:
- unknown
- unavailable
condition:
- condition: numeric_state
entity_id: sensor.offline_zwave_devices
above: 0
action:
- repeat:
until:
- condition: numeric_state
entity_id: sensor.offline_zwave_devices
below: 1
sequence:
- service: button.press
target:
entity_id: "{{ state_attr('sensor.offline_zwave_devices','entity_id') }}"
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
mode: queued
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment