Multi-family buildings · ZEV · vZEV · LEG · AI

Control energy in multi-family buildings intelligently

Energy Manager runs the whole building with AI forecasting: PV, battery, heat pump and charging stations, shared by several parties, whether as a ZEV (self-consumption community, Zusammenschluss zum Eigenverbrauch), a vZEV (virtual ZEV) or a LEG (local electricity community, lokale Elektrizitätsgemeinschaft). Each apartment sees its share, the property manager runs the portfolio, and the gateway keeps controlling on site, even without internet.

  • ZEV, vZEV and LEG on one model
  • Manufacturer-neutral
  • White label and API-first
Energy Manager app (German UI): building view of MFH Musterhof with solar, battery, heating, charging stations and grid
Whole building Every party sees the same balance
0 kW from the grid Solar and battery cover the demand

Other solutions optimise one house. Energy Manager runs the building: every party, every brand, every site in the portfolio.

ZEV Available
Since 2018 · one connection point

Building PV for all parties. One node per building, one unit per party, shared installations with an allocation key. Several buildings on one site are combined in an aggregate unit.

vZEV Model ready
Since 2025 · no private sub-meters

The grid operator measures, Energy Manager calculates. A vZEV is a node without a gateway; the grid operator's smart meters are virtual meters per apartment. We provide the import of the 15-minute data to customer requirements.

LEG Monitoring pilot
Since 2026 · over the public grid

Monitor local electricity communities. Members, totals and billing basis on the same structure. A ZEV can be one member of a LEG.

One building, several parties, one clear balance

A ZEV needs no special mode in Energy Manager. It is built from the same building blocks as any multi-family building: node, units, devices and roles.

  • Allocation key per apartment. Building PV is assigned in shares, for example 40 / 35 / 25 %. The server calculates on that basis every quarter of an hour.
  • Privacy built in. Residents see their own apartment and the building total, never their neighbours' values.
  • Permissions by role. Tenant, owner, viewer and support each have their own rights for the same devices.
  • Sites with several buildings. An aggregate unit combines the installations of several nodes; control still happens in each building.
Diagram: grid connection, building as default unit and three apartments with PV share Grid One meter Connection point Building = default unit ZEV total, 100 % of all shared installations PV Battery Heat pump Apartment 1 40 % PV share Meter · charging station Apartment 2 35 % PV share Meter · charging station Apartment 3 25 % PV share Meter · charging station
Diagram based on the demo building "MFH Musterhof": three apartments, shared PV, battery, heat pump and one charging station per apartment.

From meter reading to billing basis per party

For each community, Energy Manager provides the quantities per participant for each period: supply from the community, grid supply and feed-in. The internal price and the grid tariff are applied per metering interval, including peak and off-peak tariffs and dynamic tariffs. More on ZEV billing.

  • Time-based membership. Entry and exit dates apply per interval, so tenant changes are billed correctly.
  • vZEV without a gateway. The grid operator's smart meter data flows into the same balance.
  • Open to billing partners. The billing basis is available via the API, for example for export to a billing system.
Billing basis via API vZEV data import on request Billing document on request
Billing basis · ZEV MFH Musterhof October 2026 · 15 min
ParticipantCommunity kWhGrid kWhInternal CHFGrid CHF
Apartment 141226882.4077.72
Apartment 236130572.2088.45
Apartment 325819051.6055.10
Total1'031763206.20221.27

Example values. Rendering of the response from GET /communities/:id/billing-basis.

A switch instead of thresholds

Residents configure nothing. They select their apartment, see their consumption and switch the modes that the owner has enabled for them.

  • Apartment selection. Members of several units switch at the top right, grouped by building.
  • Clear effect. Each scene shows whether it affects the own apartment or the whole building.
  • Charging station in one tap. Sun, always some, charge target or now: all parameters behind it are already set.
  • Web and smartphone. The same interface in the browser, as a web app and in the partner app.
Resident app (German UI): overview of "Wohnung 1" (apartment 1) in MFH Musterhof with energy flow, solar power and electric car

Overview of apartment 1

