Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 711 Bytes
---
alias: Restart Dining Room IP Camera - By Sensor
trigger:
- platform: state
entity_id: binary_sensor.gf_dinning_camera_switch
to: 'off'
for:
seconds: 30
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: script.notify_join
data_template:
who: "stuart"
title: 'Dining Room Camera'
notification_id: "hass-cam-dinning"
icon: !secret http_icon_cctv
smallicon: !secret http_smallicon_cctv
image: !secret http_image_cctv
value1: "The Dining Room Camera crashed again! I've restarted it"
You can’t perform that action at this time.