GET
/
v1.0.0
/
batteries
/
{batteryId}
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
  }
}

Authorizations

X-API-KEY
string
header
required

API key used for authorization and authentication.

Path Parameters

batteryId
string
required

Battery ID

Response

200
application/json
Successful operation

Object of battery response.

isOnline
boolean
required

Indicates if the battery is reachable trough the vendor system.

id
string
required

The ID of the battery.

userId
string
required

The ID of the user.

staticData
object
required

Object of static data of a home energy device.

lastUpdated
string

The timestamp of the last update of any variable of the battery.

chargeState
object

Object of charge state data of a battery.

locationId
string

The location ID of the battery.