Resident app (German UI): "Meine Betriebsmodi" (my operating modes) with the charging station on "Sonne" (sun), plus "Immer etwas" (always some), "Ladeziel" (charge target) and "Jetzt" (now)

Charging station: sun, always some, charge target

A ZEV is set up in five steps

Create the node, add the units, assign devices, set shares, invite residents. The screens come straight from the demo environment.

The cloud plans, the gateway executes

A learning PV model forecasts each installation individually. The optimiser plans battery, heat pump and charging stations against the forecast and the electricity price. The gateway in the building executes the plan, even when the internet connection fails.

  • Forecast per site. Physical PV model with irradiance data, retrained per installation with LightGBM.
  • Mathematical planning. Linear optimisation for the battery, mixed-integer optimisation for the heat pump, 48 hours ahead.
  • Dynamic tariffs. Fixed, peak/off-peak or dynamic, including via Swisspower and Tibber.
  • Data protection in-house. Training and forecasting run on our own infrastructure, without external AI services.
Energy Manager app, Forecast tab: PV forecast and electricity price per hour for the next 48 hours
From the app (Forecast tab, dark mode). When charging stations, battery or heat pump are released for optimisation, the planned time windows appear below. The plan is recalculated regularly.
48h

Planning horizon in hourly steps

15min

Tariff update interval

5s

Control cycle of the surplus controller on the gateway

30%

Savings on the heat pump with weather forecast

Weather forecast controls the flow temperature

The heat pump works with the 5-day weather forecast. The system adjusts the flow temperature automatically and shifts run times into cheaper or sunny hours.

  • 5-day weather forecast, updated every 15 minutes
  • Automatic optimisation of the flow temperature
  • Normal, boost and setback modes for residents
30 % savings
Today-2° | -10°Tomorrow0° | -7°Day after12° | 8°+3 days15° | 10°+4 days15° | 11°+10°0°-10°Rise expectedOutdoor temperature+35°+30°+25°without forecastlower in advanceFlow temperature

Your brand, your customers, our platform

Energy utilities, installation companies and property managers run Energy Manager under their own name. The customer relationship stays with the partner; the platform runs in the background.

1 dedicated database per partner

Example brands. Logo, colours, favicon and feature set are configurable per tenant.

Tenant with its own database

Each partner gets a physically separate database, its own users and its own subdomain.

Branding and feature set

Logo, colours and manifest per tenant. Widgets such as scenes, weather, alarms or the energy chart can be switched on and off individually.

Embedding in the partner app

Energy Manager runs as a WebView in an energy utility's app, with single sign-on via its identity provider.

Portfolio and integrator access

Property managers and installation companies manage many buildings from one login, with permissions per role and unit.

Everything the app can do is available via the API

The web app is itself a client of the REST API. Partners integrate the same endpoints into their systems, and AI agents get structured access via MCP. More on the API and the MCP server.

AI agent via MCPPilot
I'm leaving tomorrow at 7. Charge the car as cheaply as possible by then, sun first.
get_energy_now(unit: "Wohnung 2")
get_tariff_forecast(hours: 14) · get_weather_forecast()
There is no solar surplus this evening, and tomorrow morning will be cloudy. The off-peak tariff applies from 01:00 to 05:00. Suggestion: charging target 20 kWh by 07:00, grid power only in the cheapest hours.
preview_charge_target(20 kWh, 07:00, allow_grid: true)
Preview Charging station apartment 2 · replaces "Solar charging" · the building's grid import limit and battery reserve remain in place. Shall I set the charging target?
Yes.
set_charge_target(confirmation_id)
Charging target set: 20 kWh by 07:00, scheduled between 01:00 and 04:00 at the off-peak tariff. The app shows the progress under Control.
REST and webhooksAvailable
# Billing basis of a community
GET /communities/12/billing-basis
    ?from=2026-10-01&to=2026-10-31&resolution=15min

# Energy balance of an apartment
GET /energy-balance?unit_id=3

# Webhook every 15 minutes, HMAC-SHA256 signed
POST https://partner.example/hooks
X-Webhook-Event: ENERGY_BALANCE_SNAPSHOT
X-Webhook-Signature-256: t=1793...,v1=9f2c...
SCENE_ACTIVATEDALARM_TRIGGEREDTARIFF_LEVEL_CHANGEDCUSTOM_OVERPRODUCTION

Documented with OpenAPI

Every endpoint is described with a schema; the balance per apartment is available via unit_id.

10 webhook events

Signed, with up to 6 delivery attempts and a dead-letter queue.

OAuth and OIDC

Single sign-on per tenant, OAuth 2.1 with PKCE for AI assistants and personal tokens for your own scripts.

MCP for AI agents

18 tools with the permissions of the signed-in user. Users choose read or control access themselves; every change shows a preview first and is logged. Pilot.

Charging with solar power, without overloading the building connection

Eight wallboxes at 11 kW each add up to 88 kW on a connection that is often rated for 40 kW. The surplus controller on the gateway distributes the available power by priority every 5 seconds, so that one car charges quickly instead of three at the minimum.

Solar onlyCharges exclusively with PV surplus
Minimum & solarMinimum current, the rest from the sun
Solar & tariff-optimisedSun first, then cheap hours
Charging target80 % or 20 kWh by 07:00, cheapest hours first
Always chargeFull power within the limits
  • One charging station per apartment. In a ZEV, the charging power counts towards the apartment, the solar shares towards the community.
  • Safe on failure. If the gateway fails, the charging stations switch to a safe state.
  • Charging target in percent for every car. The state of charge comes from the manufacturer account (common brands), from the charging station over OCPP, or from an estimate based on the starting value and the energy charged. No password, no location.
Admin (German UI): safety limits with grid import limit and battery reserve, below them all ten operating mode scenes of the building
Use case · Outlook

Vehicle-to-grid: the car as the building's storage

Bidirectional charging stations turn parked cars into a building battery. In a ZEV, both sides benefit: the building from the storage, the vehicle owner from an attractive community price.

  1. Voluntary. The resident switches on "Car as storage" and sets their minimum range.
  2. Charge at midday. The car takes in PV surplus at the internal ZEV price.
  3. Return in the evening. During expensive evening hours it supplies the building and reduces grid supply for all parties.
  4. Fairly settled. The returned energy appears as a credit in the billing basis.
Diagram: energy flows from the PV into the car at midday and from the car into the building in the evening Building PV Apartments Car Midday: charge Evening: return

Plug in, detect devices, control

The Energy Manager gateway runs a lightweight Go agent directly in the building. It reads and writes via Modbus and REST, controls locally and executes the optimisation plan even when offline. More on the gateway.

01Switch on

Zero-touch: the gateway registers itself with a one-time token.

02Scan the QR code

The buyer claims the gateway into their account via a claim link.

03Detect devices

Network scan with SunSpec detection and fingerprints from the cloud.

04Confirm and control

Assign the device, enable modes. Updates arrive over the air.

Operation without internet

Available

No readings are lost

If the internet fails, the gateway keeps controlling and stores every reading locally. After the reconnect it delivers everything to the cloud, and the balance shows the outage without a gap.

  • Buffer on the gateway that survives restarts
  • A reading is deleted only after the cloud has confirmed it
  • After the reconnect, live values go first and the backlog follows
  • Meter readings for billing are never discarded
Planned

Local app in the building

Without internet the system stays visible and usable on the home network: the same app, served by the gateway at a local address.

  • Live values and energy flow without the cloud
  • Key controls: operating modes on and off, charging station on sun or now
  • Protected by a PIN; changes reach the cloud after the reconnect
Easy Install

Driver catalogue instead of programming

New device models arrive as driver maps from the catalogue, without a firmware update on the gateway. Control points follow a common vocabulary across all brands.

  • SunSpec devices are detected automatically
  • Modbus TCP and REST with generic executors
  • Local rules and surplus controller without the cloud
  • Local read API for building services

For installation companies that equip many buildings with standard devices.

Custom with Node-RED

Wire up your own devices and scenes freely

For special cases, Node-RED runs on the gateway. Flows connect devices without a driver map, combine signals and feed custom logic into the operating modes.

  • Low-code flows for special devices and protocols
  • "MQTT pass-through" mode hands setpoints to your own flows
  • Scenes across device boundaries
  • Arbitration prevents controllers from overriding each other

