Retrieve a device state
Retrieves the latest submitted device state.
Authorizations
Authenticate with bearer you obtained from authentication endpoint.
Path Parameters
Flatpeak Device ID.
Response
Example response
Flatpeak location_id where device is located.
^[a-z]{2,4}_[A-Za-z0-9]+$"loc_641b90b758fb8e6293716e40"
Flatpeak device state record ID.
^[a-z]{2,4}_[A-Za-z0-9]+$"dsr_6a284b7596d3f2b722544e70"
Object type.
device_state "device_state"
Flatpeak Account ID.
^[a-z]{2,4}_[A-Za-z0-9]+$"acc_661677911f2197045e6cf1b1"
Time the measurement was recorded, in RFC3339 format.
"2022-02-01T10:30:00Z"
Current battery state of charge as a percentage from 0 to 100.
34.2
Time when this object was created. In UTC.
"2022-02-01T10:33:00Z"
Optional unique identifier for the telemetry record, used for idempotency and reconciliation.
"MET1234567890"
Target battery state of charge as a percentage from 0 to 100.
80
Current battery power in kilowatts. Positive values indicate charging, negative values indicate discharging.
-3.4
Estimated usable energy currently available in the battery, in kilowatt-hours.
8.3
Percentage of battery capacity reserved for backup and unavailable for optimisation or dispatch.
20

