Simplepush smart home integration, free and open source

Unofficial: Simplepush push notifications sent from your scenes.
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.
Configuration settings
These are the settings Simplepush asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| 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 | Yes | 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. |
How to install Simplepush in Gladys
- In Gladys, open Integrations: Simplepush appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/lm1lc3n7/gladys-simplepush: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-simplepush.
Simplepush 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
Simplepush 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