For integrators with special installations and their own automation logic.

SunSpec automatic HuaweiFroniusSolarEdge sonnenKebaSmartfoxDimplex

12 driver maps from 7 manufacturers in the catalogue, extended continuously. Hardware: Raspberry Pi for pilot fleets, Toradex i.MX93 as the series platform in preparation.

Real-time overview in plain language

Solar, battery, electric car, heat pump and grid live at a glance, plus the daily balance with self-consumption and self-sufficiency.

Energy balance of one day for apartment 1 (German UI): production, consumption and direct use with self-consumption and self-sufficiency
Installed devices of apartment 1 with current power (German UI)

Every device live

PV, charging station, apartment consumption and grid draw with current power, per apartment.

Weather forecast for today, tomorrow and the day after (German UI)

Weather and forecast

The weather of the next three days feeds the AI forecast for solar and consumption.

Electricity tariffs (German UI): grid supply with a dynamic tariff and the current price

Supply and feed-in kept apart

Dynamic supply tariff and feed-in tariff per apartment, with costs and revenue from both.

Light & dark mode

Light mode for daylight, dark mode for evening and night.

Desktop dashboard in dark mode
Mobile dashboard in dark mode

Multi-family buildings, ZEV, vZEV, LEG and AI explained briefly

What is a ZEV (self-consumption community, Zusammenschluss zum Eigenverbrauch)?

In a ZEV, the owners and tenants of a building or of neighbouring plots share the solar power from their own installation. Towards the grid operator, the ZEV acts as one end consumer with one connection point; the ZEV itself decides how the energy is split between the parties. The ZEV has existed since 2018. Energy Manager keeps the balance per apartment and provides the billing basis.

What is a vZEV (virtual ZEV)?

In a virtual ZEV, possible since 2025, the grid operator measures with its smart meters instead of private sub-meters. Energy Manager uses these 15-minute values as virtual meters per apartment and calculates the same balance and billing basis as in a ZEV. No gateway is needed for this.

What is a LEG (local electricity community, lokale Elektrizitätsgemeinschaft)?

Since 2026, producers and consumers in the same municipality and the same grid area can share electricity with each other over the public grid and pay a reduced grid usage tariff for it. Energy Manager shows the members, totals and billing basis of a LEG on the same structure as a ZEV; a ZEV can be one member of a LEG.

How does AI optimise energy management in a multi-family building?

The cloud uses weather data and past history to forecast solar production and consumption, and combines this with dynamic electricity tariffs. From this it plans when charging stations, battery and heat pump draw power. The gateway in the building executes the plan and controls the solar surplus on site.

Does the control keep working without internet?

Yes. Rules, operating modes and solar charging run on the gateway in the building. If the internet connection fails, it keeps controlling and buffers all readings; once reconnected, they appear in the balance without gaps. A local app to view and operate the system on the home network without internet is planned.

Which devices and manufacturers are supported?

Energy Manager is manufacturer-neutral. Inverters, batteries, charging stations, heat pumps and meters are connected via open interfaces such as Modbus, SunSpec and REST; the gateway detects known devices on the network by itself.

Who is Energy Manager for?

For property management companies and housing cooperatives that run ZEVs, vZEVs and a portfolio of buildings, for energy utilities that offer it as a white label under their own brand, and for installation companies that commission buildings.

Help in seconds, a technician only when needed

The AI assistant answers questions from manuals and installation data. If that is not enough, a specialist takes over by remote access or video call.

  • AI-assisted troubleshooting from your own manuals
  • Self-help checklists
  • Remote maintenance without a site visit
  • Video call with the service team when needed
AI instant help in the app

Your building in the demo environment

We show ZEV, resident app, admin interface and gateway on a multi-family building with three apartments.

  • Energy utilities. White label, SSO and embedding in your own app.
  • Property managers and housing cooperatives. ZEV, vZEV and portfolio from one login.
  • Installation companies. Gateway, driver catalogue and fleet templates.

Best of Swiss Apps 2023

“Top 9 out of 169 projects. The jury was particularly impressed by the functionality, the design, the integrated AI chat and the innovative video service.”