mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
Initial pihole integration
This commit is contained in:
@@ -140,3 +140,49 @@ cards:
|
|||||||
entity: sensor.motion_1_power
|
entity: sensor.motion_1_power
|
||||||
- type: custom:battery-entity
|
- type: custom:battery-entity
|
||||||
entity: sensor.motion_2_power
|
entity: sensor.motion_2_power
|
||||||
|
|
||||||
|
- type: vertical-stack
|
||||||
|
cards:
|
||||||
|
- type: entities
|
||||||
|
title: Pi Hole
|
||||||
|
entities:
|
||||||
|
- script.disable_pi_hole_5
|
||||||
|
- script.enable_pi_hole
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
name: Total queries
|
||||||
|
font_size: 75
|
||||||
|
icon: "mdi:radio-tower"
|
||||||
|
line_color: var(--accent-color)
|
||||||
|
line_width: 8
|
||||||
|
entities:
|
||||||
|
- sensor.pi_hole_dns_queries_today
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
name: Queries blocked
|
||||||
|
font_size: 75
|
||||||
|
icon: "mdi:stop-circle"
|
||||||
|
line_color: var(--accent-color)
|
||||||
|
line_width: 8
|
||||||
|
entities:
|
||||||
|
- sensor.pi_hole_ads_blocked_today
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
name: Percent blocked
|
||||||
|
font_size: 75
|
||||||
|
icon: "mdi:percent"
|
||||||
|
line_color: var(--accent-color)
|
||||||
|
line_width: 8
|
||||||
|
entities:
|
||||||
|
- sensor.pi_hole_ads_percentage_blocked_today
|
||||||
|
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
name: Seen clients
|
||||||
|
font_size: 75
|
||||||
|
icon: "mdi:devices"
|
||||||
|
line_color: var(--accent-color)
|
||||||
|
line_width: 8
|
||||||
|
entities:
|
||||||
|
- sensor.pi_hole_seen_clients
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ amcrest:
|
|||||||
- motion_detected
|
- motion_detected
|
||||||
- online
|
- online
|
||||||
|
|
||||||
|
pi_hole:
|
||||||
|
- host: !secret pihole_host
|
||||||
|
api_key: !secret pihole_api_key
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
@@ -33,6 +37,17 @@ switch:
|
|||||||
service: script.security_camera_off
|
service: script.security_camera_off
|
||||||
|
|
||||||
script:
|
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:
|
security_camera_on:
|
||||||
alias: Security camera · Turn on
|
alias: Security camera · Turn on
|
||||||
sequence:
|
sequence:
|
||||||
|
|||||||
Reference in New Issue
Block a user