Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save willwhui/7cd33c82853fc0d9a44852c3724842c5 to your computer and use it in GitHub Desktop.
Save willwhui/7cd33c82853fc0d9a44852c3724842c5 to your computer and use it in GitHub Desktop.
在haas on Raspberry 上设置一个random sensor触发的alert及automation
@willwhui
Copy link
Author

willwhui commented Nov 2, 2017

小坑

  • 你可以在alias的平级增加id: 1508639450841这样一行(数字任意,避免和现有id重复)
    这样就可以在hass的前端的configuration模块中,被automation模块识别列出了
    但是:
    一旦你对任何一个automaiton模块进行修改和保存,那么automations.xml中的所有内容都会被重写。
    功能虽正常,但注释全被销毁,语句顺序也发生一定的变化。
    所以还是别这样搞了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment