Integración domótica clicksend, gratuita y de código abierto

Unofficial: send SMS, and optionally voice calls, from your scenes through ClickSend.
La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.
Unofficial, not affiliated with ClickSend. Never tested with a real ClickSend account: the API format comes from the public ClickSend REST v3 documentation and the models of its official SDK (read on 2 December 2026); the tests run against a fake server built from them.
This integration sends SMS, and if you allow it text-to-speech calls, from your Gladys scenes through your own ClickSend account. Each message is paid from your ClickSend credit.
- Send only: nothing is received, no reply is read.
- A message leaves only from a scene action ("Send an SMS (ClickSend)", "Call (ClickSend)") or a click on the "Send a test SMS" button. Nothing at start, on a reconnection, nor when you save the configuration.
- Messages go only to the allowed numbers typed in the configuration.
Before you start
- Create an account on clicksend.com and add credit.
- In the ClickSend dashboard, API Credentials: copy the username and an API key.
- In Gladys, install the integration, type the username, the key and the allowed numbers, save.
- Click Check the account: ClickSend says whether it accepts the username and the key and gives the balance. This button sends no message.
- 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 |
|---|---|
| ClickSend username | The API username of the dashboard (often your e-mail address). |
| ClickSend API key | Kept by Gladys in its database, never shown again, sent only to ClickSend (Authorization header of https://rest.clicksend.com, Basic). |
| Allowed numbers | Required. The only numbers messages may go to, international format, separated by commas, 10 at most. |
| Sender | Optional: an alpha tag (3 to 11 letters or digits, at least one letter) or a number with + registered in your account. Empty: the default. |
| 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 "...". A call text is cut at the same number of call credits, 4 at most. |
| Accents | "Keep them" (default) or "Simplify" (see below). |
| Allow calls | Off by default. On: the "Call (ClickSend)" action calls the allowed numbers and reads the text. |
| Maximum calls per 24 hours | Safety cap of the calls, 1 to 50 (3 by default). |
| Call language, call voice | The language of the reading (20 of them) and the voice (female or male; some languages have one voice only, which is then used). |
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.
Sending to a country other than your account's may need "global sending" turned on in ClickSend.
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 actions
"Send an SMS (ClickSend)" and "Call (ClickSend)" have the same 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 or calls accepted by ClickSend;not_sent: recipients not reached (refused, not tried, or without confirmation);message_ids: ClickSend ids of the accepted messages, 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 ClickSend (INVALID_RECIPIENT, COUNTRY_NOT_ENABLED, THROTTLED, a 400) does not stop the next one; refused credentials, used-up credit, a refused sender, an account not
activated, 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.
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 message waits is not sent.
- Daily caps (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 same for the calls (one
per recipient, whatever its length). The number of parts is the one the module computes; when
ClickSend announces more in its answer, the count is raised afterwards. A message is counted and
written to
/databefore its request leaves; it is given back only when ClickSend surely did not take it (an error 400, 401, 403, 404 or 422, a refusal code of the list above, server not found, connection refused); any other 4xx error (408, 413, 418…) counts as "may have left". 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 a message 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 and no call; 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 caps. - Parts: the module counts the parts of a long text itself; a GSM extended character (
€,[,{…, 2 characters each) on the boundary of a part may make ClickSend bill one part more, counted only once ClickSend announces it. - Calls off by default; the option is read again just before each call: turned off while a call waits, it is not made.
- Never tried again when a message may have left (timeout, connection cut, 5xx error, an answer that does not read or with a message status this module does not know): a second try could be a second paid message. The result says "sent without confirmation".
- One request at a time to ClickSend; at most 20 jobs wait for their turn, more are refused.
- Pause: after a 429 (ClickSend asks to slow down), the time it gives (
Retry-After), 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
INVALID_CREDENTIALS, on sending a message): no scene uses them any more. Two short fingerprints (8 bits each, salted) are kept in/data, never the key. The refusal is lifted by changing the username or the key (new credentials are always tried), or by a success of either button (which do try them). A 401 of the "Check the account" button (account API) does not block sending: a sub-account may be allowed to send without reading the account. - Used-up credit (
INSUFFICIENT_CREDIT), sender refused (INVALID_SENDER_ID), account not activated, 403: the status says so; the next send is tried all the same (ClickSend 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, 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.
A call is billed one credit per 300 characters (150 outside the SMS alphabet), 4 credits at most; line breaks become short pauses (a comma).
Control and invisible characters are removed, line breaks are kept in an SMS.
Status
The status of the integration tells: ready (with the caps, calls on or off), username, key or allowed
numbers missing or unreadable, invalid sender, credentials refused, pause in progress and its end time
(UTC), used-up credit, sender refused, account not activated or 403 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 ClickSend: the username and the key (header), the number, the text, the sender when set,
the language and voice of a call, and
source: "gladys". - Kept in
/data/clicksend-state.json: the time, the kind and the number of parts of the messages of the last 24 hours, the pause in progress, the salt and the two 8-bit fingerprints of refused credentials. No key, no username, no number, no text. - Logs: masked numbers, the number of parts, never the text, the username nor the key.
Limits
- This is not a Gladys messaging channel: the Gladys "Send a message" action does not go through ClickSend. On purpose: a channel would also get the Gladys system messages, as many paid messages sent without a scene action.
- Delivery reports are not followed: "accepted" means ClickSend took the message, not that it arrived.
- ClickSend does not publish a rate limit for REST v3; the module sends one request at a time and follows a 429 if one comes.
Parámetros de configuración
Estos son los parámetros que clicksend te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| SMS and calls through ClickSend | section | No | Unofficial connector, not affiliated with ClickSend. Your scenes send SMS with the "Send an SMS (ClickSend)" action, and calls with "Call (ClickSend)" when you turn calls on below, through your own ClickSend account: each message is paid from your ClickSend credit. Messages go only to the allowed numbers below, within the caps 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 clicksend.com, then copy your username and an API key from the dashboard (API Credentials). |
| ClickSend username | string | Sí | The API username shown with the API keys in the ClickSend dashboard (often your e-mail address). |
| ClickSend API key | secret | Sí | Kept by Gladys in its database, never shown again, sent only to ClickSend (Authorization header). |
| Allowed numbers | string | Sí | 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 | An alpha tag (3 to 11 letters or digits, at least one letter) or a number with + registered in your ClickSend account. Empty: ClickSend's default sender. Some countries refuse or replace an alpha tag. |
| 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 "...". A call text is cut at the same number of call credits (4 at most). |
| 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. |
| Allow calls | boolean | No | Off by default. When on, the "Call (ClickSend)" scene action calls the allowed numbers and reads the text (text-to-speech, paid per call). |
| Maximum calls per 24 hours | number | No | Safety cap for the calls: the calls made over the last 24 hours, 1 to 50. Beyond it, nothing is called and the scene action fails. |
| Call language | select | No | The language the text is read in. |
| Call voice | select | No | Some languages have one voice only: that one is used. |
Cómo instalar clicksend en Gladys
- En Gladys, abre Integraciones: clicksend aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
- Haz clic en Instalar. Gladys descarga la imagen Docker (
ghcr.io/lm1lc3n7/gladys-clicksend:0.1.1), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración). - Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
- También puedes instalarla directamente desde la URL de su repositorio: https://github.com/LM1LC3N7/gladys-clicksend.
clicksend requiere Gladys >=5.1.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.
¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.
Sobre las integraciones externas
clicksend es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene LM1LC3N7, no el equipo principal de Gladys.
- Explorar todas las integraciones, nativas y de la comunidad
- Crear y publicar tu propia integración externa
- Código fuente en GitHub — fuente de esta documentación