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:
Jc2k 2019-08-31 13:18:18 +01:00 committed by GitHub
parent 7b05ede297
commit 944b544b2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 2430 additions and 5 deletions

View file

@ -25,4 +25,5 @@ HOMEKIT_ACCESSORY_DISPATCH = {
"humidity": "sensor",
"light": "sensor",
"temperature": "sensor",
"battery": "sensor",
}