Created
February 19, 2023 18:18
-
-
Save dgrove/349d0ae13ce4acc1e3625cc36c203878 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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