Restart Studio IP Camera - By Sensor

View All Rules

alias: Restart Studio IP Camera - By Sensor
trigger:
- platform: state
  entity_id: binary_sensor.gf_studio_camera
  to:  'off'
  for:
     minutes: 15
action:
  - service: switch.turn_off
    data:
      entity_id: switch.gf_studio_camera_switch
  - delay: 00:00:30
  - service: switch.turn_on
    data:
      entity_id: switch.gf_studio_camera_switch
  - service: notify.signal_stuart
    data:
      message: "The Studio 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.