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) 703 Bytes
---
alias: Restart Kitchen IP Camera - By Sensor
trigger:
- platform: state
entity_id: binary_sensor.gf_kitchen_camera
to: 'off'
for:
minutes: 15
action:
- service: switch.turn_off
data:
entity_id: switch.gf_kitchen_camera_switch
- delay: 00:00:30
- service: switch.turn_on
data:
entity_id: switch.gf_kitchen_camera_switch
- service: script.notify_join
data_template:
who: "stuart"
title: 'Kitchen Camera'
notification_id: "hass-cam-Kitchen"
icon: !secret http_icon_cctv
smallicon: !secret http_smallicon_cctv
image: !secret http_image_cctv
value1: "The Kitchen Camera is still offline! I'm struggling to fix it"
You can’t perform that action at this time.