Skip to main content

Starling Bank smart home integration, free and open source

Starling Bank integration for Gladys Assistant

Starling Bank account: balance of the account and savings spaces

Follow the balance of your Starling Bank accounts and savings spaces in Gladys, chart them over time, and react to money coming in or going out in your scenes.

The integration reads the Starling public API (cloud) with a read-only personal access token: it can never move money.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Starling Bank and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

  1. Sign in to the Starling developer portal with the email of your Starling account, and link your account.
  2. Create a personal access token with these permissions: account:read, balance:read and savings-goal:read.
  3. In Gladys, open the Configuration tab of the integration and paste the token.
  4. Leave Environment on Production (choose Sandbox only for a test token of a Starling sandbox account).
  5. Refresh interval: how often the balances are read, in seconds (300 by default, one minute minimum).
  6. Save, then click Test the connection: the message lists the accounts and savings spaces found.

Devices​

Open the Discovery tab and add the devices you want:

  • Starling account name, one per account, with:
    • Effective balance: includes the pending transactions (card payments not cleared yet);
    • Cleared balance: excludes them;
    • Pending transactions: the amount still pending.
  • Starling space name, one per open savings space, with the amount Saved and the Target (when the space has one).

Amounts are in the account currency (pound sterling, euro or US dollar) and keep their history for the charts. A space opened later shows up by itself at the next refresh.

Scenes and dashboards​

Scene triggers

  • Balance changed: the effective balance of an account went up or down between two refreshes. Filter by account and by direction (money in, money out). Variables: account name, new balance, previous balance, change (negative when spent), currency.
  • Savings goal reached: a savings space reached its target. Variables: space name, amount saved, target, currency.
  • Starling connection lost: the balances can no longer be read. Filter by reason (token refused, API unreachable).

For a threshold ("balance below £50"), use the standard Gladys device state trigger on the Effective balance feature.

Scene actions

  • Refresh the balances: reads the API right away. Outputs: number of accounts and of savings spaces.
  • Get a balance: gives the balance of an account (effective or cleared) or of a space to the next actions, e.g. to send it in a message. Outputs: balance, currency, name.

Dashboard widget

The Starling balances widget shows a tile per account, the progress of each savings space (green when its target is reached) and a Refresh button. When a refresh fails, the reason is shown above the last known balances.

Privacy​

The token is stored in your Gladys and only sent to the Starling API. Nothing else leaves your home, and the integration never logs the token.

Help​

A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.

Configuration settings​

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

SettingTypeRequiredDescription
Getting startedsectionNoCreate a personal access token in the Starling developer portal, with the account:read, balance:read and savings-goal:read permissions, then paste it below.
Personal access tokensecretYesRead-only access to your accounts. Never shared outside Gladys.
EnvironmentselectNoSandbox is for a test token created on a Starling sandbox account.
Refresh interval (s)numberNoHow often balances are read, in seconds (one minute minimum).

How to install Starling Bank in Gladys​

  1. In Gladys, open Integrations: Starling Bank appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/prohand/gladys-starling-bank:1.1.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/prohand/gladys-starling-bank.

Starling Bank requires Gladys >=5.3.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​

Starling Bank 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 prohand, 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 🙂