mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
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:
@@ -25,4 +25,5 @@ HOMEKIT_ACCESSORY_DISPATCH = {
|
||||
"humidity": "sensor",
|
||||
"light": "sensor",
|
||||
"temperature": "sensor",
|
||||
"battery": "sensor",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user