Restart Dining Room IP Camera - By Sensor

View All Rules

alias: Restart Dining Room IP Camera - By Sensor
trigger:
- platform: state
  entity_id: binary_sensor.gf_dinning_camera_switch
  to:  'off'
  for:
     minutes: 15
action:
  - service: switch.turn_off
    data:
      entity_id: switch.gf_dinning_camera_switch
  - delay: 00:00:30
  - service: switch.turn_on
    data:
      entity_id: switch.gf_dinning_camera_switch
  - service: notify.signal_stuart
    data:
      message: "The Dining Room Camera is still offline! I'm struggling to fix it"

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.