Skip to main content

Pushcut smart home integration, free and open source

Pushcut integration for Gladys Assistant

Pushcut notifications and iOS shortcuts launched from Gladys scenes and the dashboard.

Send your Pushcut notifications and run your iOS shortcuts from Gladys: from a scene, from a button of the dashboard, or from the push button of a notification.

Developed without the hardware: feedback welcome. This integration was written from the official Pushcut Web API without a Pushcut account; only the refusal of a wrong key was checked against the real service. Tell us how it works for you on GitHub.

What you get​

  • One device per Pushcut notification defined in the app, found in Discovery, with a push button that sends it.
  • The scene action Send a Pushcut notification: a notification of the app, whose title, text, input, link, image, sound and target iOS devices can be replaced for this send.
  • The scene action Run a Pushcut shortcut: a Shortcut or a HomeKit scene run on the Pushcut Automation Server, with an optional text input.
  • The Pushcut dashboard widget: state of the account, up to three notification buttons and a Run a shortcut button opening a short form.

Requirements​

  • Gladys 5.2.0 or later, with Internet access: everything goes through the Pushcut cloud (api.pushcut.io).
  • The Pushcut app on an iPhone or an iPad, and an API key (Account screen of the app).
  • To run shortcuts: the Pushcut Automation Server running on an iOS device, which needs a paid Pushcut plan. Notifications work without it.
  • The use of the Web API follows the plans and limits of your Pushcut account.

Configuration​

  1. In the Pushcut app, open Account, create or copy an API key.
  2. In Gladys, paste it in API key and save. The connection status turns green when Pushcut accepts the key.
  3. Language of the integration texts chooses the language of the name of the send buttons, set when the notifications are added (French by default). The messages of the actions are shown in the language of each Gladys user.
  4. The Check the key button lists the iOS devices and the notifications of the account.

Define your notifications in the Pushcut app first (title, text, sound, actions…): the integration sends them, it does not create them.

Notifications in Gladys​

Open Discovery: each notification of the app is a device named "Pushcut <name>". Add those you want to use. Each has a push button that sends the notification as defined in the app.

The Pushcut API knows a notification by its name: renaming it in the app makes a new device in Gladys, and the old one fails with "Pushcut does not know this name".

Scenes​

Send a Pushcut notification: choose the notification among the devices added. Every field left empty keeps what the app defines:

  • Title, Text: replace the texts of the notification; they accept the variables of the scene.
  • Input of the actions: passed to the shortcut or to the action started from the notification.
  • Link opened on tap: an http:// or https:// address.
  • Image: the address of an image, or the name of an image imported in Pushcut.
  • Sound: one of the Pushcut sounds.
  • Only these iOS devices: names as Pushcut shows them, separated by commas.

Run a Pushcut shortcut: a Shortcut or a HomeKit scene, by its exact name, with an optional input text. With Wait for the result, Gladys waits up to 20 seconds for the Automation Server: the action fails if the server is off or does not answer in time. Without it, Pushcut only queues the request.

When an action fails, the scene shows the reason (key refused, unknown name, server off…) and goes on with its next actions.

Dashboard​

Add the Pushcut widget. Its settings choose up to three notifications shown as buttons, and whether the account state and the Run a shortcut button are shown. The buttons show the names given in Gladys. The form of Run a shortcut asks what to run, its name and an optional input.

Limits​

  • Pushcut is a cloud service: without Internet access, nothing is sent.
  • The Pushcut API gives no list of the shortcuts: their names are typed by hand.
  • Online actions (Pushcut calling Gladys back) are not supported.
  • The integration checks the key when it starts, when the configuration is saved, when the widget is shown (at most every 10 minutes), at each send, and every 10 minutes while Pushcut cannot be reached.

Troubleshooting​

  • Pushcut refuses the API key: copy it again from the Account screen of the app; a deleted key stops working at once.
  • Pushcut does not know this name: the notification was renamed or deleted in the app. Run a new Discovery and use the new device.
  • The Automation Server is not running: open Pushcut on the iOS device used as server and start the Automation Server.
  • Logs: Integrations → Pushcut → Logs. The key is never written there; LOG_LEVEL=debug shows every request.

Credits​

Not affiliated with Pushcut. Pushcut is a trademark of its owner. Report issues on GitHub.

Configuration settings​

These are the settings Pushcut asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Connect PushcutsectionNoIn the Pushcut app on the iPhone, open Account, then copy an API key. Define your notifications in the app: they appear in Discovery, one device each.
API keysecretYesPushcut app → Account → API keys. Stored by Gladys, never written in the logs.
Language of the integration textsselectNoUsed for the name of the send button of the notifications, set when they are added.

How to install Pushcut in Gladys​

  1. In Gladys, open Integrations: Pushcut appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-pushcut:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/guim31/gladys-pushcut.

Pushcut requires Gladys >=5.2.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​

Pushcut 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 guim31, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