Files
sarah/config/packages/modules/network.yaml

83 lines
2.4 KiB
YAML

#
# ─── INTEGRATIONS ───────────────────────────────────────────────────────────────
#
# 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/integrations/mikrotik
mikrotik:
- name: Mikrotik
host: !secret mikrotik_host
username: !secret mikrotik_username
password: !secret mikrotik_password
# 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
# https://www.home-assistant.io/integrations/zha
zha:
usb_path: /dev/ttyUSB0
database_path: /config/zigbee.db
#
# ─── 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 }}'
# https://www.home-assistant.io/integrations/synologydsm
synology_dsm:
- host: !secret platinum_ip
username: !secret platinum_user
password: !secret platinum_password
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