Support for Homekit Controller climate devices (#15057)
* Support for Homekit Controller climate devices * Handle stale state when operating mode off
This commit is contained in:
1 parent
73034c933e
commit
038168c417
4 files changed
+140
-10
No files matched your search
@@ -23,6 +23,7 @@ HOMEKIT_DIR = '.homekit'
|
||||
HOMEKIT_ACCESSORY_DISPATCH = {
|
||||
'lightbulb': 'light',
|
||||
'outlet': 'switch',
|
||||
'thermostat': 'climate',
|
||||
}
|
||||
|
||||
KNOWN_ACCESSORIES = "{}-accessories".format(DOMAIN)
|
||||
@@ -219,6 +220,11 @@ class HomeKitEntity(Entity):
|
||||
"""Synchronise a HomeKit device state with Home Assistant."""
|
||||
raise NotImplementedError
|
||||
|
||||
def put_characteristics(self, characteristics):
|
||||
"""Control a HomeKit device state from Home Assistant."""
|
||||
body = json.dumps({'characteristics': characteristics})
|
||||
self._securecon.put('/characteristics', body)
|
||||
|
||||
|
||||
# pylint: too-many-function-args
|
||||
def setup(hass, config):
|
||||
|
||||
Reference in new issue
Block a user