mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
#
|
|
# ─── INTEGRATIONS ───────────────────────────────────────────────────────────────
|
|
#
|
|
|
|
# Depends on:
|
|
# - https://www.home-assistant.io/integrations/mikrotik
|
|
# - https://www.home-assistant.io/integrations/zha
|
|
# - https://www.home-assistant.io/integrations/synologydsm
|
|
|
|
# https://www.home-assistant.io/integrations/fastdotcom
|
|
fastdotcom:
|
|
scan_interval:
|
|
minutes: 90
|
|
|
|
# https://www.home-assistant.io/integrations/speedtestdotnet
|
|
speedtestdotnet:
|
|
scan_interval:
|
|
minutes: 60
|
|
|
|
# https://www.home-assistant.io/integrations/wake_on_lan
|
|
wake_on_lan:
|
|
|
|
# https://www.home-assistant.io/docs/mqtt
|
|
mqtt:
|
|
broker: !secret mqtt_ip
|
|
client_id: homeassistant
|
|
username: !secret mqtt_username
|
|
password: !secret mqtt_password
|
|
|
|
# https://www.home-assistant.io/integrations/pi_hole
|
|
pi_hole:
|
|
- host: !secret pihole_host
|
|
api_key: !secret pihole_api_key
|
|
|
|
#
|
|
# ─── ENTITIES ───────────────────────────────────────────────────────────────────
|
|
#
|
|
|
|
switch:
|
|
- platform: command_line
|
|
switches:
|
|
pihole_temp_disable:
|
|
friendly_name: "Pi-Hole pause for 5 mins"
|
|
command_on: !secret pihole_disable_5
|
|
command_off: !secret pihole_enable
|
|
command_state: !secret pihole_status
|
|
value_template: '{{ value_json.status == "disabled" }}'
|
|
|
|
binary_sensor:
|
|
- platform: command_line
|
|
name: "Pi-Hole enabled"
|
|
command: !secret pihole_status
|
|
payload_on: "enabled"
|
|
payload_off: "disabled"
|
|
value_template: '{{ value_json.status }}'
|
|
|
|
homeassistant:
|
|
customize:
|
|
switch.pihole_temp_disable:
|
|
icon: mdi:pause-circle-outline
|
|
sensor.pi_hole_seen_clients:
|
|
icon: mdi:devices
|
|
sensor.pi_hole_ads_percentage_blocked_today:
|
|
icon: mdi:percent
|
|
sensor.pi_hole_ads_blocked_today:
|
|
icon: mdi:close-box-outline
|
|
sensor.pi_hole_dns_queries_today:
|
|
icon: mdi:radio-tower
|