Version 2024-10-01
Released
Improved Inverter Statistics. Standardize location attributes across assets
New features
- HVACs: Report Unknownas 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 locationIdhas been moved tolocation.id
- Batteries: Added location.lastUpdated
- Inverters: Top level chargingLocationIdhas been moved tolocation.id
- Inverters: Added location.lastUpdated
- Hvacs: Top level locationIdhas been moved tolocation.id
- Hvacs: Added location.lastUpdated
- Chargers: Top level locationIdhas been moved tolocation.id
- Vehicle: Top level locationIdhas 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 errorandmessage. These are no longer included.typeanddetailshould be used instead.
- The contents of the typefield has changed. Specifically, the subdomain has changed fromdocs.enode.iotodevelopers.enode.com. For example,https://docs.enode.io/problems/bad-requestbecomeshttps://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, orvendorTypefields 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, andcurrentTemperaturehave been removed. Use their replacements under thetemperatureStateobject instead.
- Hvacs: Deprecated attribute capabilities.capableHoldTypeshas been removed. Instead of checking for the presence of the hold type in the array, usecapabilities.setFollowScheduleorcapabilities.setPermanentHoldinstead.
- Smart Vehicle Plan: Deprecated attribute externalStart. Instead, use thesmartOverridefield on the Smart Charge Status object.
- Smart Vehicle Plan: Deprecated attribute chargingLocationIdhas been removed. UselocationIdinstead.
The following deprecated endpoints have been removed:
| Endpoint | Description | 
|---|---|
| PUT /webhooks/firehose | Removed. Use /webhooksresources instead. | 
| DELETE /webhooks/firehose | Removed. Use /webhooksresources instead. | 
| POST /webhooks/firehose/test | Removed. Use /webhooksresources 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.