mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-05 08:44:24 +00:00
Pi-hole card
This commit is contained in:
@@ -129,6 +129,11 @@ views:
|
||||
icon: mdi:nas
|
||||
tap_action:
|
||||
action: more-info
|
||||
- type: custom:button-card
|
||||
template: small
|
||||
entity: switch.pihole_temp_disable
|
||||
name: Pi-Hole
|
||||
icon: mdi:pi-hole
|
||||
|
||||
- type: vertical-stack
|
||||
title: Presence
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
pi_hole_card:
|
||||
default:
|
||||
- title:
|
||||
- icon:
|
||||
card:
|
||||
type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
title: "[[title]]"
|
||||
icon: "[[icon]]"
|
||||
entities:
|
||||
- entity: switch.pihole_temp_disable
|
||||
name: Pause for 5 mins
|
||||
- type: custom:dummy-entity-row
|
||||
entity: sun.sun
|
||||
name: Open admin UI
|
||||
icon: mdi:firefox
|
||||
tap_action:
|
||||
action: url
|
||||
url_path: http://cobalt.lan:8081/admin
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:mini-graph-card
|
||||
name: Total queries
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_dns_queries_today
|
||||
|
||||
- type: custom:mini-graph-card
|
||||
name: Queries blocked
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_ads_blocked_today
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:mini-graph-card
|
||||
name: Percent blocked
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_ads_percentage_blocked_today
|
||||
|
||||
- type: custom:mini-graph-card
|
||||
name: Seen clients
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_seen_clients
|
||||
@@ -47,54 +47,12 @@ cards:
|
||||
- entity: sensor.home_assistant_log
|
||||
name: Logs
|
||||
icon: mdi:view-list
|
||||
- type: entities
|
||||
title: Pi-Hole
|
||||
icon: mdi:pi-hole
|
||||
entities:
|
||||
- switch.pihole_temp_disable
|
||||
- type: custom:dummy-entity-row
|
||||
entity: sun.sun
|
||||
name: Open admin UI
|
||||
icon: mdi:firefox
|
||||
tap_action:
|
||||
action: url
|
||||
url_path: http://cobalt.lan:8081/admin
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:mini-graph-card
|
||||
name: Total queries
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_dns_queries_today
|
||||
|
||||
- type: custom:mini-graph-card
|
||||
name: Queries blocked
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_ads_blocked_today
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:mini-graph-card
|
||||
name: Percent blocked
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_ads_percentage_blocked_today
|
||||
|
||||
- type: custom:mini-graph-card
|
||||
name: Seen clients
|
||||
font_size: 75
|
||||
line_color: var(--accent-color)
|
||||
line_width: 6
|
||||
entities:
|
||||
- sensor.pi_hole_seen_clients
|
||||
- type: custom:decluttering-card
|
||||
template: pi_hole_card
|
||||
variables:
|
||||
- title: Pi-Hole
|
||||
- icon: mdi:pi-hole
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: network_card
|
||||
|
||||
@@ -196,3 +196,12 @@ sensor.fast_com_download:
|
||||
card:
|
||||
type: custom:decluttering-card
|
||||
template: network_card
|
||||
|
||||
switch.pihole_temp_disable:
|
||||
title: Pi-Hole
|
||||
style:
|
||||
<<: *popup_style
|
||||
<<: *broad_popup_style
|
||||
card:
|
||||
type: custom:decluttering-card
|
||||
template: pi_hole_card
|
||||
|
||||
Reference in New Issue
Block a user