- Overview
- Important concepts
- Authentication
- Enrollment process
- End-user app design
- Monitoring / Telemetry
- Control
- Change log
- Mobile App API
- Cloud API
- Sites
- Commissioning
- Sessions
- Commands
- Programs
- Telemetry
- Webhooks
Report Battery Telemetry
Cloud Mock
https://mock.apidog.com/m1/479670-0-default
Cloud Mock
https://mock.apidog.com/m1/479670-0-default
POST
/v1/telemetry/BATTERY
In case the device was online, all telemetry items must be supplied and must not be null.
The response will list the status of saving each data point, using the same index each item had in the request.
If an item's status is
FAILED
, please correct the issue and resend it.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
start_time
string <date-time>
deprecated
duration_s
integer
deprecated
telemetry
array[object (Telemetry) {20}]
required
start_time
string <date-time>
required
duration_s
number
required
device_id
string
required
last_is_online
boolean | null
optional
last_mode
optional
battery_last_power_charge_w
number | null
optional
>= 0
battery_last_power_discharge_w
number | null
optional
>= 0
battery_total_energy_charge_wh
number | null
optional
>= 0
battery_total_energy_discharge_wh
number | null
optional
>= 0
battery_last_stored_energy_wh
number | null
optional
>= 0
battery_last_capacity_energy_wh
number | null
optional
>= 0
battery_last_backup_reserve_percentage
number | null
deprecated
>= 0<= 100
battery_last_state_of_charge_percentage
number | null
optional
>= 0<= 100
battery_last_state_of_health_percentage
number | null
optional
>= 0<= 100
last_is_grid_online
boolean | null
optional
home_total_energy_wh
number | null
optional
>= 0
home_last_power_w
number | null
optional
>= 0
solar_total_energy_wh
number | null
optional
>= 0
solar_last_power_w
number | null
optional
>= 0
oem_raw_data
object
optional
Example
{
"start_time": "2019-08-24T14:15:22Z",
"duration_s": 0,
"telemetry": [
{
"start_time": "2019-08-24T14:15:22Z",
"duration_s": 0,
"device_id": "string",
"last_is_online": true,
"last_mode": "BACKUP",
"battery_last_power_charge_w": 0,
"battery_last_power_discharge_w": 0,
"battery_total_energy_charge_wh": 0,
"battery_total_energy_discharge_wh": 0,
"battery_last_stored_energy_wh": 0,
"battery_last_capacity_energy_wh": 0,
"battery_last_backup_reserve_percentage": 0,
"battery_last_state_of_charge_percentage": 0,
"battery_last_state_of_health_percentage": 0,
"last_is_grid_online": true,
"home_total_energy_wh": 0,
"home_last_power_w": 0,
"solar_total_energy_wh": 0,
"solar_last_power_w": 0,
"oem_raw_data": {
"oem_identifier": "string"
}
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mock.apidog.com/m1/479670-0-default/v1/telemetry/BATTERY' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_time": "2019-08-24T14:15:22Z",
"duration_s": 0,
"telemetry": [
{
"start_time": "2019-08-24T14:15:22Z",
"duration_s": 0,
"device_id": "string",
"last_is_online": true,
"last_mode": "BACKUP",
"battery_last_power_charge_w": 0,
"battery_last_power_discharge_w": 0,
"battery_total_energy_charge_wh": 0,
"battery_total_energy_discharge_wh": 0,
"battery_last_stored_energy_wh": 0,
"battery_last_capacity_energy_wh": 0,
"battery_last_backup_reserve_percentage": 0,
"battery_last_state_of_charge_percentage": 0,
"battery_last_state_of_health_percentage": 0,
"last_is_grid_online": true,
"home_total_energy_wh": 0,
"home_last_power_w": 0,
"solar_total_energy_wh": 0,
"solar_last_power_w": 0,
"oem_raw_data": {
"oem_identifier": "string"
}
}
]
}'
Responses
🟢200OK
application/json
Body
array of:
status
enum<string>
required
Allowed values:
FAILEDOK
message
string | null
required
Example
[
{
"status": "FAILED",
"message": "string"
}
]
🟠400Invalid input
🟠404Record not found