Add support for Homekit accessory battery sensors (#26210)
* Add simple battery sensor * Add test for battery sensor based on a real device * Vary icon based on battery state * Add test for battery sensory * Read other battery related states from accessory * Add a device class to the battery sensor * Respect the low battery flag from the device
This commit is contained in:
parent
7b05ede297
commit
944b544b2e
5 changed files with 2430 additions and 5 deletions
|
@ -25,4 +25,5 @@ HOMEKIT_ACCESSORY_DISPATCH = {
|
|||
"humidity": "sensor",
|
||||
"light": "sensor",
|
||||
"temperature": "sensor",
|
||||
"battery": "sensor",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue