SMS Webhook

INTEGRATIONS · HOME ASSISTANT

SMS to Home Assistant.

Start a Home Assistant automation each time a text message comes in. Turn on a light when a parcel SMS arrives, or show a bank code on a dashboard.

Home AssistantTarget type in the app: Webhook

How to set it up

  1. In Home Assistant, make a new automation. Add the trigger Webhook and copy the webhook ID.
  2. The webhook URL is http://<your-home-assistant>:8123/api/webhook/<webhook-id>.
  3. In SMS Webhook, open Targets and tap Add target. Select Webhook and paste the URL.
  4. Tap Send test message. The automation trace shows the test message.
  5. Open Rules and select the messages to send.

What Home Assistant gets

In the automation, the fields are in trigger.json, for example {{ trigger.json.otp }}.

{
  "from": "AX-HDFCBK",
  "contactName": "",
  "body": "Your OTP for login is 834512. Do not share it.",
  "otp": "834512",
  "sim": "1",
  "source": "sms",
  "receivedAt": "2026-10-21T09:41:21.087Z",
  "rule": "Bank OTPs"
}

Send only the messages that you need

Rules select the messages. Example: when the sender contains HDFC and the text has an OTP, send it to Home Assistant. A drop rule can stop promotions first. See the webhook guide for the template variables.

Notes

Related guides