home-automation/configuration.yaml

232 lines
4.8 KiB
YAML

# Setup basic Home Assistant information
homeassistant:
name: !secret zone_home_name
latitude: !secret zone_home_latitude
longitude: !secret zone_home_longitude
elevation: !secret zone_home_elevation
unit_system: imperial # metric
time_zone: !secret homeassistant_time_zone
customize_domain: {}
customize_glob: {}
whitelist_external_dirs:
- !secret homeassistant_whitelist_config
# Database recorder
recorder:
db_url: !secret recorder_db_url
purge_keep_days: 90
purge_interval: 1
# Log some details
logger:
default: warning
logs:
homeassistant.components.device_tracker.unifi: fatal # When Unifi Controller is temporarily unreachable.
pyunifi.controller: error # When Unifi Controller is temporarily unreachable.
#homeassistant.components.mqtt: debug
# Check for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# Optionally allow Home Assistant developers to focus on popular components.
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
# https://home-assistant.io/components/updater/
updater:
include_used_components: true
# MQTT Integration
mqtt:
broker: !secret mqtt_host
port: !secret mqtt_port
username: !secret mqtt_username
password: !secret mqtt_password
discovery: true
discovery_prefix: homeassistant
birth_message:
topic: 'ha/status'
payload: 'online'
will_message:
topic: 'ha/status'
payload: 'offline'
# ZWave integration
# https://home-assistant.io/docs/z-wave/adding/
# https://home-assistant.io/docs/z-wave/
# https://home-assistant.io/components/zwave/
zwave:
usb_path: /dev/ttyACM0
network_key: !secret zwave_network_key
# Enable the web server
# `cors_allowed_origins` includes the domain:port for AppDaemon.
# https://home-assistant.io/components/http/
http:
api_password: !secret http_password
base_url: !secret http_base_url
# Enable the official UI
# https://home-assistant.io/components/frontend/
frontend:
# javascript_version: latest
# extra_html_url:
# - /local/custom_ui/state-card-custom-ui.html
# - /local/custom_ui/state-card-hline.html
# - /local/custom_ui/state-card-value_only.html
# extra_html_url_es5:
# - /local/custom_ui/state-card-custom-ui-es5.html
# - /local/custom_ui/state-card-hline.html
# - /local/custom_ui/state-card-value_only.html
# themes: !include_dir_named themes/
# Enable the UI customizer
# https://github.com/andrey-git/home-assistant-customizer
#customizer:
# custom_ui: local
# Matrix base config
matrix: !include matrix.yaml
# Notification services
notify: !include_dir_merge_list notifications/
# Enables Default Home Assistant Components
default_config:
# Enables Person Component
person:
# Combine entities into groups and organize UI
group: !include_dir_merge_named groups/
# Zones
zone: !include zones.yaml
# Variables
# @see /custom_components/variable.py
# https://github.com/rogro82/hass-variables
#variable: !include misc/variables.yaml
# Counters
# https://www.home-assistant.io/components/counter/
#counter: !include misc/counters.yaml
# Input booleans
# https://home-assistant.io/components/input_boolean/
#input_boolean: !include misc/input_booleans.yaml
# Lists of selectable values
# https://home-assistant.io/components/input_select/
#input_select: !include misc/input_selects.yaml
# Enables System Health
system_health:
# Enable the configuration UI
config:
# Enable support for tracking state changes over time
history:
# View all events in a logbook
logbook:
exclude:
entities:
- sensor.uptime
- sensor.time
- sensor.date
- sensor.date_time
- sensor.date_time_iso
- sensor.time_date
- sensor.time_utc
- sensor.beat
- sensor.pcf8523
# Shell Commands
shell_command: !include shell_commands.yaml
# Scenes
# https://home-assistant.io/components/scene/
#scene: !include misc/scenes.yaml
# Automations
automation: !include_dir_merge_list automations/
# Discover some devices automatically
discovery:
ignore:
- google_cast
- harmony
# Device Trackers
device_tracker: !include_dir_merge_list device_trackers/
# Cameras
camera: !include_dir_merge_list cameras/
# Displays
# @see /custom_components/display/
# https://github.com/daemondazz/homeassistant-displays
#display: !include misc/displays.yaml
# Sensors
sensor: !include_dir_merge_list sensors/
# Switches
switch: !include_dir_merge_list switches/
# Track the sun
sun:
# Cameras
# https://home-assistant.io/components/camera/
#camera: !include_dir_merge_list cameras/
# Media Devices
cast: !include media/cast.yaml
# Remotes
remote: !secret remotes
# APC UPSs
apcupsd:
host: 172.30.0.1
# Binary Sensors
binary_sensor:
- platform: apcupsd
- platform: mqtt
state_topic: "plant_dashboard/binary_sensor/status/state"