142 lines
2.9 KiB
YAML
142 lines
2.9 KiB
YAML
---
|
|
# Main Home Assistant Configuration
|
|
|
|
homeassistant:
|
|
name: Home
|
|
|
|
# Location and Time Zone
|
|
latitude: !secret home_latitude # dummy: 0.0
|
|
longitude: !secret home_longitude # dummy: 0.0
|
|
elevation: 10 # meters, WGS84
|
|
time_zone: America/Los_Angeles
|
|
|
|
# Measurement System
|
|
unit_system: imperial
|
|
currency: USD
|
|
|
|
# URL and Access Control
|
|
internal_url: !secret http_internal_url
|
|
external_url: !secret http_external_url
|
|
auth_mfa_modules:
|
|
- type: totp
|
|
auth_providers:
|
|
- type: homeassistant
|
|
- type: trusted_networks
|
|
trusted_networks:
|
|
- 127.0.0.1
|
|
- !secret lan_net_ip4
|
|
- !secret tablet_net_ip4
|
|
|
|
# Customization and Packages
|
|
customize: !include include/customize.yaml
|
|
packages: !include_dir_named packages
|
|
|
|
# HTTP Access
|
|
http:
|
|
ip_ban_enabled: true
|
|
login_attempts_threshold: 3
|
|
use_x_forwarded_for: true
|
|
trusted_proxies:
|
|
- !secret proxy_ip4
|
|
- !secret proxy_ip6
|
|
- !secret gateway_ip4
|
|
|
|
# Configure Lovelace/Dashboards for YAML Configuration
|
|
# lovelace:
|
|
# mode: yaml
|
|
# resources: !include lovelace/resources.yaml
|
|
# dashboards: !include lovelace/dashboards.yaml
|
|
|
|
# MQTT Broker Connection
|
|
mqtt:
|
|
certificate: /config/network-ca-chain.pem
|
|
|
|
# Configure Logging
|
|
logger:
|
|
default: info
|
|
|
|
###############################################################################
|
|
# Customize Default Integrations
|
|
#
|
|
# Not Enabled:
|
|
# - cloud
|
|
# - mobile_app
|
|
###############################################################################
|
|
|
|
# Automation File for Configuration UI
|
|
automation:
|
|
|
|
# Enable the Configuration UI
|
|
config:
|
|
|
|
# Enable the Front End
|
|
frontend:
|
|
themes: !include_dir_merge_named themes
|
|
|
|
# Configure FontAwesome Icons
|
|
fontawesome:
|
|
regular:
|
|
solid:
|
|
|
|
# Enables support for tracking state changes over time
|
|
history:
|
|
|
|
# View all events in a logbook
|
|
logbook:
|
|
|
|
# Enables a map showing the location of tracked devices
|
|
map:
|
|
|
|
# Enable Person entities for device tracker grouping
|
|
# NOTE: See declaration in Presence package
|
|
#person:
|
|
|
|
# Record events to a database
|
|
recorder:
|
|
|
|
# Enable support for Simple Service Discovery Protocol
|
|
# Used by Philips Hue (disable if moving to Zigbee)
|
|
ssdp:
|
|
|
|
# Track the sun
|
|
sun:
|
|
|
|
# System Health monitor
|
|
system_health:
|
|
|
|
# Enable UPnP/Zeroconf Service Discovery and Advertising
|
|
zeroconf:
|
|
|
|
# Discover some devices automatically
|
|
discovery:
|
|
|
|
# Setup Zones
|
|
zone: !include include/zones.yaml
|
|
|
|
# Setup InfluxDB Logging
|
|
influxdb:
|
|
api_version: '2'
|
|
ssl: false
|
|
host: !secret influxdb2_host
|
|
port: !secret influxdb2_port
|
|
organization: !secret influxdb2_org
|
|
token: !secret influxdb2_token
|
|
bucket: ha
|
|
measurement_attr: domain__device_class
|
|
default_measurement: state
|
|
precision: ms
|
|
tags_attributes:
|
|
- friendly_name
|
|
exclude:
|
|
domains:
|
|
- automation
|
|
- device_tracker
|
|
- group
|
|
- input_boolean
|
|
- input_select
|
|
- media_player
|
|
- scene
|
|
- script
|
|
- weather
|
|
- zone
|