Version 2024-10-01
Released
Improved Inverter Statistics. Standardize location attributes across assets
New features
- HVACs: Report
Unknown
as mode if the mode is currently not available or not supported. - Meters: Expose
location.id
&location.lastUpdated
. - Inverters: Expose the serial number under
information.sn
. - Inverters: Improvements to Inverter Statistics, stats are now collected directly from vendor APIs.
Endpoint | Description |
---|---|
GET /inverters/{inverterId}/statistics | Returns statistics about power production for the given inverter in the form of a time series, collected from vendor APIs. Note: Existing inverters linked to Enode are currently being migrated to be compatible with this new endpoint. Until this is complete, you may see empty responses for inverters linked on an older API version. |
Breaking changes
Enums no longer versioned:
- Adding values to an existing enum is no longer considered a breaking change.
Every asset now has a location
object with at least an id and a timestamp. The top-level locationId
has been moved under this object. Specifically, the following has changed:
- Batteries: Top level
locationId
has been moved tolocation.id
- Batteries: Added
location.lastUpdated
- Inverters: Top level
chargingLocationId
has been moved tolocation.id
- Inverters: Added
location.lastUpdated
- Hvacs: Top level
locationId
has been moved tolocation.id
- Hvacs: Added
location.lastUpdated
- Chargers: Top level
locationId
has been moved tolocation.id
- Vehicle: Top level
locationId
has been moved tolocation.id
The following changes have been made to problem responses. See this documentationAPI for more details.
- For some problem responses, the API would return duplicated fields
error
andmessage
. These are no longer included.type
anddetail
should be used instead. - The contents of the
type
field has changed. Specifically, the subdomain has changed fromdocs.enode.io
todevelopers.enode.com
. For example,https://docs.enode.io/problems/bad-request
becomeshttps://developers.enode.com/api/problems/bad-request
.
Interventions may now be brand agnostic. We recommend styling your UI using the domain
attribute, and filling in brand-specific information if present. Specifically:
- The
vendor
,brand
, orvendorType
fields may be null. - As indicated by the openapi schema, all three fields will be present or null.
The following deprecated fields have been removed:
- Hvacs: Deprecated attributes
mode
,heatSetpoint
,coolSetpoint
,holdType
,isActive
, andcurrentTemperature
have been removed. Use their replacements under thetemperatureState
object instead. - Hvacs: Deprecated attribute
capabilities.capableHoldTypes
has been removed. Instead of checking for the presence of the hold type in the array, usecapabilities.setFollowSchedule
orcapabilities.setPermanentHold
instead. - Smart Vehicle Plan: Deprecated attribute
externalStart
. Instead, use thesmartOverride
field on the Smart Charge Status object. - Smart Vehicle Plan: Deprecated attribute
chargingLocationId
has been removed. UselocationId
instead.
The following deprecated endpoints have been removed:
Endpoint | Description |
---|---|
PUT /webhooks/firehose | Removed. Use /webhooks resources instead. |
DELETE /webhooks/firehose | Removed. Use /webhooks resources instead. |
POST /webhooks/firehose/test | Removed. Use /webhooks resources instead. |
The following endpoints have been deprecated:
Endpoint | Description |
---|---|
GET /users/{userId}/statistics/production | Deprecated. Use the new Inverter Statistics endpoint. |
GET /users/{userId}/vendor-statistics | Deprecated. Use the new Inverter Statistics endpoint. |
Pass 2024-10-01
as your version header to use this new version.