# Text your house: home automation and Raspberry Pi by SMS

Texting your house is for moments when the app is logged out, the phone is borrowed, or your mother is house-sitting.

## The shape of it

Your Pi or home server runs one small endpoint. A tunnel such as Cloudflare Tunnel gives it a public HTTPS address. We POST each text there, it does the thing, and it answers in words.

Paste this into Claude Code or Cursor on the machine, along with the setup prompt from [a new line](https://www.textyouragent.dev/new):

```text
Make a small server with one route, POST /sms. Verify X-Arrow-Signature.
Only act for sender_ids listed in ALLOWED. For anyone else reply "Sorry, this line is private."
Allowed actions only: porch light on or off, read temperature, is the garage closed.
Use the local Home Assistant API for each. Reply in one sentence.
Put the server behind a named Cloudflare Tunnel so the URL survives a restart.
```

## Three safety rules

- **Verify the signature.** Otherwise anyone who finds the URL can pretend to be you. [How](https://www.textyouragent.dev/docs/relay.md#verify-the-signature).
- **List the actions.** Don't hand an AI your whole home API and hope.
- **Leave out locks, alarms and garage doors.** Reading their state is fine. SMS isn't secure enough to open them, and a text can arrive late.

## When the power goes out

If the Pi is down, the texter gets a short "having trouble" reply. That makes a decent outage detector.

## Questions

### Does this work without internet at home?

No. The text reaches your house through the tunnel, so home internet has to be up.

### Do I need Home Assistant?

No. Anything your server can control or read works.

### Can the house text me when something happens?

No alerts. It can only reply, or send one scheduled text a day you opted into. Use push notifications for alarms.

---
Source: https://www.textyouragent.dev/guides/text-your-house · Index: https://www.textyouragent.dev/llms.txt
