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

114 lines
3.1 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
sensor:
- platform: synologydsm
host: !secret platinum_ip
username: !secret platinum_user
password: !secret platinum_password
monitored_conditions:
- cpu_15min_load
- cpu_1min_load
- cpu_5min_load
- cpu_other_load
- cpu_system_load
- cpu_total_load
- cpu_user_load
- disk_below_remain_life_thr
- disk_device
- disk_exceed_bad_sector_thr
- disk_smart_status
- disk_status
- disk_temp
- memory_available_real
- memory_available_swap
- memory_cached
- memory_real_usage
- memory_size
- memory_total_real
- memory_total_swap
- network_down
- network_up
- volume_device_type
- volume_disk_temp_avg
- volume_disk_temp_max
- volume_percentage_used
- volume_size_total
- volume_size_used
- volume_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