Configuration.yaml模板:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
#latitude: 39.5067
#longitude: 116.6659
#time_zone: Asia/Shanghai
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
xiaomi_aqara: #多网关配置
discovery_retry: 5 #重连尝试次数
interface: '192.168.**.**' #ha主机地址
gateways:
- mac: * #网关mac
key: * #网关密钥
host: * #网关ip
- mac: *
key: *
host: *
- mac: *
key: *
host: *
logger: #控制台打日志级别
default: debug
指南:
-
安装zlib
https://blog.csdn.net/u014749862/article/details/54430022 -
多线程编译
https://www.cnblogs.com/linbc/archive/2011/09/06/2168393.html -
安装Python37
https://www.cnblogs.com/anxminise/p/9650206.html -
解决ssl问题
https://jingyan.baidu.com/article/cbf0e500475c042eab289362.html -
安装ffmpeg
https://linuxconfig.org/how-to-install-ffmpeg-on-redhat-8
https://www.cnblogs.com/wintercloud/p/11162962.html
http://www.ffmpeg.org/releases/ -
指定国内源
https://blog.csdn.net/qq_30162859/article/details/81808155 -
安装HA
https://home-assistant.cc/installation/general/
监控画面
https://www.home-assistant.io/integrations/ffmpeg/
https://www.cnblogs.com/dpf-10/p/5533698.html
https://blog.neroxps.cn/2017/11/30/home_assistant_ffmpeg/
https://bbs.hassbian.com/forum.php?mod=viewthread&tid=6395
https://bbs.hassbian.com/thread-2251-1-1.html
https://bbs.hassbian.com/thread-7279-1-2.html
数据库替换
http://cxlwill.cn/Home-Assistant/HomeAssistant-PostgreSQL/
自动化
https://bbs.hassbian.com/thread-4386-1-1.html
https://www.home-assistant.io/docs/automation/trigger/