Energy management — EEBUS and smart meter gateway¶
Three devices around load control under § 14a EnWG (German Energy Industry Act) and the official meter readings, built with Tasmota and TinyC on an ESP32-S3 with Ethernet.
For test and development only
The control box and SteuVE are tools for test and development. They are not approved control devices and do not replace the grid operator's control box. Use at your own risk.
All pictures come from a test network. Addresses, identifiers and values have been replaced by example values.
EEBUS control box¶
The control box imitates the grid operator's control box (FNN control box). It speaks EEBUS (SHIP/SPINE) and sends limits to an energy management system or directly to a controllable consumer such as a heat pump or a wallbox.
- § 14a EnWG: limit of consumption (use case LPC)
- § 9 EEG: limit of feed-in (use case LPP)
- up to 6 connections, identifier (SKI) always taken from the certificate
- writes the failsafe values on every connection. The failsafe consumption limit Pmin is calculated per BK6-22-300 annex 1 no. 4.5.2.
- reads the measurements at the grid connection point (MGCP)
- operation log on the SD card, one CSV file per month, 30 months
Hardware: ESP32-S3 with Ethernet (W5500) and SD card.
Software: Tasmota driver xdrv_126 with its own web page.
Guide (German): tasmota/tinyc/docs/eebus_anleitungen/ANLEITUNG-EEBUS-Steuerbox.pdf.
Overview¶
EEBUS devices found, pairing by SKI or QR code, used connections with the last result.
Own identity¶
SKI, serial number and certificate. The certificate can be backed up and restored.
Control under § 14a and § 9¶
Set or release a limit and its duration. Below are the Pmin calculator and the failsafe values reported back by the device.
Measurements at the grid connection point (MGCP)¶
Power, meter readings, currents, voltages and frequency at the grid connection point. Which values appear depends on the energy management system: the control box shows what it delivers. Values it does not deliver are marked "wird nicht geliefert" (not delivered). In the test network the energy management system delivered no values when the picture was taken, so dashes are shown. Below it the structure of the remote device (actors, use cases, entities, features).
Operation log¶
Every limit with confirmation or rejection, failsafe values, connections and communication faults.
SteuVE — EEBUS gateway for controllable consumers¶
SteuVE makes devices without EEBUS controllable. It registers as a controllable consumer (LPC) with the energy management system or directly with the control box. When a limit arrives, it switches off the listed consumers by priority until the total is below the limit.
- up to 4 consumers (Shelly or Tasmota), meter or switch
- control contact for devices with their own control input (heat pump, air conditioner, wallbox, storage), e.g. SG Ready, only via the potential-free contact of a Shelly 1 or Shelly 1 Mini
- staggered return, one consumer every 60 s, at the earliest after 5 min
- failsafe after loss of heartbeat, autonomous without an energy management system
- indicator with LED ring (green free, yellow limited, red failsafe)
- test profiles (fake) for checks without real devices
- log during every limit, kept 2 years on the SD card
Hardware: ESP32-S3 with Ethernet (W5500) and SD card.
Software: Tasmota driver xdrv_128 and TinyC script steuve.tc for
the consumers.
Guide (German): tasmota/tinyc/docs/eebus_anleitungen/ANLEITUNG-SteuVE.pdf.
Overview¶
The chain from the grid operator to the consumers, below it each consumer with power and state.
In the picture SteuVE sits behind an energy management system (HEMS) that distributes the limit from the control box. An HEMS is not required, though: SteuVE can also be connected directly to the control box and then receives the EEBUS limit without a detour (direct control). The chain is then grid operator → control box → SteuVE → consumers.
EEBUS¶
Which device SteuVE obeys. Only a trusted device may write limits.
Consumers¶
Priority, address, rated power, switchable or only measured, control contact.
The control contact is meant for controllable consumers without EEBUS that have a control input, such as an SG Ready contact or the grid operator input of a heat pump. SteuVE translates the EEBUS signal into a switching contact: when a limit arrives via EEBUS, it switches this input through a relay. This way a device without EEBUS also receives the limit. SteuVE does not switch the device off itself; the device reduces its power through its control input. The control contact has no rated power of its own. On the right you choose which controllable consumer is connected to the contact.
Potential-free contact only: Shelly 1 or Shelly 1 Mini
Use only a Shelly 1 or Shelly 1 Mini with a potential-free contact for the control contact. No Shelly with metering (PM versions): their output carries mains voltage and would damage the control input of the device.
- NO (normally open): the contact is open in normal operation and closes during a limit (relay on).
- NC (normally closed): the contact is closed in normal operation and opens during a limit (relay off).
- The display below shows the current state. The picture shows OPEN: the NO contact is open, so there is no limit.
Messages¶
Connection, heartbeat counters and the last limit. Below it every EEBUS message between SteuVE and the energy management system, newest first.
Log¶
During every limit and for 10 min afterwards one line per minute: state, limit, total of the consumers and what is switched off. Kept 2 years on the SD card as proof.
Test and settings¶
Simulate a limit without a control box. Next to it the key data and the states.
Smart meter gateway reader¶
The reader fetches the official 15-minute meter readings (consumption 1.8.0, feed-in 2.8.0) over the HAN interface of the smart meter gateway, via HTTPS with login. It stores them on the SD card and shows them by day, month, year and all years. The cost page recalculates the electricity bill from them, including the modules under § 14a.
- fetch on a schedule. The first fetch takes everything the gateway has stored, from 01.01.2024.
- highest quarter-hour power per day and per year
- gateway logbook on button press, identifiers masked
- export as CSV and for Excel, optional daily FTP backup
- costs per month and billing year, tariff comparison, exchange prices (SMARD via energy-charts.info)
Hardware: ESP32-S3 with Ethernet and SD card, on the HAN port of the
gateway.
Software: TinyC scripts with their own web pages.
Guide (German): tasmota/tinyc/docs/smgw/ANLEITUNG-SMGW-Leser_1.2.2.pdf.
Day¶
Quarter-hour power of one day with consumption and feed-in.
Month¶
Energy per day of the month, here a full November, plus the days with the highest consumption and the highest feed-in.
Year¶
Energy per month, plus the months with the highest consumption and the highest feed-in.
Electricity costs — month¶
Recalculated bill for November from the meter readings and the entered prices.
Electricity costs — billing year¶
All months of the billing year, advance payments and expected credit, benefit from § 14a modules 1 and 3.















