Skip to main content

CoinGecko smart home integration, free and open source

CoinGecko integration for Gladys Assistant

Cryptocurrency prices from CoinGecko, with price alerts

Cryptocurrency prices from CoinGecko, with price alerts.

Installation​

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

Configuration​

Open the Configuration tab:

  • Coins to track: CoinGecko API ids separated by commas (20 at most), e.g. bitcoin, ethereum, bitcoin-cash. The id is in the URL of the coin page on coingecko.com.
  • Currency: Euro, US dollar or pound sterling.
  • Alert threshold (%): Percentage of move over 24 h that fires the Price alert trigger. 0 turns it off.
  • CoinGecko demo API key: Optional. A free demo key raises the rate limit; leave empty to use the public API.
  • Refresh interval (s): How often prices are read (one minute minimum).

The Test CoinGecko button checks the connection and names the coin ids CoinGecko does not know.

Usage​

Each coin becomes a device with two features: its price and its change over 24 h (%). Add them to your dashboards and use them in your scenes. The integration needs Internet access (cloud only) and works in every country.

Scenes and dashboards​

  • Trigger — Price alert: fires once when a coin crosses the alert threshold over 24 h (filter by coin and by direction, up or down). Variables: name, coin id, direction, price, change over 24 h, currency.
  • Action — Get a coin price: reads a coin now. Outputs: price, change over 24 h, currency.
  • Action — Refresh all prices: reads every coin now. Output: number of coins updated.
  • Widget — Crypto prices: live price tiles (6 coins at most), the currency, and a refresh button.

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 CoinGecko asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Getting startedsectionNoEach coin you list becomes a device with its price and its 24 h change. The free CoinGecko API needs no account.
Coins to trackstringYesCoinGecko API ids separated by commas (20 at most), e.g. bitcoin, ethereum, bitcoin-cash.
CurrencyselectNo
Alert threshold (%)numberNoThe “Price alert” scene trigger fires when a coin moves by this percentage over 24 h. 0 turns it off.
CoinGecko demo API key (optional)secretNoA free demo key raises the rate limit. Leave empty to use the public API.
Refresh interval (s)numberNoHow often prices are read, in seconds (one minute minimum).

How to install CoinGecko in Gladys​

  1. In Gladys, open Integrations: CoinGecko appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/gboulvin/gladys-coingecko:1.2.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/gboulvin/gladys-coingecko.

CoinGecko 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​

CoinGecko 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 gboulvin, 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 🙂