Skip to content

GridBox Binding ​

The Viessmann GridBox/E.ON Home Box is an energy management device which gathers information about produced and consumed electrical power from compatible energy meters, photovoltaic inverters, batteries, heat pumps, EV charging stations, etc., and steers the connected components to increase the self-consumption rate and efficiency of the system.

The Viessmann GridBox/E.ON Home Box is a variant of the gridX Gateway and uses the gridX Xenon cloud service to upload the fetched data and deliver the data to the GridBox app and web service. The measured data (energy production, consumption, etc.) cannot be accessed locally. However, thanks to the pioneer work in the unl0ck/viessmann-gridbox-connector repository, we can retrieve the data from the gridX cloud service using REST API calls. The API is documented at gridx.ai.

This binding polls the "live data" API endpoint to gather the available data from the GridBox. It creates a GridBox thing with the channels representing the data points of the live data API call.

For connection to the cloud service, account E-Mail and password used to connect to the GridBox web service, either Viessmann or E.ON are required. Authentication is handled by an OAuth call generating an ID token which is required as a bearer token for subsequent calls to the gridX API.

At the moment, only one API-"system" per account is supported by this binding. A "system" is the representation of a GridBox together with its connected appliances (PV inverter, heat pump etc.). The binding will use the first system ID retrieved by a call to the https://api.gridx.de/systems API. Also, only the live data API endpoint is supported by the binding, as it is the most interesting for openHAB use cases. There is another API endpoint for fetching aggregated measurement data which could be added in the future.

Only the Viessmann GridBox and E.ON Home Box variants are supported, other variants would need adaptions to the OAuth mechanism. To switch between Viessmann and E.ON authentication, set the "useEonAuthentication" parameter to true (for E.ON) or false (for Viessmann). The Viessmann service will be migrated to E.ON and is planned to be stopped after the December 31, 2025. After that date, only the E.ON connection type will work.

This binding is not endorsed or supported by Viessmann, E.ON or gridX. Arbitrary breaking changes to the API can happen at any time, resulting in this binding failing to retrieve the data.

Supported Things ​

The following thing can be created with the binding:

  • gridbox: A thing representing the GridBox, tied to an account of the Viessmann GridBox or E.ON Home Box.

Discovery ​

No support for auto-discovery at the moment.

Thing Configuration ​

The following configuration parameters are available on the GridBox thing:

gridbox Thing Configuration ​

NameTypeDescriptionDefaultRequiredAdvanced
emailtextE-Mail address used to log in to the GridBox APIN/Ayesno
passwordtextPassword to access the GridBox APIN/Ayesno
useEonAuthenticationbooleanUse the E.ON (true) or Viessmann (false) APItruenono
refreshIntervalintegerInterval the device is polled in seconds.60noyes

Channels ​

The following channels are supplied by the GridBox thing (descriptions taken from the API documentation):

ChannelTypeRead/WriteDescription
battery-capacityNumberRMaximum energy the battery can provide in Wh.
battery-nominal-capacityNumberR
battery-powerNumberRPower is the measured power used to charge/discharge the battery. Unit W, Meaning, Positive values indicate discharging. Negative values indicate charging.
battery-remaining-chargeNumberRRemaining Charge is the amount of energy left.
battery-state-of-chargeNumberRState of Charge indicates how full a battery is. Unit Percentage points 0.0-1.0.
battery-levelNumberRBattery level, ratio of remaining charge to capacity.
consumptionNumberRAdjusted power/energy of the system.
direct-consumptionNumberRPower/energy consumed through production directly.
direct-consumption-evNumberRPower/energy consumed by the EV through production directly.
direct-consumption-heat-pumpNumberRPower/energy consumed by the heat pump through production directly.
direct-consumption-heaterNumberRPower/energy consumed by the heater through production directly.
direct-consumption-householdNumberRPower/energy consumed by the household through production directly.
direct-consumption-rateNumberRRatio of direct consumption vs production (0.0-1.0).
ev-charging-station-powerNumberRMeasured power used to charge/discharge via EV station; positive values indicate charging, negative values indicate discharging.
heat-pump-powerNumberRAggregated measured power/energy for heat pumps.
photovoltaic-productionNumberRPhotovoltaic is the measured power/energy in front of the photovoltaic systems.
productionNumberRSum of all energy producing appliances (e.g. PV).
self-consumptionNumberRPower/Energy consumed through production and charged into battery.
self-consumption-rateNumberRRatio of self consumption vs production (0.0-1.0).
self-sufficiency-rateNumberRRatio of produced energy vs total consumed energy (0.0-1.0).
self-supplyNumberRPower/energy consumed through storage and production.
total-consumptionNumberRAdjusted power/energy of the system including heat pumps and EV charging stations.

Full Example ​

Thing Configuration Example ​

dsl
Thing gridbox:gridbox:901b4766e2 "GridBox" [email="abc@example.com",password="mypassword",refreshInterval=120]

Item Configuration ​

dsl
Number GridBox_PhotovoltaicProduction "PV Production [%.0f W]" {channel="gridbox:gridbox:901b4766e2:photovoltaicProduction"}