Skip to main content

Engie France smart home integration, free and open source

Engie France integration for Gladys Assistant

Engie contracts in Gladys: Elec Référence, Elec Car, gas, daily consumption and invoices.

Bring your Engie customer account (residential, France) into Gladys: electricity and gas contracts, the consumption of every day, the kWh price, invoices and the balance to pay. The integration also provides the contract templates of the Engie offers Elec Référence (Base and off-peak hours) and Elec Car (super off-peak hours), so Gladys computes the cost of your consumption.

Unofficial integration: Engie publishes no API. It uses the same service as the Engie mobile app, like the Home Assistant integration it is modelled on. Engie may change it at any time.

Installation​

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

Configuration​

  1. Open the Configuration tab of the integration.
  2. Type the e-mail and the password of your Engie customer area (the ones of the Engie app), then save.
  3. Click Log in.
    • If Engie asks for a verification code, it sends it to you (SMS or e-mail); with an authenticator app, open it. Type the code in Validate the code.
    • The code is only asked once: the session is kept in the /data volume of the integration and renewed automatically.
  4. Open the Discovery tab and add the devices.

The refresh interval (6 hours by default, 1 to 24) sets how often the account is read. Engie publishes the consumption of a day the next day: a few reads a day are enough.

Other buttons of the Configuration page:

  • Refresh now: reads the account right away;
  • Show my prices: the kWh prices and the subscription Engie reports, and the contract template to pick in Gladys;
  • Log out: forgets the saved session.

Devices​

DeviceValues
Engie – Compte … (one per contract account)Balance to pay, amount and date of the last invoice, date of the next invoice
Engie – Électricité (…) (one per contract)Daily consumption (kWh), cost of the day computed by Engie, kWh price incl. taxes, monthly subscription incl. taxes, offer name
Engie – Gaz (…) (one per contract)Daily gas consumption (kWh), cost of the day, kWh price incl. taxes, monthly subscription incl. taxes, offer name

The days are published dated as soon as the device is added, with the history of the last 35 days. The current day is never published: Engie completes it the next day.

Energy contracts: the Engie templates​

In Gladys, open Energy → Contracts, create a contract on the Engie – Électricité device (or on your Linky meter if it is already in Gladys), then pick one of the templates of the integration:

TemplatePrices to type
Engie Elec Référence – BasekWh price, monthly subscription
Engie Elec Référence – Off-peak hourspeak and off-peak prices, off-peak hours, subscription
Engie Elec Car – Super off-peak hourspeak, off-peak and super off-peak prices, off-peak and super off-peak hours (2 am – 6 am by default), subscription

The prices depend on your offer and your subscribed power: the Show my prices button gives the ones Engie knows, otherwise copy those of your invoice.

With a daily consumption, Gladys does not know how a day splits between peak and off-peak hours: for an exact cost of the off-peak and Elec Car offers, attach the contract to a meter providing the half-hourly load curve (the Enedis or Téléinfo integration, for example).

Gas: the Gladys energy contracts only price electricity for now. There is therefore no gas template; the cost of every gas day is the one Engie computed, published on the Gas device.

Scenes and dashboards​

Triggers​

TriggerWhenVariables
New Engie invoiceEngie issued a new invoice (filter: account)amount, date, due date, number, account number
New day of consumptionEngie published a new day (filters: contract, energy)energy, day, consumption (kWh), cost (€)
Balance to pay changedThe balance of the account changed (filter: account)new balance, previous balance, account number
Engie session expiredEngie ended the session: log in againreason

At installation, the first read only records where the account stands: the invoices already issued are not "new". A restart never fires the same event twice.

Actions​

  • Refresh Engie data: reads the account and returns the balance, the amount and date of the last invoice, and the number of contracts. It fires no trigger, so a scene can never loop: the next scheduled read does.
  • Get the latest day of consumption (electricity or gas): returns the day, the consumption, the cost and the kWh price.

Widget​

The Engie account widget shows the latest day of electricity and gas, the balance to pay, two weeks of consumption in a chart, the last and next invoice, the kWh price and the connection state, with a Refresh button.

Privacy​

The password is only sent to Engie. The session tokens are kept in the /data volume of the integration (a file only it can read) and never appear in the logs.

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

SettingTypeRequiredDescription
Getting startedsectionNoType the login of your Engie customer area (the one of the Engie app), save, then click "Log in". If Engie sends you a code, type it in "Validate the code": it is only asked once.
E-mailstringYesE-mail address of your Engie customer area.
PasswordsecretYesPassword of your Engie customer area. It is only sent to Engie.
Refresh interval (hours)numberNoHow often the Engie account is read. Engie publishes a day the next day: a few reads a day are enough.

How to install Engie France in Gladys​

  1. In Gladys, open Integrations: Engie France 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-engie-france: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-engie-france.

Engie France 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​

Engie France 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 🙂