首页 智能家居homeassistant正文

Appdaemon 配置文件教程

云水 homeassistant 2019-11-17 17:57:17 2268 0 AppDaemon智能家居

appdaemon.yaml为 Appdaemon 的配置文件,其配置内容如下说明。

最精简文件内容为:

appdaemon:
  threads: 10
  plugins:
    HASS:
      type: hass
      ha_url: <HA url>
      ha_key: <HA 密码>hadashboard:
  dash_url: <HA 运行主机 IP>:5050

完整文件内容为:

secrets: /some/pathlog:
  accessfile: /export/hass/appdaemon_test/logs/access.log
  errorfile: /export/hass/appdaemon_test/logs/error.log
  logfile: /export/hass/appdaemon_test/logs/appdaemon.log
  log_generations: 3
  log_size: 1000000appdaemon:
  threads: 10
  time_zone: <time zone>
  api_port: 5000
  api_key: !secret api_key
  api_ssl_certificate: <path/to/root/CA/cert>
  api_ssl_key: <path/to/root/CA/key>
  disable_apps: 1
  plugins:
    HASS:
      type: hass
      ha_url: <some_url>
      ha_key: <some key>
      cert_path: <path/to/root/CA/cert>
      cert_verify: True
      namespace: defaulthadashboard:
  dash_url: <HA 运行主机 IP>:5050
  dash_password: <Dashboard密码>
  dash_ssl_certificate: /etc/letsencrypt/live/somehost/fullchain.pem
  dash_ssl_key: /etc/letsencrypt/live/somehost/privkey.pem
  dash_force_compile: 1
  dash_compile_on_start: 1
  accessfile: /var/log/dash_access

变量说明:

secrets: 同 Home Assistant 相同,用于分离存储密码的文件路径;

log: log文件的路径及最大容量

time_zone: 时区

disable_apps:设为 1 时禁用 app 功能,仅用于 HADashboard

dash_force_compile:强制刷新 HADashboard

accessfile:指定 HADashboard 的 Log 文件路径,默认与 Appdaemon 相同

dash_compile_on_start: 设为 1 时重启强制刷新页面


版权声明

1.本站大部分下载资源收集于网络,不保证其完整性以及安全性,请下载后自行测试。
2.本站资源仅供学习和交流使用,版权归资源原作者所有,请在下载后24小时之内自觉删除。
3.若作商业用途,请购买正版,由于未及时购买和付费发生的侵权行为,与本站无关。
4.若内容涉及侵权或违法信息,请联系本站管理员进行下架处理,邮箱ganice520@163.com(本站不支持其他投诉反馈渠道,谢谢合作)

本文链接:http://apod.cc/index.php/post/121.html

发表评论

评论列表(0人评论 , 2268人围观)
☹还没有评论,来说两句吧...