48: Power Profile
See how much power is or has been used by the device, as well as current power usage and if the device is charging.
Header
| Field | Name | Description | Type |
|---|---|---|---|
| 5 | Method | Request a service to be perform an action Possible values:
| uint8 |
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 3 | Total power | Total power used, since a point in time decided by the method used. For messages from a SUBSCRIBE, this is the mAH used since the subscription was started For a GET response, this is the mAH used since the device was turned on | float32 | mAh |
| 4 | Current | Instantaneous Current power usage | float32 | mA |
| 5 | Charging | Is the device currently charging | bool |
Examples
Get request
📡 Real example from Generate tool on 2025-10-14Created using the generate tool, this was tested against an RH2 device, sent from Toit.
Get response
📡 Real example from RH2 P1 v2296 on 2025-10-14Response to the above GET request, captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor.
Subscription Request
📡 Real example from Generate tool on 2025-10-14Created using the generate tool, this was tested against an RH2 device, sent from Toit.
Subscription ACK
📡 Real example from RH2 P1 v2296 on 2025-10-14Response to the above SUBSCRIBE request, captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor.
Subscription update, while on charge
📡 Real example from RH2 P1 v2296 on 2025-10-14Response to the above subscription, captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor.
Code
For convenience, the following constants can be used to reference this message type.