Last active
November 2, 2017 02:20
-
-
Save willwhui/7cd33c82853fc0d9a44852c3724842c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在haas on Raspberry 上设置一个random sensor触发的alert及automation |
小坑
- 你可以在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
用automation来触发twitter
像上面这样写,只触发一次就没动静了,为什么呢?
看日志:
信息里面有一个:
Error 403: [{'message': 'Status is a duplicate.', 'code': 187}]
原来是twitter干的:防止重复发送
参见:https://twittercommunity.com/t/status-is-a-duplicate/16928
修改一下触发后发送的内容: