Hello everyone ![]()
I’ve been wanting to share this setup for a while because it perfectly illustrates a choice I stand by: not wanting to do everything with a single tool. For me, Home Assistant and Gladys are not competitors, they are complementary — and it’s precisely this duo that makes the whole system both finely controllable and readable in terms of costs.
The context: a rural property with several buildings (house, professional building, PAC extension + machines, swimming pool, campsite, Tesla and Renault Spring charging stations…), a three-phase electrical installation, and solar production distributed per phase with a significant battery and micro-inverter park.
Needless to say, « out-of-the-box » dashboards quickly reach their limits. So, I broke the problem down into two parts:
- Home Assistant → orchestration (the brain: battery management, curtailment, phase balancing, weather-based decisions, EV charging…)
- Gladys → tracking real costs (the dashboard: how much each zone actually costs, and what the solar actually covers)
In summary (the experience)
- June (full month): ~2 MWh produced by solar, 87% of solar self-consumption, 63% of self-sufficiency, and a real EDF cost of €171.77 where my actual consumption « valued at the rate » amounted to €438. Solar + batteries absorbed the difference.
- July (summer peak): we reach 95% of self-consumption, 85% of self-sufficiency and 100% of low-carbon electricity consumed.
- The real comfort on a daily basis: knowing how much each zone costs and what the solar actually covers, item by item — and letting HA manage the battery orchestration alone.
1. The hardware: an out-of-the-box installation
A few peculiarities that explain the architecture:
- Three-phase, with solar production and storage distributed across the 3 phases (L1 / L2 / L3), each phase being balanced independently then between them (cross-phase).
- A Zendure SolarFlow park per phase: 800 Pro + 2400 Pro + 2400 AC (+ 800 solo modules), i.e. ~15.8 kWh of battery per phase, so ~47 kWh of storage in total across the three phases.
- Beem micro-inverters (900 W + 1 kW) on the production side.
- A total of 21 controlled devices, 7 per phase.
- The whole system is optimized around a peak/off-peak rate (heures pleines / heures creuses).
With this kind of topology, the central question becomes: « who consumes what, and is it coming from the grid, solar or batteries? » — and that’s where the measurement network makes all the sense.
2. Why Gladys and Home Assistant?
The division of roles is very clear for me:
| Role | Why this tool? | |
|---|---|---|
| Home Assistant | Orchestration (automations / scripts) + energy balance | Available Zendure and Beem integrations, fine control of the three-phase system and the 21 devices, very complete official energy dashboard |
| Gladys | Tracking real costs vs actual consumption, per zone | Clear and usable reading of the cost per building/usage, direct comparison « what I pay » vs « what I consume » |
In other words: HA controls, Gladys sheds light on the bill. I tried to put everything in one or the other, but it’s this distribution that gives me the most value on a daily basis.
3. The backbone: the Shelly meters
None of this works without a clean measurement network. At my place:
- 1 Shelly at the main panel (at the EDF meter level) → it gives the real EDF cost, i.e. what is actually drawn/billed at the delivery point.
- 1 Shelly per downstream electrical panel, i.e. 7 panels → each measures the actual consumption of its zone, whatever the source (grid, solar or battery).
It’s this double level that allows the key comparison:
General (Shelly at the TGBT) = what I actually pay to EDF
Sum of the 7 panels = what I actually consume, valued at the rate
The difference between the two = what the solar + batteries cover.
4. Home Assistant side: orchestration (where it gets serious)
This is where all the complexity of the three-phase system lives. Rather than a handful of automations, I ended up building a real « home-made » regulation engine in HA.
A flow view per phase. The « Total Flow » dashboard shows, in real time, the distribution of solar / batteries / loads (Tesla, swimming pool, heat pump, professional building, extension, house) on each of the 3 phases:
21 controlled devices, 7 per phase. Each phase groups its Zendure SolarFlow (800 Pro / 2400 Pro / 2400 AC / 800 solo) and its Beem, managed as a « cluster »:
Weather-driven control. The engine calculates a production score (J0 morning/afternoon, J+1) from the forecasts, and makes concrete decisions: discharge or not the batteries during off-peak hours at night if the next day looks sunny, when to charge the Tesla (off-peak/peak), boost the Zendure → Tesla transfer, etc.:
Behind the scenes, this engine also manages cross-phase balancing, hierarchical PV curtailment and load/discharge distribution per device, with a dryrun → live mode to test without risk. I deliberately kept most of these « engine » views out of the post to avoid overwhelming everyone — I’ll go into detail in response if interested.
And the monthly balance, via the official HA energy dashboard. Network / solar / battery / house distribution, self-consumption, self-sufficiency, low-carbon share:
In June: solar production ~2 MWh, 87% self-consumption, 63% self-sufficiency, 99% low-carbon, net network import 708.95 kWh → €159.05.
And July then? The summer peak is here ^^ And the months of July / August seem to be off to a good start — 95% / 85% / 100%. I finished my installation + automations on June 25, 2026 so we still have beautiful days ahead of us ^^ And 9 panels left to install ^^
5. Gladys side: the cost tracking that makes all the difference
This is the heart of my experience on the « bill » side. The « Total Cost Tracking » dashboard puts side by side:
- General → the real EDF cost (Shelly at the TGBT)
- Total actual consumption → the sum of the 7 panels (i.e. everything that is actually consumed by the buildings)
June: General = €171.77 / 938 kWh · Total actual consumption = €438.03 / 2,277 kWh. The difference speaks for itself: on paper my consumption « would cost » ~€438, but I only paid ~€172 to EDF — the rest is covered by self-production.
And where Gladys really makes a difference for me: the detail per zone. Each building/usage has its own real cost card, which allows you to immediately see where the energy (and money) is going.
In June, for example: Personal building ~€171, Tesla charger ~€83, House ~€69, Swimming pool ~€40, Professional building ~€34, Campsite ~€21, PAC+Machines extension ~€20… You can then go down to the level of a specific usage — for example the Renault Spring charger, where you can clearly see the rhythm of the recharges:
Honest clarification: Gladys’ « General » (Shelly in TGBT) measures the gross withdrawn at the delivery point, while the HA dashboard displays a net balance (import − injection). Therefore, the two are not supposed to give the same kWh — they answer two different questions. HA gives me the import/export accuracy of the total of each phase, Gladys gives me the actual amount recorded at the general meter of the 3 phases and therefore the actual billing!
6. Concrete Results
| June (full month) | July (partial month as of 08/07/2026) | |
|---|---|---|
| Solar production | ~1,995 kWh | 612 kWh |
| Solar self-consumption | 87 % | 95 % |
| Self-sufficiency | 63 % | 85 % |
| Low-carbon electricity | 99 % | 100 % |
| Actual EDF cost (incl. subscription) | 171.77 € | 21.23 € |
| EDF cost excl. subscription | 149.16 € | 15.82 € |
| Actual consumption valued | 438.03 € | 101.89 € |
| Actual savings (excl. subscription) | -288.87 € | -86.07 € |
Everyday comfort is being able to answer in 3 seconds: « Is the pool costing me a lot this month? », « How much has the Tesla charger actually drawn from the grid? », « Is my heat pump extension well covered by solar? » — while HA handles the orchestration of the 47 kWh of batteries alone.
7. Going Further
If anyone is interested, I can detail in the replies:
- the breakdown of the 7 tables and the Shelly mesh (MQTT feedback),
- the tariff configuration on Gladys’ side (HP/HC) and the logic of cost allocation by zone,
- the V2 regulation engine on HA’s side: cross-phase balancing, hierarchical PV curtailment, load/unload distribution by device, dryrun/live mode,
- the weather logic (J0/J+1 scoring) and Tesla HC/HP control,
- my views of instantaneous consumption and settings by phase.
In short, it’s a real pleasure to have Gladys for the « real costs by zone » part: it’s readable, it’s clear, and it perfectly complements Home Assistant, which handles all the orchestration.
The more I can add/migrate to Gladys, the happier I’ll be ^^
Feel free to ask if you have any questions!




















