clickatell Smart-Home-Integration, kostenlos und Open Source

Unofficial: send SMS from your scenes through Clickatell (One API).
Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.
Unofficial, not affiliated with Clickatell. Never tested with a real Clickatell account: the API format comes from the official OpenAPI description of the Clickatell "One API" and its table of status codes and errors (read on 3 December 2026); the tests run against a fake server built from them.
This integration sends SMS from your Gladys scenes through your own Clickatell account (One API). Each message is paid from your Clickatell balance.
- Send only: nothing is received, no reply is read.
- A message leaves only from the scene action "Send an SMS (Clickatell)" 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.
One-way SMS and countries
Without a number of your own, Clickatell sends one-way SMS (1-way: the recipient cannot answer) from a number it picks. One-way SMS is not allowed in some countries, the USA among them: there, Clickatell needs a two-way integration with its own number (and, for the USA, the STOP/SUBSCRIBE commands turned on). Clickatell then refuses the message (errors 101, 110 or 111), the module says so in the scene log, and the slot is given back. Check the rules of the countries you send to in the Clickatell portal before relying on this integration for an alarm.
Before you start
- Create an account on clickatell.com and add funds.
- In the Clickatell portal, create an SMS integration of the One API type (one-way, or two-way with your own number), then copy its API key. If the integration only accepts some IP addresses, allow the address Gladys goes out from.
- In Gladys, install the integration, type the key and the allowed numbers, save.
- Click Check the account: Clickatell says whether it accepts 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 |
|---|---|
| Clickatell API key | Kept by Gladys in its database, never shown again, sent only to Clickatell (Authorization header of https://platform.clickatell.com). |
| Allowed numbers | Required. The only numbers messages may go to, international format, separated by commas, 10 at most. |
| Sender number | Optional, only for a two-way integration: one of its numbers, international format. Empty: Clickatell picks the sender (one-way). |
| 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 "...". Your Clickatell account may allow fewer parts (error 100). |
| Accents | "Keep them" (default) or "Simplify" (see below). |
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.
Clickatell receives the number without its +.
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 (Clickatell)" 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 Clickatell;not_sent: recipients not reached (refused, not tried, or without confirmation);message_ids: Clickatell ids (apiMessageId) 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 Clickatell (invalid or unreachable number, recipient opted out, one-way not allowed in its country, a 400 without a code) does not stop the next one; a refused key, an address not allowed (error 7), an insufficient balance, an account or integration not active, SMS not active on the integration, a refused sender number, too many parts, 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 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 (Clickatell does not give it in its answer). A message is counted and written
to
/databefore its request leaves; it is given back only when Clickatell surely did not take it: an answer 400, 401, 402 or 404 (the ones the One API documents for a refused request), an error code of the Clickatell table that means a refusal, server not found, connection refused. Any other 4xx answer (403, 408, 413, 422…) 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; 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. - Parts: a GSM extended character (
€,[,{…, 2 characters each) on the boundary of a part may make Clickatell bill one part more than the module counts. - Not tried again when a message may have left (timeout, connection cut, 5xx error or internal
error 18 or 19, an answer that does not read or does not say
accepted): a second try could be a second paid message. The result says "sent without confirmation". - One request at a time to Clickatell; at most 20 jobs wait for their turn, more are refused.
- Pause: after a rate limit (error 43, or a 429 with its
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. - Key refused for sending (401, or error 1, on sending a message): no scene uses it any more. Two
short fingerprints (8 bits each, salted) are kept in
/data, never the key. The refusal is lifted by changing the key (a new key is tried even if its fingerprints match), or by a success of either button (which do try it). A 401 of the "Check the account" button (balance API) does not block sending. A 401 with error 7 (address not allowed) is not a refused key either. - Insufficient balance, address not allowed, account or integration not active, SMS not active on the integration, sender number refused: the status says so; the next send is tried all the same (Clickatell 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.
Control and invisible characters are removed, line breaks are kept.
Status
The status of the integration tells: ready (with the cap), key or allowed numbers missing or
unreadable, invalid sender number, key refused, pause in progress and its end time (UTC), insufficient
balance, address not allowed, account or integration not active, SMS not active, sender number refused
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 Clickatell (
https://platform.clickatell.com/v1/message, and/v1/balancefor the check button): the key (header), the channelsms, the number, the text, and the sender number when set. - Kept in
/data/clickatell-state.json: the time 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 a refused key. No key, no number, no text. - Logs: masked numbers, the number of parts, never the text nor the key.
Limits
- This is not a Gladys messaging channel: the Gladys "Send a message" action does not go through Clickatell. 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 Clickatell took the message, not that it arrived.
- WhatsApp, also offered by the One API, is not used.
- Clickatell does not publish a rate limit in the One API description; the module sends one request at a time and follows a rate-limit answer if one comes.
Konfigurationseinstellungen
Diese Einstellungen fragt clickatell in seinem Konfigurationsbildschirm in Gladys ab.
| Einstellung | Typ | Pflichtfeld | Beschreibung |
|---|---|---|---|
| SMS through Clickatell | section | Nein | Unofficial connector, not affiliated with Clickatell. Your scenes send SMS with the "Send an SMS (Clickatell)" action, through your own Clickatell account (One API): each message is paid from your Clickatell balance. 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. In the Clickatell portal, create an SMS integration (One API), then copy its API key. One-way SMS is not allowed in some countries (the USA among them): there, Clickatell needs a two-way integration with its own number. |
| Clickatell API key | secret | Ja | Kept by Gladys in its database, never shown again, sent only to Clickatell (Authorization header). The key of an SMS integration (One API) of the Clickatell portal. |
| Allowed numbers | string | Ja | 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 number (optional) | string | Nein | Only for a two-way integration: one of its numbers, in the international format (+ or 00). Empty: Clickatell picks the sender (one-way). Required by Clickatell for the USA. |
| Maximum SMS per 24 hours | number | Nein | 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 | Nein | 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 "...". Your Clickatell account may allow fewer parts. |
| Accents | select | Nein | "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. |
So installierst du clickatell in Gladys
- Öffne in Gladys Integrationen: clickatell erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
- Klicke auf Installieren. Gladys lädt das Docker-Image (
ghcr.io/lm1lc3n7/gladys-clickatell:0.1.1) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration). - Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
- Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/LM1LC3N7/gladys-clickatell.
clickatell benötigt Gladys >=5.1.0. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.
Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.
Über externe Integrationen
clickatell ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von LM1LC3N7 veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.
- Alle Integrationen durchsuchen, native und aus der Community
- Deine eigene externe Integration bauen und veröffentlichen
- Quellcode auf GitHub — Quelle dieser Dokumentation