Skip to content

About

一个不依赖微信的推送组件。wxpusher simple Home Assistant message push custom_components

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

安装

1、使用HACS安装

确保您的Home Assistant已安装HACS

在HACS中添加此仓库作为自定义仓库:

进入HACS > 点击右上角的三个点 > 选择"自定义仓库"

添加URL https://github.com/xz0609/wxpusher_simple, 类别选择Integration

在HACS中搜索"wxpusher simple"并安装

重启Home Assistant

2、手动安装

GitHub仓库地址: https://github.com/xz0609/wxpusher_simple

下载最新代码

解压并将custom_components/wxpusher_simple目录复制到您Home Assistant的custom_components目录中

重启Home Assistan

配置方法:

进入HA设置 > 设备与服务 > 点击"+"按钮添加新集成 > 搜索wxpusher simple

按提示输入名称和 SPT(可通过扫描官网二维码或安装 App 在“我的”界面查看)。

添加成功后,Home Assistant 中会出现对应的通知实体(例如 notify.wxpusher_simple_xxxx)。您可在自动化、脚本或服务调用中使用这些实体发送消息。

注意事项 SPT 必须保密,泄漏后任意人都可向您推送消息。同一个 SPT 只能添加一次,避免重复配置。

单条消息最大支持 40000 字符,标题摘要最多 20 字符。

消息发送支持 HTML 内容,支持 标签复制文本。

如需同时发送给多个 SPT,可创建多个实体。

HA中发送测试消息:

进入 开发者工具 > 选择 动作 选项 > 进入YAML模式

发送消息例子:

action: notify.send_message
target:
  entity_id: notify.wxpusher    # 必填, 为添加SPT令牌的名称
data:
  message: 这是一条消息内容      # 必填, 消息内容
  title: 消息标题               # 选填, 消息标题

可在 用户界面模式 下添加目标,选择实体。

About

一个不依赖微信的推送组件。wxpusher simple Home Assistant message push custom_components

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages