Skip to content

Guide

Energy and electricity tariffs

How to set up the Home Assistant Energy dashboard and enter your electricity tariff, so you always know where your power comes from, when it’s cheapest, and what the month will cost.

  • 9 min read
  • For whoever manages the household
  • Updated October 21, 2026

What you need

  • Home Assistant connected to togedapp. If it isn’t yet, follow the Home Assistant guide.
  • The Home Assistant Energy dashboard set up, with at least one of these three: the grid meter, solar panels, or a battery.
  • For the other members, the Energy permission: in your profile, tap their name and turn it on under “What They Can See.”

Step 1The Home Assistant Energy dashboard

togedapp reads whatever you’ve set up in that dashboard, so everything starts there. In Home Assistant, go to Settings, Dashboards, Energy and add what you have:

SectionWhat to add
Electricity grid The meter for what you buy from the grid and, if you sell, the one for what you send back (in kWh).
Solar panelsYour inverter’s production (in kWh).
Home battery storageThe energy going in and the energy coming out (in kWh).
Individual devices (optional) What the water heater, the pool pump, the car… use. togedapp shows them when you expand the Home card.

Home Assistant saves statistics every five minutes, so the curve and the totals fill in from the moment you set up the dashboard, not before.

What you’ll see in Energy

The tab answers one question: is now a good time to run the washing machine? That’s why it starts with what’s happening right now and leaves the math for later.

  • Live Status: total power, where it comes from (the sun, the battery, or the grid), and a tip. With Apple Intelligence, the tip is written by the iPhone itself, taking the weather into account.
  • Solar, Battery, Grid, and Home: four cards, each with its number. Tap one to expand it and see where the energy goes, its curve for today, and the day’s summary.
  • Day Overview: today’s curve (with ‹ › to go to other days) and the day’s Generated, Consumed, and Self-Sufficiency figures.
  • Costs: appears as soon as you enter a tariff (step 2).
  • At the top right, the weather at home: tap it to see the forecast and cloud cover for the next few hours.

Step 2Enter your electricity tariff

With your tariff, togedapp works out how much you’ve spent so far, how much the sun is saving you, and what this month’s bill will be. Whoever created the household sets it up, and the others see the costs if they have the Energy permission. Keep a recent bill handy.

  1. Open the tariffs

    Energy, ⋯, Settings, Electricity Tariffs

  2. Tap “Add Tariff”

    If you already had one, you can copy it and change only what’s different, or start from scratch.

  3. Fill in what your bill says

    Each field, with what it’s called on your bill:

In togedappWhat it isOn your bill
Plan (optional)A name so you can recognize itThe name of your tariff
DatesWhen it applies from. With no end date, it’s the current oneThe start of your contract or of the price change
Energy Price What each kWh you buy costs. With “Same Price All Day,” it’s a single price; otherwise, one each for peak, mid-peak, and off-peak “Término de energía” (energy charge)
Contracted PowerYour peak and off-peak kW (if you leave Off-Peak empty, the Peak value is used)“Potencia contratada” (contracted power)
Power Price What you pay per kW, even if you use nothing. Choose whether it’s per day or per year “Término de potencia” (power charge)
SurplusIf you sell the power you don’t use, at what price (more on this below)“Compensación de excedentes” (surplus compensation)
TaxesThe electricity tax and VAT, or “Prices Already Include Taxes”“Impuesto sobre la electricidad” (electricity tax) and “IVA” (VAT)
Monthly Fixed Charges What you pay even if you use nothing: meter rental, maintenance, insurance… “Alquiler de equipos” (equipment rental) and services

Peak, mid-peak, and off-peak

If your tariff has time-of-use prices, togedapp uses the periods of the Spanish 2.0TD tariff, which is the one almost every home in Spain has:

PeriodMonday to FridayWeekends and holidays
Peak (the most expensive) 10 AM–2 PM and 6 PM–10 PM—
Mid-Peak8 AM–10 AM, 2 PM–6 PM, and 10 PM–midnight—
Off-Peak (the cheapest) Midnight–8 AMAll day

Fixed-date national holidays count as holidays: January 1 and 6, May 1, August 15, October 12, November 1, and December 6, 8, and 25. Ceuta and Melilla have a different schedule, which isn’t supported for now.

Surplus

Turn on “I Sell My Surplus Power” and enter the price you’re paid for it. Then the “Deduct from Entire Bill” switch decides how it’s applied:

Off (the usual)Simplified compensation What you sell only lowers the energy part of the bill, down to zero at most. Power, taxes, and charges are paid as usual, and anything left over is lost.
OnWallet or virtual battery What you sell this month is deducted from the whole bill, taxes and power included. It’s what some energy suppliers offer.

If you don’t know which one you have, leave it off: that’s how most of them work. Your energy supplier can confirm it.

Costs and estimated bill

With a tariff in effect, Costs appears below the day’s curve. Inside, you’ll see:

  • The month’s estimated bill, what you’ve spent so far, and the days left. Tap the card to see the breakdown.
  • Which period you’re in right now and when it changes, with a strip showing today’s 24 hours (only with time-of-use prices).
  • How much the sun has saved you this month.
  • How your consumption is split between peak, mid-peak, and off-peak, with a sentence that rates it.

Previous days

Home Assistant keeps five-minute detail for only ten days. So you can look back in detail, togedapp saves each day once it’s over: the app of whoever created the household does it when it opens and, on top of that, every night through Home Assistant’s public address.

If the numbers don’t add up

The Energy tab doesn’t show up

Home Assistant has no energy data: set up its Energy dashboard (step 1). If you’re a member, you also need the Energy permission from whoever created the household.

A number doesn’t make sense

It’s usually a sensor that has stopped responding in Home Assistant. If one of the flows is missing, togedapp would rather give no verdict than a wrong one. Check in Home Assistant that the sensor has a value.

I don’t see “Costs”

It only appears if there’s a tariff in effect today. In Energy → ⋯ → Settings → Electricity Tariffs, check that the current one doesn’t have an end date in the past.

The day’s curve is empty or only half there

Home Assistant has to have saved statistics for that day. If you’ve just set up the Energy dashboard, give it a while: it fills in every five minutes.

The tip isn’t written by Apple Intelligence

You need a compatible iPhone or iPad, with Apple Intelligence turned on and available in English. Otherwise, you’ll see the same tip with fixed wording.

Keep going