vonage smart home integration, free and open source

Unofficial: send SMS from your scenes through the Vonage SMS API (ex-Nexmo).
Unofficial, not affiliated with Vonage. Never tested with a real Vonage account: the API format comes from the public documentation of the Vonage SMS API (ex-Nexmo) and of its Account API (read on 3 December 2026); the tests run against a fake server built from it.
This integration sends SMS from your Gladys scenes through your own Vonage
account (the SMS API, https://rest.nexmo.com/sms/json). Each SMS is paid from your Vonage credit.
- Send only: nothing is received, no reply is read, no delivery report is followed.
- An SMS leaves only from the scene action "Send an SMS (Vonage)" or a click on the "Send a test SMS" button. Nothing at start, on a reconnection, nor when you save the configuration.
- SMS go only to the allowed numbers typed in the configuration.
Before you start
- Create an account on vonage.com (Communications APIs) and add credit. A demo account (free credit) sends only to the test numbers you registered in it (status 29 otherwise).
- At the top of the API Dashboard: copy the API key and the API secret.
- In Gladys, install the integration, type the key, the secret and the allowed numbers, save.
- Click Check the account: Vonage says whether it accepts the key and the secret and gives the balance (in euros). This button sends no SMS.
- If you like, click Send a test SMS (one paid SMS, counted in the cap) to the first allowed number or to another allowed number.
Configuration
| Setting | Role |
|---|---|
| Vonage API key | The key of the API Dashboard (8 characters). |
| Vonage API secret | Kept by Gladys in its database, never shown again, sent only to Vonage (Authorization header of https://rest.nexmo.com, Basic). |
| Allowed numbers | Required. The only numbers SMS may go to, international format, separated by commas, 10 at most. |
| Sender | Optional: a name (1 to 11 letters, digits or spaces, at least one letter) or a Vonage number of your account. Empty: "Gladys". |
| Maximum SMS per 24 hours | Safety cap, 1 to 200 (20 by default). See below. |
| Maximum parts per message | 1 to 10 (3 by default): beyond, the text is cut and ends with "...". |
| Accents | "Keep them" (default) or "Simplify" (see below). |
Sender
Vonage requires a sender. Some countries refuse a name and need a Vonage number (United States, Canada among others); others replace it. When Vonage refuses the sender (status 15), the status says so: type a Vonage number of your account, in the international format.
Numbers accepted
Only the international format: + or 00, then the country code and the number (8 to 15 digits), for
example +33 6 12 34 56 78, 0044 7700 900123. A national number (06 12 34 56 78) is refused: the
module serves every country and cannot guess which one. Spaces, dots, dashes and brackets are ignored.
Vonage receives the number as digits only (33612345678).
A number is never written whole in the logs nor in the messages: only the first 3 and the last 2 digits
show (+336******78).
The scene action
"Send an SMS (Vonage)" has two fields:
- Text (required): Gladys replaces the scene variables in it.
- Numbers (optional): some of the allowed numbers, separated by commas; empty, all of them. A number outside the list, or a value that is not text (a list, a number), refuses the whole action (nothing is sent).
Outputs, for the following actions of the scene:
sent: SMS accepted by Vonage;not_sent: recipients not reached (refused, not tried, or without confirmation);message_ids: Vonage ids of the accepted SMS (the id of the first part), separated by commas;truncated: true when the text was cut.
When nothing is accepted, the action fails with the reason in the scene log ("Nothing sent: the cap of SMS per 24 hours is reached", …); the scene goes on. Recipients are served one after the other, one request each: a number refused by Vonage (status 6, 7, 29, 33, or a refused parameter) does not stop the next one; refused credentials, used-up credit, a refused sender, a barred account, a message too long, a pause, a failure or a timeout stop the next ones.
Gladys gives an action one minute, its own wait for the connection included; the module takes 40
seconds of it. A request lasts 10 seconds at most; a recipient with less than 16.5 seconds left (the
request and the two /data writes around it) is not tried.
How an answer of Vonage is read
The SMS API answers HTTP 200 to almost every request, with a status for each part of the message:
- every part
0: accepted; - every part with a status the Vonage documentation lists as a refusal (1 to 4, 6 to 12, 14, 15, 22, 23, 29, 32, 33): not sent, the slot of the cap is given back;
- anything else: status 5 ("Internal Error"), a status the documentation does not list, some parts accepted and others not, an answer that does not read: may have left.
At the HTTP level: a 401 and a 429 are "not sent", a redirect too; a 5xx and any other 4xx (none is documented for the SMS API) are "may have left".
The safeguards
- Allowed numbers only: a number outside the list is refused before any request. The list is read again just before each request: a number removed while its SMS waits is not sent.
- Daily cap (rolling 24 hours): a send that would bring the SMS billed over the last 24 hours above
the setting is refused (a 2-part text counts 2, each recipient counts). The number of parts is the one
the module computes; when Vonage lists more parts in its answer, the count is raised afterwards. An
SMS is counted and written to
/databefore its request leaves; it is given back only when Vonage surely did not take it (see above, or server not found, connection refused). A restart therefore does not reset the count. At start, a send waits for/datato be read (3 seconds at most); a damaged entry of/datacounts as an SMS sent at that moment. When/datais unreadable, too slow, or cannot be written (the status says so in each case), a spare budget counted in memory applies: 2 SMS per 24 hours at most; past it, nothing leaves until/datareads and writes again. A restart in that state starts this spare budget again. A/datathat does not exist yet (first start) gives the normal cap. - Never tried again when an SMS may have left: a second try could be a second paid SMS. The result says "sent without confirmation".
- One request at a time to Vonage; at most 20 jobs wait for their turn, more are refused.
- Pause: after a 429 or a status 1 ("Throttled"), the time Vonage gives (
Retry-After) or 60 s, between 60 s and 6 h; after a 5xx error, 60 s, doubled on each new error, 6 h at most. Nothing is sent during the pause, buttons included; it is kept in/data. - Credentials refused for sending (401, or status 4 "Invalid Credentials", on sending an SMS): no
scene uses them any more. Two short fingerprints (8 bits each, salted) are kept in
/data, never the key nor the secret. The refusal is lifted by changing the key or the secret (credentials changed while the integration runs are always tried; changed while it is stopped, they match both fingerprints by chance once in 65,536), or by a success of either button (the test button does try them). A 401 of the "Check the account" button (Account API) does not block sending: only a send decides. - Used-up credit (status 9), sender refused (status 15), account barred or not enabled (status 8 or 11): the status says so; the next send is tried all the same (Vonage decides).
Text, accents and cost
An SMS holds 160 characters of the SMS alphabet (GSM 7-bit), or 153 per part beyond. This alphabet has
é, è, à, ù, ì, ò, Ç but not ê, â, î, ô, û, ë, ï, ç, œ, ’, « », nor emojis: one of them turns the
whole text into Unicode (type=unicode), 70 characters per SMS (67 per part). The characters
€ [ ] { } ^ ~ | \ count twice.
"Simplify" replaces ê with e, ç with c, œ with oe, ’ with ', « » with ", – with -, … with ..., the no-break space with a space. An emoji stays as it is.
Control and invisible characters are removed, line breaks are kept.
Status
The status of the integration tells: ready (with the cap), key, secret or allowed numbers missing or
unreadable, invalid sender, credentials refused, pause in progress and its end time (UTC), used-up
credit, sender refused, account barred or not enabled at the last send, configuration not read yet
(new try after 5 s, 10 s, 30 s, 1 min, then every 5 min), /data unreadable or too slow, /data not
written.
Data
- Sent to Vonage: the key and the secret (header), the number, the text, the sender, the type (
textorunicode) andclient-ref=gladys. - Kept in
/data/vonage-state.json: the time and the number of parts of the SMS of the last 24 hours, the pause in progress, the salt and the two 8-bit fingerprints of refused credentials. No key, no secret, no number, no text. - Logs: masked numbers, the number of parts, the number of a Vonage status; never the text, the free text of an answer, the key nor the secret.
Limits
- This is not a Gladys messaging channel: the Gladys "Send a message" action does not go through Vonage. On purpose: a channel would also get the Gladys system messages, as many paid SMS sent without a scene action.
- Delivery reports are not followed: "accepted" means Vonage took the SMS, not that it arrived.
- The newer Vonage Messages API (applications, JWT) is not used: the SMS API needs only the key and the secret.
Configuration settings
These are the settings vonage asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| SMS through Vonage | section | No | Unofficial connector, not affiliated with Vonage. Your scenes send SMS with the "Send an SMS (Vonage)" action, through your own Vonage account (the SMS API, ex-Nexmo): each SMS is paid from your Vonage credit. Messages go only to the allowed numbers below, within the cap per 24 hours below. Nothing is ever sent at another time (nothing at start, nor when you save this page), and nothing is received. Create an account on vonage.com, then copy the API key and the API secret from the API Dashboard. |
| Vonage API key | string | Yes | The API key shown at the top of the Vonage API Dashboard (8 characters). |
| Vonage API secret | secret | Yes | Kept by Gladys in its database, never shown again, sent only to Vonage (Authorization header). |
| Allowed numbers | string | Yes | The only numbers messages may go to, in the international format (+ or 00 then the country code), separated by commas, 10 at most. A scene action without numbers sends to all of them. |
| Sender (optional) | string | No | A name (1 to 11 letters, digits or spaces, at least one letter) or a Vonage number of your account, in the international format. Empty: "Gladys". Some countries (United States, Canada...) refuse a name and need a Vonage number. |
| Maximum SMS per 24 hours | number | No | Safety cap against a runaway scene: the SMS billed over the last 24 hours (a long text counts as several), 1 to 200. Beyond it, nothing is sent and the scene action fails. |
| Maximum parts per message | number | No | An SMS longer than 160 characters (70 with a character outside the SMS alphabet, like ê or an emoji) is billed as several. Beyond this number (1 to 10), the text is cut and ends with "...". |
| Accents | select | No | "Simplify" replaces the letters outside the SMS alphabet (ê, ç, ô, œ…) and the typographic signs (’ « » …) by the closest ones (e, c, o, oe, ' " ...), so a text keeps 160 characters per SMS. |
How to install vonage in Gladys
- In Gladys, open Integrations: vonage appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/lm1lc3n7/gladys-vonage:0.1.1), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/LM1LC3N7/gladys-vonage.
vonage requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
vonage is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by LM1LC3N7, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation