SMSNET
Guide

Home Assistant: Send SMS From Your Own Phone

Home Assistant can send a text by calling a REST command. Point that command at SMSNET and your own Android phone sends the alert, with no cloud SMS provider and no monthly add-on.

What do I need?

A Home Assistant instance reachable over HTTPS (Nabu Casa or a tunnel like Cloudflare), a connected phone in SMSNET, and an API key. Install the SMSNET Gateway app on any Android 8.0+ phone with a SIM, sign in, and copy the key from the final setup screen. The Android gateway guide shows every screen. Store the key in secrets.yaml.

The free plan covers 300 messages a month, 20 a day, and replies are never counted. Recipients must be in E.164 format (+15551234567).

How do I add the REST command?

Add this to configuration.yaml:

# configuration.yaml
rest_command:
  smsnet_send:
    url: "https://smsnet.net/api/v1/messages/send"
    method: POST
    headers:
      X-API-Key: !secret smsnet_api_key
    content_type: "application/json"
    payload: '{"to": "{{ to }}", "body": "{{ message }}"}'

Add your key to secrets.yaml:

smsnet_api_key: "your-api-key-here"

Restart Home Assistant (or reload REST commands in Developer Tools, then YAML).

How do I send an SMS from an automation?

# automations.yaml
- alias: "Garage door left open"
  trigger:
    - platform: state
      entity_id: cover.garage_door
      to: "open"
      for: "00:10:00"
  action:
    - service: rest_command.smsnet_send
      data:
        to: "+15551234567"
        message: "The garage door has been open for 10 minutes."

You can also call it from a script, a button card, or a template:

script:
  notify_phone:
    sequence:
      - service: rest_command.smsnet_send
        data:
          to: "+15551234567"
          message: "{{ message }}"

Then call it with script.notify_phone and pass message as a variable.

How do I receive replies in Home Assistant?

Register a webhook that Home Assistant can receive. Create an automation with a webhook trigger and a long, unguessable webhook_id:

- alias: "SMS reply received"
  trigger:
    - platform: webhook
      webhook_id: "a1b2c3d4e5f6g7h8i9j0-unique-random-string"
  action:
    - service: persistent_notification.create
      data:
        title: "SMS reply from {{ trigger.json.data.from }}"
        message: "{{ trigger.json.data.body }}"

Then register the webhook with SMSNET (one time, via curl or the API docs):

curl -X PUT https://smsnet.net/api/v1/webhooks \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://YOUR_HA_HOST/api/webhook/a1b2c3d4e5f6g7h8i9j0-unique-random-string"}'

Important: Home Assistant cannot verify the HMAC signature in YAML, so the unguessable webhook_id is your secret. The instance must be reachable over HTTPS (Nabu Casa or a tunnel). Reply fields are trigger.json.data.from and trigger.json.data.body.

The 2018 community thread (community.home-assistant.io/t/android-phone-as-sms-gateway/43605) is the stale competitor; do not copy it.

Can I use it as a notify service?

Yes. Create a notify service using the same REST command:

# configuration.yaml (add to existing rest_command section)
notify:
  - name: smsnet
    platform: rest
    resource: "https://smsnet.net/api/v1/messages/send"
    method: POST
    headers:
      X-API-Key: !secret smsnet_api_key
    content_type: "application/json"
    payload: '{"to": "{{ to }}", "body": "{{ message }}"}'

Then use it in automations:

action:
  - service: notify.smsnet
    data:
      message: "Water leak detected in the basement!"
      data:
        to: "+15551234567"

Note: The notify platform for REST was deprecated in favor of rest_command + scripts, but still works. Prefer the rest_command approach above for new setups.

FAQ

How do I send an SMS from Home Assistant?

Add a rest_command in configuration.yaml pointing to https://smsnet.net/api/v1/messages/send with your API key in the X-API-Key header. Call it from automations or scripts with service: rest_command.smsnet_send.

Do I need a Twilio account or cloud SMS provider?

No. SMSNET uses your own Android phone and SIM as the sender. There is no number rental and no carrier account. The free plan includes 300 messages a month and replies are never counted.

How do I receive SMS replies in Home Assistant?

Create an automation with trigger: platform: webhook and a long random webhook_id. Register that URL with SMSNET via PUT /api/v1/webhooks. The unguessable webhook ID is the secret (Home Assistant cannot verify HMAC in YAML). Your instance must be reachable over HTTPS.

Can I use SMSNET as a notify service?

Yes, either via rest_command (recommended) or the legacy notify platform. Both call the same API endpoint.

What phone number does the recipient see?

The number of the SIM in your connected Android phone. It is your own number, so replies come straight back to you and the conversation stays in one thread.

How fast does the message arrive?

An ordinary message is paced and usually leaves within a minute or two, subject to civil hours where the recipient is. A message marked transactional: true in the payload is handed to the phone immediately and typically reaches the handset in about a second. New lines are limited to 100 messages a day until they have warmed up.

This is a spoke of What Is an SMS API and How to Use One. Siblings: Send an SMS from PHP, Send SMS from Google Sheets. The phone comes from Turn Your Android Phone into an SMS Gateway; the agent route is What Is an MCP Server for SMS?. For order notifications, see Send Order and Delivery Notifications by SMS.

Send your first message today

Free plan, no card: 400 messages a month from your own number, with the API, webhooks and MCP included.

Get the app See pricing

Get it on Google Play

Written by , who builds SMSNET. Product facts on this page are checked against the live pricing page and the running API on the date shown above.