<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SMSTunnel</title>
    <description>The latest articles on DEV Community by SMSTunnel (smstunnel).</description>
    <link>https://dev.to/smstunnel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F16250%2Fcea21708-ae2f-4eca-8895-92046a0a19e7.png</url>
      <title>DEV Community: SMSTunnel</title>
      <link>https://dev.to/smstunnel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/smstunnel"/>
    <language>en</language>
    <item>
      <title>Send Home Assistant alerts as SMS from your own phone (no Twilio)</title>
      <dc:creator>Narcis Bodea</dc:creator>
      <pubDate>Wed, 18 Nov 2026 20:22:25 +0000</pubDate>
      <link>https://dev.to/smstunnel/send-home-assistant-alerts-as-sms-from-your-own-phone-no-twilio-j4i</link>
      <guid>https://dev.to/smstunnel/send-home-assistant-alerts-as-sms-from-your-own-phone-no-twilio-j4i</guid>
      <description>&lt;p&gt;Home Assistant's push notifications fail exactly when you need them: no data on the phone you carry, battery saver, or the companion app killed by the OS. A text message still gets through. Here's a notify integration that sends real SMS through an Android phone &lt;strong&gt;you&lt;/strong&gt; own, from &lt;strong&gt;your&lt;/strong&gt; number, so there's no SMS provider in between and no per-message fee.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/X4G_Mr8LYzQ" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An Android phone with a SIM card. It sends the texts.&lt;/li&gt;
&lt;li&gt;The free &lt;a href="https://play.google.com/store/apps/details?id=io.smstunnel.app" rel="noopener noreferrer"&gt;SMSTunnel app&lt;/a&gt; on that phone, signed in to your SMSTunnel account.&lt;/li&gt;
&lt;li&gt;The custom integration, from HACS.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Install the integration
&lt;/h2&gt;

&lt;p&gt;HACS → three-dot menu → &lt;strong&gt;Custom repositories&lt;/strong&gt; → add &lt;code&gt;https://github.com/narcisbodea/hass-smstunnel&lt;/code&gt; with category &lt;strong&gt;Integration&lt;/strong&gt; → install &lt;strong&gt;SMSTunnel&lt;/strong&gt; → restart Home Assistant.&lt;/p&gt;

&lt;p&gt;No HACS? Copy &lt;code&gt;custom_components/smstunnel&lt;/code&gt; into &lt;code&gt;config/custom_components/&lt;/code&gt; and restart.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Get a key
&lt;/h2&gt;

&lt;p&gt;In the &lt;a href="https://dashboard.smstunnel.io/apps" rel="noopener noreferrer"&gt;SMSTunnel dashboard&lt;/a&gt;, open &lt;strong&gt;Apps → Add an app&lt;/strong&gt;, pick &lt;strong&gt;Home Assistant&lt;/strong&gt; and click &lt;strong&gt;Create the key&lt;/strong&gt;. Copy it right away: it's shown only once. Stopping or deleting the app there cuts Home Assistant off at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Configure
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Settings → Devices &amp;amp; Services → Add Integration → SMSTunnel&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;API key&lt;/td&gt;
&lt;td&gt;Checked during setup, so a wrong key fails now, not at the first real alert&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recipients&lt;/td&gt;
&lt;td&gt;One or more numbers, comma separated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server URL&lt;/td&gt;
&lt;td&gt;&lt;code&gt;https://smstunnel.io&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default country code&lt;/td&gt;
&lt;td&gt;e.g. &lt;code&gt;+40&lt;/code&gt;, so numbers without a prefix still work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device ID&lt;/td&gt;
&lt;td&gt;Optional: pins sending to one phone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  4. Use it in automations
&lt;/h2&gt;

&lt;p&gt;The integration adds the action &lt;code&gt;notify.smstunnel&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;automation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;alias&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SMS on water leak"&lt;/span&gt;
    &lt;span class="na"&gt;triggers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;state&lt;/span&gt;
        &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;binary_sensor.basement_water_leak&lt;/span&gt;
        &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"on"&lt;/span&gt;
    &lt;span class="na"&gt;actions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;notify.smstunnel&lt;/span&gt;
        &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Home Assistant"&lt;/span&gt;
          &lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Water leak detected in the basement!"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;title&lt;/code&gt; goes in front of the message, since a text has no title field. To text other numbers for one call, add &lt;code&gt;target&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;notify.smstunnel&lt;/span&gt;
&lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The alarm was triggered"&lt;/span&gt;
  &lt;span class="na"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"+14155550123"&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"+14155550199"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each number gets its own text. YAML written before Home Assistant 2024.8 says &lt;code&gt;service:&lt;/code&gt; instead of &lt;code&gt;action:&lt;/code&gt;; both work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Good to know
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flapping sensors:&lt;/strong&gt; a trigger that fires over and over can burn through your texts in minutes. Add &lt;code&gt;for:&lt;/code&gt; or a condition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limits:&lt;/strong&gt; 30 texts a minute; past that, the log says so plainly. Texts over 1600 characters are cut, not rejected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phone offline?&lt;/strong&gt; The text waits and goes out when the phone is back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outages:&lt;/strong&gt; Home Assistant and the phone still need internet to hand the alert over. For power or internet outages, keep the router and Home Assistant on a UPS, and leave the phone's mobile data on.&lt;/li&gt;
&lt;li&gt;The free plan has 25 texts a day, plenty for home alerts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Full guide, with a prompt that has an AI assistant write the automations for you: &lt;a href="https://smstunnel.io/integrations/home-assistant/" rel="noopener noreferrer"&gt;https://smstunnel.io/integrations/home-assistant/&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I build SMSTunnel. This post was written with AI from the official setup guide linked above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>homeassistant</category>
      <category>smarthome</category>
      <category>selfhosted</category>
      <category>iot</category>
    </item>
    <item>
      <title>Send Grafana alerts as SMS from your own phone (no Twilio)</title>
      <dc:creator>Narcis Bodea</dc:creator>
      <pubDate>Tue, 10 Nov 2026 21:54:18 +0000</pubDate>
      <link>https://dev.to/smstunnel/send-grafana-alerts-as-sms-from-your-own-phone-no-twilio-jfn</link>
      <guid>https://dev.to/smstunnel/send-grafana-alerts-as-sms-from-your-own-phone-no-twilio-jfn</guid>
      <description>&lt;p&gt;Grafana's alerting is great — until the part where "text me when something's on fire" means signing up for Twilio, paying per message, and letting a third party see every alert. Here's how to get Grafana alerts as SMS from &lt;strong&gt;your own phone and number&lt;/strong&gt; instead. Works on any Grafana version, including Grafana Cloud, and needs no plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An Android phone with a SIM (this is what sends the texts).&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;SMSTunnel&lt;/strong&gt; app on that phone, paired once.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Webhook contact point&lt;/strong&gt; in Grafana.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The texts go out from your own number, so recipients see &lt;em&gt;you&lt;/em&gt;, not a shortcode — and there's no per-message fee (the free tier is 25 texts/day, plenty for alerting).&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Make a webhook address
&lt;/h2&gt;

&lt;p&gt;In the SMSTunnel app/dashboard, create a webhook address and pick &lt;strong&gt;Grafana&lt;/strong&gt;. The address holds the phone number(s) you want alerted (it can text up to 10). That's the URL you'll paste into Grafana.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Add the contact point in Grafana
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Alerting → Contact points → + Add contact point&lt;/strong&gt;, Integration &lt;strong&gt;Webhook&lt;/strong&gt; &lt;em&gt;(Grafana 12+: Alerts &amp;amp; IRM → Alerting → Notification configuration → Contact points).&lt;/em&gt; Paste the SMSTunnel address as the URL. No extra headers, default payload — SMSTunnel reads Grafana's own alert JSON. Hit &lt;strong&gt;Test&lt;/strong&gt; (sends a real test alert), then &lt;strong&gt;Save&lt;/strong&gt; and select it in your alert rules or notification policies.&lt;/p&gt;

&lt;p&gt;That's it. A firing alert now looks like this on your phone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[FIRING] DiskFull - Disk 95% full: /volume1
[RESOLVED] DiskFull - Disk 95% full: /volume1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Optional: full control over the message (Grafana 12+)
&lt;/h2&gt;

&lt;p&gt;If you'd rather shape the text yourself, use an API key instead of the webhook address:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;URL: &lt;code&gt;https://smstunnel.io/api/v1/sms/send&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Webhook settings → Extra Headers: &lt;code&gt;X-API-Key = &amp;lt;your SMSTunnel key&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Custom Payload → Payload Template, building the &lt;code&gt;to&lt;/code&gt;/&lt;code&gt;message&lt;/code&gt; fields from the alert.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keep texts sane
&lt;/h2&gt;

&lt;p&gt;Let Grafana's &lt;strong&gt;notification policies&lt;/strong&gt; do the throttling: group wait, group interval, and repeat interval (a firing alert re-texts every repeat interval — 4h by default). Turn on "Disable resolved message" if you only want the &lt;em&gt;firing&lt;/em&gt; ones.&lt;/p&gt;

&lt;p&gt;Full guide (webhook + API key, with the exact payload template): &lt;a href="https://smstunnel.io/integrations/grafana" rel="noopener noreferrer"&gt;https://smstunnel.io/integrations/grafana&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I build SMSTunnel. This post was written with AI from the official setup guide linked above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>grafana</category>
      <category>devops</category>
      <category>selfhosted</category>
      <category>monitoring</category>
    </item>
  </channel>
</rss>
