get_battery_status()
- 1 Minute to read
get_battery_status()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
Get current battery status.
Reference
Arguments
None
Return
Type | Description |
---|---|
dict | Dictionary with all battery information. |
Usage example
battery_status = await self.status.get_battery_status()
self.log.info(battery_status)
Output
{ 'voltage': nan, 'temperature': nan, 'current': nan, 'charge': nan, 'capacity': nan, 'design_capacity': nan, 'percentage': 0.6, 'present': False, 'cell_voltage': array('f', [nan]), 'cell_temperature': array('f', [nan]), 'location': 'slot1', 'serial_number': 'sim01', 'health': <STATUS_BATTERY_HEALTH.UNKNOWN: 0>, 'status': <STATUS_BATTERY.DISCHARGING: 2>, 'technology': <STATUS_BATTERY_TECHNOLOGY.UNKNOWN: 0> }
Was this article helpful?