Statistics
Statistics allow you to retrieve time series and aggregated data about devices as they consume and produce electricity.
It’s important to be aware that different devices have slightly different ways of delivering statistics. This guide will help you understand these differences and assist you in making a successful integration.
Statistics are supported for the following entities:
Statistics type | Asset type |
---|---|
Consumption statistics | vehicle , charger , hvac |
Production statistics | inverter |
Copy linkConsumption
There are two different ways for reading statistics data:
- Time bucketsAPI give power consumption over a period of time, binned into buckets of a chosen resolution.
- SessionsAPI give power consumption binned into sessions. A session is defined by at least two consecutive data points from the device showing consumption.
The choice of which method to use is very dependent on your use case. If you wish to show aggregated statistics for a whole year, or month, it would be wise to use the time buckets functionality. Alternatively, if you want to show individual consumption sessions, then the sessions endpoint should be used.
Copy linkProduction
Since the 2024-10-01
API version, Enode supports a single endpoint for fetching statistics for inverters, which is currently the only supported device type for production data. (API versions before 2024-10-01
have two endpoints, both deprecated.)
This single inverter statisticsAPI endpoint will deliver statistics for devices since they were linked to Enode. And where available, we provide the same statistics for a device as the vendor themselves do.
Copy linkHistorical production statistics
Statistics from before linking will also be available for most devices. By default, historical statistics will be available for the following time frames and resolutions:
Linking date | Time frame | Resolutions available |
---|---|---|
≥ 2024-10-01 | Since 30 days prior to linking day | QUARTER_HOUR |