homeassistant:
# Name of the location where Home Assistant is running
name: LYX-Home
# Location required to calculate the time the sun rises and sets
latitude: 39.3853
longitude: 118.113
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: [url]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url]
time_zone: Asia/Shanghai
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# 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:
# [url]https://home-assistant.io/blog/2016/10/25/explaining-the-updater/[/url]
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
# 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:
# Weather prediction
sensor:
- platform: yr
name: Weather
forecast: 24 #未来24小时天气,可有手工按需修改
monitored_conditions:
- temperature #气温
- precipitation #雨量
- windSpeed #风速
- pressure #气压
- windDirection #风向
- humidity #湿度
# Text to speech
tts:
- platform: baidu
#app_id,api_key,secret_key从百度云上注册得到
app_id: 11070765
api_key: q2KlaOnaRq7fLQuEzeOWFHX4
secret_key: bLSVM6aQGjySAlpclIYDZcRnctDRmqpG
#speed:语速0-9(缺省5)
#pitch:语调0-9(缺省5)
#volume:音量0-15(缺省5)
#person:声音(0:女,1:男,3:百度合成,4:百度合成,缺省0)
speed: 5
pitch: 5
volume: 15
person: 0
# Cloud
cloud:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
#安防警报
alarm_control_panel:
- platform: manual
name: Alarm
code: 1688
pending_time: 6
#mqtt
#broker: 192.168.3.120
#port: 1883
#username: pi
#password: 123456
#discovery: true
#switch:
# platform: mqtt
# name: deng_1
# state_topic: hassmart/switch/hassmart_1key_module_C27565_1/state
# command_topic: hassmart/switch/hassmart_1key_module_C27565_1/set
# qos: 1
# retain: false