Advertisement
tiwing

ping dead node yaml

Aug 18th, 2022 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.04 KB | None | 0 0
  1. alias: Ping dead node
  2. description: >-
  3.   Pings a node if it goes dead. Needs trigger and choose for each node so entire
  4.   network does not get a ping. allows parallel run in case multiple nodes go
  5.   dead at the same time.
  6. trigger:
  7.   - platform: state
  8.     entity_id: sensor.bsmt_living_node_status
  9.     id: 2 Bsmt Living
  10.     to: dead
  11.     for:
  12.       hours: 0
  13.       minutes: 0
  14.       seconds: 2
  15.   - platform: state
  16.     entity_id: sensor.bsmt_bar_node_status
  17.     id: 3 Bsmt Bar
  18.     to: dead
  19.     for:
  20.       hours: 0
  21.       minutes: 0
  22.       seconds: 2
  23. condition: []
  24. action:
  25.   - choose:
  26.       - conditions:
  27.           - condition: trigger
  28.             id: 2 Bsmt Living
  29.         sequence:
  30.           - service: zwave_js.ping
  31.             target:
  32.               entity_id: light.bsmt_living
  33.             data: {}
  34.       - conditions:
  35.           - condition: trigger
  36.             id: 3 Bsmt Bar
  37.         sequence:
  38.           - service: zwave_js.ping
  39.             target:
  40.               entity_id: light.bsmt_bar
  41.             data: {}
  42. mode: parallel
  43. max: 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement