本帖最后由 luzai 于 2017-8-9 18:14 编辑  https://bbs.hassbian.com/thread-531-1-1.html (本人比较懒,以下有些文字直接拷贝原作者的,如果原作者有异议可通知本人删除)由于 Home Assistant目前还没有很好的前端方式来编辑yaml-files,这里是一个小的webapp,希望能使配置变得更简单。它是一个定制和嵌入式的Ace编辑器  本质上这是一种基于浏览器的替代方法,可以通过SSH,Windows + SMB,Github等修改配置。 
功能列表基于Web的编辑器来修改你的文件 上传和下载文件 集成Github 具有触发器,事件,实体,条件和服务的列表。所选元素在最后一个光标位置插入到编辑器中。 检查有效的配置,并且直接点击按钮重新启动Home Assistant SSL支持 可以提供额外身份验证和IP过滤功能 直接链接到家庭助理文档和图标 执行shell命令 跨平台、能运行Homeassistant的都可以运行 https://home-assistant.io/docs/ecosystem/hass-configurator/ 
{
    "LISTENIP": "0.0.0.0",
    "LISTENPORT": 3218,
    "BASEPATH": null,
    "SSL_CERTIFICATE": null,
    "SSL_KEY": null,
    "HASS_API": "http://127.0.0.1:8123/api/",
    "HASS_API_PASSWORD": null, 
    "CREDENTIALS": null,
    "ALLOWED_NETWORKS": [],
    "BANNED_IPS": [],
    "BANLIMIT": 0,
    "IGNORE_PATTERN": []
}
复制代码 
 configurator.py 
cd /home/homeassistant/.homeassistant/configurator 
sudo chmod 755 configurator.py复制代码 
 
sudo /home/homeassistant/.homeassistant/configurator/configurator.py /home/homeassistant/.homeassistant/configurator/settings.conf复制代码 
 
#!/bin/sh
/usr/bin/python3 /home/homeassistant/.homeassistant/configurator/configurator.py /home/homeassistant/.homeassistant/configurator/settings.conf &复制代码