Skip to content

Website Change Alerts in Home Assistant: Webhook Trigger

Start a Home Assistant automation from each AyeWatch website change alert with a webhook trigger. Covers local_only, trigger.json, a simple repeat check and why the webhook ID is your password.

By AyeWatch Team4 min read

Short answer: To get website change alerts in Home Assistant, create an automation with a webhook trigger, set local_only to false and allowed_methods to POST, and paste https://YOUR_HA_ADDRESS/api/webhook/YOUR_ID into AyeWatch. The alert fields arrive in trigger.json. Home Assistant cannot read AyeWatch's signature header, so a long random webhook ID is the password.

What the webhook trigger gives you, and what it does not

Home Assistant's webhook trigger listens at /api/webhook/ followed by the webhook ID. A JSON body lands in trigger.json, so trigger.json.headline and trigger.json.update_id are ready to use in templates.

Three facts from Home Assistant's docs shape the setup:

  • local_only defaults to true. Requests from the internet, and through Home Assistant Cloud, are ignored until you set it to false.
  • There is no password or token. Anyone who knows the webhook ID can trigger the automation. The docs say to treat the ID like a password and not to use webhooks for safety-critical actions.
  • The answer is almost always 200 OK. That includes unknown IDs and blocked outside requests. Only a method that is not allowed gets 405.

The trigger does not pass request headers, so X-AyeWatch-Signature cannot be checked inside Home Assistant.

The automation

Sample rule: Alert me when Alder Valley Power's outage page posts a planned outage for the Northfield area. Ignore restored outages and safety tips.

Create a Text helper named ayewatch_last_update first (Settings, Devices and services, Helpers). Then add this automation in YAML:

alias: AyeWatch alert
mode: queued
triggers:
  - trigger: webhook
    webhook_id: ayewatch-k7q2m9x4t1v8r5w3   # long and random: it is the password
    allowed_methods:
      - POST
    local_only: false
conditions:
  # skip a repeat of the alert we just handled
  - condition: template
    value_template: "{{ trigger.json.update_id | string != states('input_text.ayewatch_last_update') }}"
actions:
  - action: input_text.set_value
    target:
      entity_id: input_text.ayewatch_last_update
    data:
      value: "{{ trigger.json.update_id }}"
  - action: notify.mobile_app_pixel_9
    data:
      title: "{{ trigger.json.headline | default(trigger.json.topic_name) }}"
      message: "{{ trigger.json.content | default('') | truncate(200) }}"

Swap the notify action for whatever the alert should do: flash a light, announce it on a speaker, or turn on a dashboard banner. mode: queued keeps two alerts that arrive together from cancelling each other.

Reaching Home Assistant from the internet

AyeWatch only posts to public HTTPS addresses and rejects private, loopback and internal ones, so homeassistant.local will not work. Two common routes:

  • Home Assistant Cloud. Under Settings, Home Assistant Cloud, the Webhooks section gives a public address for each webhook automation. Cloud is $6.50 a month or $65 a year, as of December 2026.
  • Your own domain. A reverse proxy or tunnel with a valid certificate, such as https://ha.yourhome.example/api/webhook/....

Make sure the address answers directly. A 3xx, for example from http to https, fails the delivery at once and is not retried.

Repeats, and adding a real signature check

AyeWatch retries only when it does not get a 2xx, and Home Assistant answers 200 almost every time, so repeats are rare. The helper check catches the common case, a second copy of the latest alert. It does not keep a full history, which is fine at home volumes.

That same 200 hides failures. If the ID is wrong or the automation is off, AyeWatch still records a delivery. Before you rely on it, send a sample by hand and open the automation's traces:

curl -X POST "https://ha.yourhome.example/api/webhook/ayewatch-k7q2m9x4t1v8r5w3" -H "Content-Type: application/json" -d '{"topic_id":1,"topic_name":"test","update_id":1,"headline":"Test alert","content":"Sent by hand","created_at":"2026-12-08T18:00:00Z"}'

If no trace appears, check local_only and the ID. The curl reply will say 200 either way.

If you want every request verified, put a Cloudflare Worker in front. It checks the signature and skips repeats, then posts the same body to the Home Assistant webhook URL. AyeWatch posts to the Worker, and the webhook ID never leaves the Worker's secrets.

Limits and cost

  • Not for locks or alarms. Follow Home Assistant's advice and keep webhook automations away from safety-critical actions.
  • One webhook per account. Every monitor's alerts arrive here. Add a condition on trigger.json.topic_id to treat monitors differently.
  • Your phone already gets AyeWatch push. The AyeWatch app sends push notifications on every plan. Home Assistant is for lights, speakers and screens.
  • Public pages only. AyeWatch reads public pages and cannot sign in.

AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial. One outage page checked every 3 hours uses 240 credits a month on Pro.

Set it up

  1. Create the Text helper ayewatch_last_update.
  2. Add the automation above with your own long random webhook_id and your notify service.
  3. Get a public HTTPS address for it, through Home Assistant Cloud or your own domain.
  4. In AyeWatch, create the monitor, open Notification settings, Webhook, paste the address and select Save Webhook.
  5. Wait for a real update and open the automation's traces to confirm it ran.
OptionValueWhy
triggerwebhookStarts the automation on a POST
webhook_idLong and randomIt is the only secret
allowed_methodsPOSTAyeWatch only posts
local_onlyfalseDefault true ignores internet requests
modequeuedTwo alerts at once both run
Datatrigger.jsonAyeWatch sends application/json

Start a monitor in under a minute

Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.

Try it free for 7 days

The bottom line

A webhook trigger, local_only set to false and a long random ID are enough to turn an AyeWatch alert into a light, a sound or a banner at home. Add the Worker in front when you want each request verified.

FAQ

How do I use a webhook trigger in Home Assistant?

Add an automation with trigger: webhook and a webhook_id, then POST to /api/webhook/ followed by that ID. JSON bodies arrive in trigger.json.

Why does my Home Assistant webhook not fire from the internet?

local_only defaults to true, so outside requests are ignored even though they get 200 OK. Set local_only: false.

Can Home Assistant verify a webhook signature?

No. The trigger data has no headers. Treat the webhook ID as a password, or put a relay in front that checks the signature.

Why does Home Assistant return 200 for a wrong webhook ID?

Home Assistant's docs say the webhook endpoint answers 200 OK even for unknown IDs and blocked requests. Check the automation's traces to confirm it ran.

Do I need Home Assistant Cloud?

Only if you do not run your own public HTTPS address. Cloud gives each webhook a public address for $6.50 a month.

website change alerts home assistanthome assistant webhook triggerhome assistant webhook local_onlyhome assistant trigger.jsonhome assistant website monitor automation

Related articles