Saltar al contenido principal

Integración domótica Tibber, gratuita y de código abierto

Integración Tibber para Gladys Assistant

Unofficial connector: Tibber prices, cheap hours, consumption, Pulse live power and contracts.

info

La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.

Unofficial connector, not affiliated with Tibber. It brings your Tibber account into Gladys: the hourly electricity prices of your home (today and tomorrow), Tibber's price level, your consumption, and, with a Tibber Pulse or Watty, the live power. Tibber is a trademark of Tibber AS. Available where Tibber sells electricity: Norway, Sweden, Germany and the Netherlands.

What you get​

SurfaceContent
One device per homeprice now, next price, today's average, minimum and maximum (per kWh, VAT included), Tibber's level (very cheap to very expensive), a "cheap period" sensor, the 30-minute consumption for the Gladys energy monitoring, yesterday's consumption and cost
With a Pulse / Wattylive power, production, today's consumption and cost, voltages and currents of the three phases
Scene triggerscheap period started / ended (the N cheapest hours of the day), price level changed, tomorrow's prices published, live power crossed a mark (500 W to 11 kW, up or down)
Scene actionsprice now (price, level, cheap hours, next price, today's figures, cheapest window) and cheapest hours (the cheapest N consecutive hours of the next 24 hours, today or tomorrow)
Dashboard widgetsTibber prices (now, next, averages, level, cheapest hours, the curve of today and tomorrow) and Tibber live power (gauge, kWh and cost of the day, peak, voltages, currents)
Energy contract (Gladys 5.2+)a Tibber template per country: every half hour of your meter is priced from your Tibber hourly prices, plus the monthly subscription

Setup​

  1. On developer.tibber.com, sign in with your Tibber account and create a personal access token.
  2. Install the integration, paste the token in Access token, save, then click Test the connection: it lists your homes with their current price.
  3. Open Discovery and add the device of each home.
  4. Put the Tibber prices widget (and Tibber live power with a Pulse) on a dashboard, pick the home.

The prices are read at start and every hour; tomorrow's prices are asked from 12:45 every 10 minutes until Tibber publishes them (around 13:00). The sensors move at every price slot (hourly, or every 15 minutes where Tibber moved to it). The consumption is read every hour.

Scenes​

  • Cheap period started / ended: the current slot enters or leaves the N cheapest hours of the day (N = Cheap hours per day, 4 by default). Start the water heater, the car charger, the washing machine.
  • Price level changed: Tibber's own level of the price (against the average of the last days) changed; filter on the new levels.
  • Tomorrow's prices published: once a day, with the average, the extremes and the cheapest window of tomorrow, ready for a notification.
  • Live power crossed a mark: the power of the Pulse went above or below the chosen number of watts. Warn when the oven and the charger run at the same time.

Two scene actions for a condition or a message that follows: price now gives {{price}}, {{level}}, {{cheap}}, {{next_price}}, {{avg_price}}, {{window_start_time}}…; cheapest hours gives the start and end ({{start_time}}, {{end_time}}, {{start}} and {{end}} as ISO dates for a "wait until"), {{minutes_until_start}} and the saving against the period.

Energy monitoring (Gladys 5.2 or newer)​

In Energy monitoring → Contracts, create a contract from the Tibber template of your country, pick the Tibber home device as the meter, and fill in the monthly subscription. Gladys then asks the integration to price every half hour from your own Tibber price history (energy price, VAT included); the costs appear next to the consumption like any contract. The consumption of the device is the hourly consumption Tibber reports, split in two equal halves, published with about one hour of delay.

If you own a Pulse, Gladys also shows the live power and today's cost straight from Tibber.

Troubleshooting​

  • "Tibber refused the access token": the token was revoked or mistyped; create a new one on developer.tibber.com.
  • "No home with an active subscription": the account has no running Tibber contract yet.
  • No live power: the home needs a Tibber Pulse or Watty with real-time consumption enabled in the Tibber app, and the Live power option on. The status line says "live power on <home>" when the stream is connected.
  • Tomorrow's prices missing: Tibber publishes them around 13:00 local time; the integration keeps asking every 10 minutes.
  • Logs: the integration's log level is set with the LOG_LEVEL variable.

Privacy​

The token is stored encrypted by Gladys and only sent to Tibber's servers (api.tibber.com, websocket-api.tibber.com). Your address is only used to name the device when the home has no nickname.

Parámetros de configuración​

Estos son los parámetros que Tibber te pide en su pantalla de configuración en Gladys.

ParámetroTipoObligatorioDescripción
Tibber accountsectionNoUnofficial connector, not affiliated with Tibber. Create a personal access token on developer.tibber.com (Settings → Access token) and paste it below: the integration discovers your homes, reads the hourly prices (today and tomorrow), your consumption, and, with a Tibber Pulse or Watty, the live power. It also offers a Tibber contract template for the Gladys energy monitoring. Tibber is a trademark of Tibber AS.
Access tokensecretSíStored encrypted by Gladys and only sent to api.tibber.com.
Cheap hours per daynumberNoThe N cheapest hours of the day make the "cheap period" (sensor, triggers, widget).
Live power from a Tibber Pulse / WattybooleanNoKeeps a websocket open to Tibber for the homes with real-time consumption enabled.

Cómo instalar Tibber en Gladys​

  1. En Gladys, abre Integraciones: Tibber aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
  2. Haz clic en Instalar. Gladys descarga la imagen Docker (ghcr.io/lm1lc3n7/gladys-tibber:0.1.1), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración).
  3. Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
  4. También puedes instalarla directamente desde la URL de su repositorio: https://github.com/LM1LC3N7/gladys-tibber.

Tibber requiere Gladys >=5.2.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.

¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.

Sobre las integraciones externas​

Tibber es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene LM1LC3N7, no el equipo principal de Gladys.

Suscríbete a la newsletter de Gladys Assistant

Unos pocos correos al mes sobre nuevas versiones y novedades del proyecto. Enviados por Pierre-Gilles Leymarie, fundador del proyecto. Puedes darte de baja cuando quieras 🙂