监测home-assistant_v2.db的大小
本帖最后由 myxu 于 2019-5-25 09:56 编辑使用以下配置监测不到home-assistant_v2.db的大小
各位大神有用过的吗
sensor:
- platform: filesize
file_paths:
- /home/homeassistant/.homeassistant/home-assistant_v2.db
- /home/homeassistant/.homeassistant/home-assistant.log
========================================
2019-05-23更新
========================================
https://www.home-assistant.io/components/filesize/
https://www.home-assistant.io/docs/configuration/basic/总结下还是需要多认真仔细看官方说明:'(
以下路径需要修改自己的路径:
homeassistant:
whitelist_external_dirs:
- /home/homeassistant/.homeassistant
sensor:
- platform: filesize
file_paths:
- /home/homeassistant/.homeassistant/home-assistant_v2.db
效果: 新奇 没用过回头试试我估计你路径不对 Note that paths must be added to whitelist_external_dirs. 这个非常有必要,搞一个到一定大小就自删的自动化。。。我的就是,空间小了,老崩。。。:dizzy::dizzy: Jones 发表于 2019-5-22 17:13
这个非常有必要,搞一个到一定大小就自删的自动化。。。我的就是,空间小了,老崩。。。 ...
record里我写了白名单,但是值就不正常了1天1检测 保存7天记录 实体白名单....感觉完全不生效
Log Details (ERROR)
Wed May 22 2019 17:16:41 GMT+0800 (中国标准时间)
Filepath /home/homeassistant/.homeassistant/home-assistant_v2.db is not valid or allowed
路径无效或没有权限 hdbjlizhe 发表于 2019-5-22 16:59
Note that paths must be added to whitelist_external_dirs.
请问怎么添加白名单 myxu 发表于 2019-5-22 17:49
请问怎么添加白名单
homeassistant:
whitelist_external_dirs:
- /config
sensor:
- platform: filesize
file_paths:
- /config/home-assistant_v2.db
ghostist 发表于 2019-5-22 18:25
homeassistant:
whitelist_external_dirs:
- /config
哈哈 大神正解 赞 谢谢 这数据库我都甩到外面去了