GET
/
v1.0.0
/
users
/
{userId}
/
batteries
/
{batteryId}
/
refresh
Refresh battery data for user
curl --request GET \
  --url https://api.energy-hub.io/v1.0.0/users/{userId}/batteries/{batteryId}/refresh \
  --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
}
}

Authorizations

X-API-KEY
string
header
required

API key used for authorization and authentication.

Path Parameters

userId
string
required

User ID

batteryId
string
required

Battery ID

Response

200
application/json

Successful operation

Object of battery response.