Home Assistant TextNow Beta (Send SMS From Home Assistant For Free)

Home Assistant TextNow Beta – Custom Integration (HACS)

A lightweight Home Assistant integration for sending and receiving SMS messages through TextNow (polling-based). Uses TextNow session cookies (connect.sid + _csrf) to authenticate.


Install (HACS)

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.


Features

  • Send SMS messages to contacts
  • Receive SMS messages (automatic polling)
  • Contact management via integration options
  • Sensor entities per contact with message history/state
  • Event-driven automations via an incoming-message event

Setup (TextNow cookies)

You need 3 values from TextNow:

  1. Username (from TextNow Settings page — not your email)
  2. connect.sid cookie value
  3. _csrf cookie value

How to grab cookies:

  • Sign into https://www.textnow.com
  • Open browser DevTools (F12) → Network → refresh
  • Click any request → Request Headers → Cookie
  • Copy ONLY the value after connect.sid= (up to ;)
  • Copy ONLY the value after _csrf= (up to ;)

Then in Home Assistant:
Settings → Devices & Services → Add Integration → TextNow
Enter username + cookie values.


Heres a sample automation i have to send me text message of my current electric bill usage

1 Like

I thought this would be more wanted :sweat_smile:

1 Like

I was looking in the textNow site to see what I need to do. Seems we need to get a phone number from them and an actual sim card? I want to add a second number to my existing phone and do not want to lost my main number and only have this textnow number as secondary for text.

What kind of subscription do you have with them and are you paying a monthly fee to get this working???

No text now is free doesn’t require a sim card, just sign up and obtain a free number.

Once you do that ill guide you through the next steps in obtaining the needed information for the integration.

Also you dont need the textnow simcard if this is a secondary phone number, (the sim card is meant for people using textnow as their primary number) you simply use the textnow app for the second number.

Regardless, if you have your textnow account setup your 50% done, you just need to copy over some values from text now to the integration and your done :slight_smile:

I have tried a dozen times, and double checked I was doing it correctly, to configure the link and it will not work. I’m getting the error “Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble” when trying to access the settings/cog wheel.

i have to update the integration gonna be a while my apologies (im facing the same thing)

Repo deleted ;( Interesting project, i wan’t this in my HA :smiley: Need some help with this?

@patryk0802 @JoeHen GitHub - zodyking/Home-Assistant-TextNow: Home Assistant custom integration for TextNow. i fixed it, its working again.