mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 18:06:29 +00:00
Define battery_charging attribute (#25)
This commit is contained in:
parent
ae76a2f5f7
commit
05de2a2b32
@ -82,6 +82,7 @@ The following `device_state_attributes` are considered standard and should follo
|
||||
|
||||
| Name | Type | Unit | Constant | Description
|
||||
| ---- | ---- | ---- | -------- | -----------
|
||||
| battery_charging | boolean | N/A | `ATTR_BATTERY_CHARGING` | Battery charging status of the entity, shown as a boolean `true` or `false`. If charging is not supported, then this attribute should not be created.
|
||||
| battery_level | integer | % | `ATTR_BATTERY_LEVEL` | Battery level of the entity, shown as an integer percentage between 0-100.
|
||||
|
||||
## Lifecycle hooks
|
||||
|
Loading…
x
Reference in New Issue
Block a user