想做微信提醒看到了Server酱的插件,但安装Server酱GIT的插件报错。继续深翻终于找到一个cfsjddd大神修复错误后的插件,经过测试能正常使用。
修改版插件下载:https://bbs.hassbian.com/thread-3936-1-1.html
原作者代码:https://github.com/dengleer/HA-serverchan
原作者主页:http://sc.ftqq.com/3.version
1、serverchan.py 拷贝到 .homeassistant/custom_components/serverchan/notify.py 2、.homeassistant/custom_components/serverchan下新建 manifest.json, 内容:
{
"domain": "serverchan",
"name": "serverchan",
"documentation": "https://github.com/dengleer/HA-serverchan",
"requirements": [],
"dependencies": [],
"codeowners": []
}
3、configuration.yaml增加配置:
notify:
- platform: serverchan
name: weixin
sc_key: XXXXXXXXXX8e2c376543
4、重启
5、测试
调用服务:
notify.weixin
服务数据(格式为YAML,选填)
{
"message":"测试内容",
"title":"我是测试TITLE"
}
|