homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 46.67338029
longitude: 216.93655286
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 148
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here:
time_zone: Asia/Shanghai
# Customization file
customize: !include customize.yaml
http:
base_url: hass.xxxx.xyz:8123 #访问地址,填入 DDNS 中设置的网址
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
media_player:
- platform: dlna_dmr
url: [url]http://192.168.2.184:49494/description.xml[/url]
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# 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:
# Track the sun
sun:
# Sensors
sensor:
# Weather prediction
- platform: yr
# Text to speech
tts:
# - platform: google
- platform: baidu
app_id: 15411849
api_key: xxxxxxxxxxxxxxxxxxx
secret_key: xxxxxxxxxxxxxxxxxxx
speed: 5
pitch: 5
volume: 9
person: 0
# Cloud
cloud:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
aligenie:
expire_hours: 180
dueros:
expire_hours: 180