Skip to content

WeCom Push

WeCom push uses group-bot webhooks to mirror device alarms into an operations group, with text, Markdown, mentions, and images.

MetricDescription
RulesNumber of push rules
Trigger types usedTypes in use (sound/light, email, custom API)
WebhooksTotal webhook addresses
Mentioned numbersTotal configured phone numbers

The list shows name, trigger type, message type, webhook count, mention count, and actions.

TypeFires whenLimit
Sound/lightThe device broadcasts an alarmOne rule only
EmailEmail monitoring raises an alarmOne rule only
Custom APIA bound custom API is calledMultiple rules; each API binds to one rule
  1. Click + in the top-right corner.
  2. Enter a name (up to 20 characters).
  3. Choose a trigger type; for “Custom API”, select one or more bound APIs.
  4. Enter up to 20 webhook addresses.
  5. Choose the message form and edit the template.
  6. Optionally configure an image and mentions.
  7. Click Save.

Enter the complete WeCom group-bot URL, for example:

https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxx

Up to 20 addresses. Tests send to each address and report per-address results.

FormNotes
MarkdownDefault; supports formatting, but not phone mentions
TextPlain text; supports @all and up to 20 phone numbers
VariableReplaced 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.

Available only for “Custom API” rules:

  1. Enable Send image.
  2. Select the source field.
  3. 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.

Only for text messages:

  • @all overrides the phone list.
  • Otherwise add up to 20 eleven-digit mobile numbers.
  • 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.

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.