# \[Announce\] node-red-zte-sms

**URL:** <https://discourse.nodered.org/t/announce-node-red-zte-sms/94759>\
**Category:** Share Your Nodes\
**Tags:** smarthome\
**Created:** [20 January 2025 19:06 UTC](https://discourse.nodered.org/t/announce-node-red-zte-sms/94759 "2025-01-20T19:06:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ziga/32/98138_2.png) [@ziga](https://discourse.nodered.org/u/ziga)\
**Post date:** [20 January 2025 19:06 UTC](https://discourse.nodered.org/t/announce-node-red-zte-sms/94759/1 "2025-01-20T19:06:49Z")

</div>

This one is a bit specific but nevertheless if someone has a ZTE LTE USB modem stick lying around (I tested this with model `MF79U`), this node might come handy to send SMS notifications to your phone.

> **[@zigasebenik/node-red-zte-sms](https://flows.nodered.org/node/@zigasebenik/node-red-zte-sms)**
>
> A Node-RED node to send sms messages using ZTE modem.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 January 2025 19:17 UTC](https://discourse.nodered.org/t/announce-node-red-zte-sms/94759/2 "2025-01-20T19:17:31Z")

</div>

Thanks for the contribution @ziga

Just a few small things:

Having a quick look at the code - May I suggest having the recipient be overwritten from say `msg.recpient` if it exists? I can imagine a Node like this can be used to address different recipients.

Lastly I would change this.

```auto
 if (!config.phoneNumber || !modem) {
        node.status({ fill: 'red', shape: 'ring' });
        send(msg);
        done();
        return;
}

```

to

```auto
 if (!config.phoneNumber || !modem) {
        const error = 'Missing configuration, and / or recipient'
        node.status({ fill: 'red', shape: 'ring', text: error });
        // send(msg); /* Don't propagate */
        done(new Error(error)); // If done is called with an error, then it will trigger any ‘Catch’ nodes
        return;
}

```

Just some Constructive feedback - again thanks

---

<div class="post-metadata">

**Author:** ![ziga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ziga/32/98138_2.png) [@ziga](https://discourse.nodered.org/u/ziga)\
**Post date:** [20 January 2025 19:34 UTC](https://discourse.nodered.org/t/announce-node-red-zte-sms/94759/3 "2025-01-20T19:34:03Z")

</div>

Thanks @marcus-j-davies make sense yes.

You can define phone recipient number also through incoming node message instead of defining it in properties, by adding `recipientNumber` key.

```auto
{
  payload: "your payload",
  topic: "your topic",
  recipientNumber: "123456789"
}

```

Node status warning also added if configuration is missing.  
Published version 1.0.2 where these changes are made.

---

<div class="post-metadata">

**Author:** ![ziga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ziga/32/98138_2.png) [@ziga](https://discourse.nodered.org/u/ziga)\
**Post date:** [27 January 2025 10:51 UTC](https://discourse.nodered.org/t/announce-node-red-zte-sms/94759/4 "2025-01-27T10:51:14Z")

</div>

Version update `1.1.0`

First iteration of the node was somewhat limited as it allowed only sending the SMS messages. As modem SMS capacity is limited, one needs an option to at least delete messages as well. While extending the API, 4 more nodes were added.

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/3/8337581a64645086771d85d66310666917fa0887.png)

- **zte-sms-check** - checks for all SMS messages on modem
- **zte-sms-filter** - filters SMS messages by type (sent, received, ...) and by provided phone number (so one can listen to messages only from trusted set of numbers)
- **zte-sms-delete** - deletes SMS messages from modem
- **zte-sms-mark** - marks SMS messages on modem as read

All nodes using modem also show modem device SMS capacity as a status.

More in documentation: [node-red-zte-sms (node) - Node-RED](https://flows.nodered.org/node/@zigasebenik/node-red-zte-sms)
