首先,你得是使用包含有docker ce 容器的openwrt固件,我用的是esir编译的 "OpenWrt R9.11.23 IPv4 GDQ v12.1 Compiled by eSir ", 感谢各位大神!
剩余空间挂载(/etc/docker-init )将及安装docker的web图形管理界面 ( /etc/docker-web )命详见L大文章,在软路由“服务”-“docker ce 容器”页面有链接。
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 29.8782
longitude: 121.5495
# 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: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Asia/Shanghai
# Customization file
customize: !include customize.yaml
whitelist_external_dirs:
- /usr/var/dumping-ground
- /tmp
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Show the introduction message on startup.
introduction:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
http:
server_port: 443
api_password: !secret http_password
base_url: https://myhome-assistant.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
# Discover some devices automatically
discovery:
# Sensors
sensor:
# Weather prediction
- platform: yr
# Text to speech
tts:
- platform: google
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml