|  Developer
Updated on November 19, 2021

hub.info.changed

  • Informs connected interfaces about various changes that have occurred on the hub itself. This broadcast is only sent if a status has changed since the last broadcast. Currently, only battery status changes are reported by this broadcast type.
Edit
Field Type Required Description
battery Object If controller does not have battery support no battery section will be in result.
battery.status enum , , , ,
battery.stateOfCharge int Percent of available battery capacity
battery.remainingTime int Estimated remaining time in minutes to empty if discharging, or to full if charging
battery.health int Percent of current full capacity relative to original full capacity
Edit

Broadcast when battery starts charging

				
					{
    "id": "ui_broadcast",
    "msg_subclass": "hub.info.changed",
    "result": {
        "battery": {
            "status": "charging",
            "remainingTime": 369
        }
    }
}