curl --request GET \
--url https://api.energy-hub.io/v1.0.0/batteries/{batteryId} \
--header 'X-API-KEY: <api-key>'
{
"lastUpdated": "2023-11-07T05:31:56Z",
"chargeState": {
"mode": "AUTO",
"chargeRate": 6.512,
"lastUpdated": "2023-11-07T05:31:56Z",
"stateOfCharge": 72.25,
"chargeLimitMin": 20.25,
"chargeLimitMax": 80.25,
"maxChargeRate": 6,
"maxDischargeRate": 6,
"chargingState": "CHARGING"
},
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isOnline": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9",
"staticData": {
"lastUpdated": "2023-11-07T05:31:56Z",
"vendor": "FRONIUS",
"name": "My device",
"siteName": "My Home",
"model": "Charge",
"batteryCapacity": 12.5
}
}
Returns general data of a single battery.
curl --request GET \
--url https://api.energy-hub.io/v1.0.0/batteries/{batteryId} \
--header 'X-API-KEY: <api-key>'
{
"lastUpdated": "2023-11-07T05:31:56Z",
"chargeState": {
"mode": "AUTO",
"chargeRate": 6.512,
"lastUpdated": "2023-11-07T05:31:56Z",
"stateOfCharge": 72.25,
"chargeLimitMin": 20.25,
"chargeLimitMax": 80.25,
"maxChargeRate": 6,
"maxDischargeRate": 6,
"chargingState": "CHARGING"
},
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isOnline": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9",
"staticData": {
"lastUpdated": "2023-11-07T05:31:56Z",
"vendor": "FRONIUS",
"name": "My device",
"siteName": "My Home",
"model": "Charge",
"batteryCapacity": 12.5
}
}
API key used for authorization and authentication.
Battery ID
Successful operation
Object of battery response.