mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 01:14:42 +00:00
Initial pihole integration
This commit is contained in:
@@ -8,6 +8,10 @@ amcrest:
|
||||
- motion_detected
|
||||
- online
|
||||
|
||||
pi_hole:
|
||||
- host: !secret pihole_host
|
||||
api_key: !secret pihole_api_key
|
||||
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
@@ -33,6 +37,17 @@ switch:
|
||||
service: script.security_camera_off
|
||||
|
||||
script:
|
||||
disable_pi_hole_5:
|
||||
alias: Security · Disable Pi Hole for 5 mins
|
||||
sequence:
|
||||
- service: pi_hole.disable
|
||||
data:
|
||||
duration: 5
|
||||
enable_pi_hole:
|
||||
alias: Security · Enable Pi Hole
|
||||
sequence:
|
||||
- service: pi_hole.enable
|
||||
|
||||
security_camera_on:
|
||||
alias: Security camera · Turn on
|
||||
sequence:
|
||||
|
||||
Reference in New Issue
Block a user