Power

Power

⚠️
NOTE: This part of the API is still under construction, yet the interface as described below is expected to be somewhat stable.

Livy have a battery and continue to operate for up to 4 hours, depending on the services running on the device.

Powered

Topic

Subscribe to: api_client/<client_name>/<location_id>/<device_id>/powered

Response

Not retained
QoS: 1

{
  "powered": true,
  "timestamp": "2024-11-12T15:35:39.999457Z"
}
  • powered: “true” if the device is plugged in, “false” if it is running on battery
  • timestamp: Time of measurement

Battery

Topic

Subscribe to: api_client/<client_name>/<location_id>/<device_id>/battery

Response

Not retained
QoS: 1

{
  "battery": 0.9700000286102295,
  "timestamp": "2024-11-12T15:35:39.999457Z"
}
  • battery: Battery level (0.0 - 1.0)
  • timestamp: Time of measurement