Skip to main content

Too Good To Go smart home integration, free and open source

Too Good To Go integration for Gladys Assistant

Surprise bags available at your favorite Too Good To Go stores, in Gladys.

Follow in Gladys the surprise bags of your favorite Too Good To Go stores: bags available, price, pickup window, and scenes that tell you as soon as a bag is back.

The integration uses the Too Good To Go online service (an internet connection is required) with your app account. Too Good To Go publishes no official API: the integration talks to the API of the mobile app, like the Home Assistant integration does.

Install​

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

Log in to your account​

  1. Open the Configuration tab of the integration, enter the e-mail address of your Too Good To Go account and save.
  2. Click Send the login e-mail. Too Good To Go sends you an e-mail with a link and a PIN code.
  3. Either:
    • open the e-mail on a computer (not on the phone where the app is installed, which would open the app) and click the link: the integration detects it within two minutes;
    • or type the PIN code of the e-mail in Confirm the PIN code.
  4. The integration status turns to "connected". The session is kept: no need to log in again after a restart.

Test the connection reads your favorites again and shows how many there are. Log out forgets the session.

Options​

  • Other item ids to follow: ids of bags to follow without making them favorites, comma-separated. The id ends the share link of a bag (share.toogoodtogo.com/item/<id>).
  • Refresh interval: 300 seconds by default, 120 at least. Too Good To Go blocks the clients that ask too often: if the status says "rate limited", raise the interval.
  • Time zone: the one of the pickup windows (Europe/Paris by default).

Devices​

Open the Discovery screen of the integration: each favorite store (and each followed bag) shows up as a device. Add the ones you care about. Each device has:

  • Bags available: the number of bags left (0 = sold out);
  • Price and Original value of the bag;
  • Pickup window: for example 18:00–18:30 today, or 2026-12-01 18:00–18:30 another day.

A store added to the favorites later in the app shows up in Discovery at the next refresh.

Scenes and dashboards​

Triggers (the "Too Good To Go" card of the scene editor):

  • Surprise bags available: a followed store that had no bag left offers bags again. Filter: the store (optional). Variables: store name, number of bags, price, currency, pickup window, link to the bag — for example to send "3 bags at Martin's Bakery, 18:00–18:30".
  • Surprise bags sold out: a followed store has no bag left. Variable: store name.
  • Too Good To Go login required: Too Good To Go refused the session, the stores are no longer updated. Variable: the reason.

The first read after a start fires nothing: it is the starting point.

Actions:

  • Refresh the Too Good To Go stores: reads the favorites right away. Outputs: number of followed stores, of stores with bags, of bags in total.
  • Read a store's bags: the last known state of a store (name, bags, price, currency, pickup window, link), to use in a message.

"Too Good To Go favorites" widget: the number of stores with bags and of bags available, the list of stores (the ones with bags first) with pickup window, price and a link to the app, the account status, the time of the last read and a Refresh button. Setting: only show the stores with bags.

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 Too Good To Go asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Log in to Too Good To GosectionNoEnter the e-mail address of your Too Good To Go account and save. Then click "Send the login e-mail" below: open the e-mail on a computer (not on the phone where the app is installed) and click its link, or type its PIN code in "Confirm the PIN code". Each favorite store of the app becomes a device in the Discovery screen.
Account e-mail addressstringYesThe address you log in to the Too Good To Go app with.
OptionssectionNoToo Good To Go blocks the clients that ask too often: keep a refresh interval of a few minutes.
Other item ids to followstringNoOptional, comma-separated: bags followed without being favorites. The id ends the share link of a bag (share.toogoodtogo.com/item/<id>).
Refresh interval (s)numberNoHow often the favorites are read, in seconds (two minutes minimum).
Time zonestringNoTime zone the pickup windows are written in (IANA name).

How to install Too Good To Go in Gladys​

  1. In Gladys, open Integrations: Too Good To Go 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-too-good-to-go: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-too-good-to-go.

Too Good To Go 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​

Too Good To Go 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 🙂