WeCom Push
WeCom push uses group-bot webhooks to mirror device alarms into an operations group, with text, Markdown, mentions, and images.
Overview
Section titled "Overview"| Metric | Description |
|---|---|
| Rules | Number of push rules |
| Trigger types used | Types in use (sound/light, email, custom API) |
| Webhooks | Total webhook addresses |
| Mentioned numbers | Total configured phone numbers |
The list shows name, trigger type, message type, webhook count, mention count, and actions.
Trigger Types
Section titled "Trigger Types"| Type | Fires when | Limit |
|---|---|---|
| Sound/light | The device broadcasts an alarm | One rule only |
| Email monitoring raises an alarm | One rule only | |
| Custom API | A bound custom API is called | Multiple rules; each API binds to one rule |
Add a Rule
Section titled "Add a Rule"- Click
+in the top-right corner. - Enter a name (up to 20 characters).
- Choose a trigger type; for “Custom API”, select one or more bound APIs.
- Enter up to 20 webhook addresses.
- Choose the message form and edit the template.
- Optionally configure an image and mentions.
- Click
Save.
Webhooks
Section titled "Webhooks"Enter the complete WeCom group-bot URL, for example:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxxUp to 20 addresses. Tests send to each address and report per-address results.
Message Forms
Section titled "Message Forms"| Form | Notes |
|---|---|
| Markdown | Default; supports formatting, but not phone mentions |
| Text | Plain text; supports @all and up to 20 phone numbers |
Template Variables
Section titled "Template Variables"| Variable | Replaced with |
|---|---|
{触发形式} | Sound/light, email, or custom API |
{播报内容} | Alarm text |
{时间} | Alarm time |
{IP地址} | Source IP |
{字段键名} | Actual field value from the custom API call |
The message title is the rule name. Click a variable tag to insert it, or click Restore default template.
Image Push
Section titled "Image Push"Available only for “Custom API” rules:
- Enable
Send image. - Select the source field.
- When the API is called, a text message is sent first, followed by an image message.
The source field must contain a base64-encoded JPG or PNG no larger than 2 MB.
Mentions
Section titled "Mentions"Only for text messages:
@alloverrides the phone list.- Otherwise add up to 20 eleven-digit mobile numbers.
Testing
Section titled "Testing"- Row
Test: sends a test message to all webhooks with confirmation. - Dialog
Test: tests the current form without saving. - A failed webhook does not block the others; results are shown separately.
Delete a Rule
Section titled "Delete a Rule"Click Delete and confirm. Pushing stops immediately; the bound custom API is not deleted.
Test works but real alarms do not push? Verify the trigger type: sound/light rules fire only on broadcasts, email rules only on email alarms.
Custom API rule does not fire? Confirm the API is called and enabled, and that the rule binds it.
No image is sent? Check that the source field is base64 JPG/PNG within 2 MB after decoding.
Mentions do not work? Mentions are only supported in text messages.