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

Unofficial: Simplepush push notifications sent from your scenes.
La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.
Unofficial integration, not affiliated with Simplepush. It sends Simplepush push notifications from your Gladys scenes, optionally with the end-to-end protection of Simplepush. It has been tested against fake servers built from the official documentation only: it has never been tested with a real Simplepush account yet. Feedback is welcome.
Setup
- Install the Simplepush app on your phone and create your account.
- In the app settings, under API Token, copy your token.
- In Gladys, open the integration, paste the token in API token, save.
- Optional: type a topic of your account (empty: the notifications go to your own devices).
- Optional: type the password of the end-to-end protection (see below).
- Click Send a test notification: the answer says whether Simplepush accepted it.
The token is kept by Gladys in its database, never shown again, and sent only to api.simplepu.sh
(HTTPS, certificate checked by the system authorities). It lets anyone send notifications to your devices:
keep it to yourself.
In a scene
Action Send a Simplepush notification:
- Title (optional, at most 200 characters, on one line);
- Message (required, at most 2000 characters; a longer text is cut and ends with "…");
- Priority: 1 and 2 silent, 3 normal with sound (default), 4 time-sensitive (goes through Focus / Do Not Disturb), 5 critical alert (sounds even on a muted phone). Your phone settings may override it.
Scene variables ({{...}}) are resolved by Gladys first. One notification leaves at a time, at least one
second apart; at most 10 wait, and one that waited more than 15 seconds is dropped ("nothing sent"). The
action fails, with the reason in the scene log, when the notification was not accepted; the scene goes on.
End-to-end protection (optional)
With a password, the integration seals the title and the message on the Gladys machine before they leave, with the scheme of Simplepush (Argon2id key derivation, XChaCha20-Poly1305): the Simplepush servers carry them without being able to read them, only your devices that know the same password can. The topic and the priority stay readable (they route the notification).
- Without a topic, type your Personal Password (app: Settings > Encryption > Personal Password). The
integration then reads a salt of your account once (
GET /v1/user), keeps it in memory only. - With a topic, type the password of that topic (app: Settings > Topics > your topic > Set Password).
The password is kept by Gladys in its database, never shown again, and never sent anywhere: the integration
only derives the key from it (once per password, in memory, right after you save it when a topic is set; about a quarter of a second on a PC, a few
seconds on a small board, and about 64 MB of memory, kept as long as the integration runs). Neither the password, the salt nor the key is
ever written in a log, a status or /data. If the key cannot be prepared (salt not readable, error), nothing
is sent: a notification never leaves readable when a password is set.
What the status and the errors mean
- Nothing sent: …: the notification did not leave (configuration, queue, pause, refused token…).
- Notification sent, without confirmation: …: it may have left but the answer was lost or unreadable. It is never sent again by the integration: check your phone before sending it again.
- Simplepush refused the API token (HTTP 401): scenes send nothing more with this token (it is never sent
again by itself, even after a restart). Type a new token, or click Send a test notification (it sends
even with a refused token): its success lifts the refusal. A 401 or 403 on the account read (
/v1/user) is never taken for a refused token: the read is retried one minute later, then spaced out (doubled up to one hour). - Simplepush asked to slow down (HTTP 429 or 5xx): every notification waits (1 minute, doubled up to
1 hour, or the
Retry-Afterof Simplepush up to 6 hours), the test button included; the pause survives a restart. - A write-protected topic is not supported (the notification is refused with that reason).
What is kept in /data
Only the end of a pause and its level, and, after a refused token, two 8-bit marks of it (never the token itself). A new token is always tried while Gladys runs; after a restart, a new token is taken for the refused one once in 65 536 (then the test button lifts it).
Not supported (v1)
Images, sounds, links, answers and tasks of Simplepush, write-protected topics, organization accounts.
Parámetros de configuración
Estos son los parámetros que Simplepush te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| Sending notifications | section | No | Unofficial connector, not affiliated with Simplepush. Install the Simplepush app on your phone, copy the token shown in its settings under API Token, and paste it below. Your scenes then use the action "Send a Simplepush notification". Check with "Send a test notification". |
| API token | secret | Sí | The token shown in the settings of the Simplepush app, under API Token. It lets anyone send notifications to your devices: kept by Gladys in its database, never shown again, sent only to api.simplepu.sh. |
| Topic (optional) | string | No | Empty: the notifications go to your own devices. Typed: to the subscribers of this topic of your account (Settings > Topics in the app). |
| End-to-end protection (optional) | section | No | With a password, the title and the text of each notification are sealed by the integration with the end-to-end scheme of Simplepush before they leave Gladys: the Simplepush servers cannot read them, only your devices that know the same password. Without a topic, type your Personal Password (Settings > Encryption > Personal Password in the app); with a topic, the password of that topic. If the protection cannot be prepared, nothing is sent: never the text readable. |
| Password of the end-to-end protection | secret | No | Empty: notifications readable by Simplepush. Kept by Gladys in its database, never shown again, never sent anywhere: the integration only derives the key from it. |
Cómo instalar Simplepush en Gladys
- En Gladys, abre Integraciones: Simplepush 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-simplepush: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-simplepush.
Simplepush 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
Simplepush 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