Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.homekit.accessories Namespace Reference

Classes

class  HomeAccessory
 
class  HomeBridge
 
class  HomeDriver
 
class  HomeIIDManager
 

Functions

HomeAccessory|None get_accessory (HomeAssistant hass, HomeDriver driver, State state, int|None aid, dict config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple RELOAD_ON_CHANGE_ATTRS
 
dictionary SWITCH_TYPES
 

Detailed Description

Extend the basic Accessory and Bridge functions.

Function Documentation

◆ get_accessory()

HomeAccessory | None homeassistant.components.homekit.accessories.get_accessory ( HomeAssistant  hass,
HomeDriver  driver,
State  state,
int | None  aid,
dict   config 
)
Take state and return an accessory object if supported.

Definition at line 123 of file accessories.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.homekit.accessories._LOGGER = logging.getLogger(__name__)
private

Definition at line 105 of file accessories.py.

◆ RELOAD_ON_CHANGE_ATTRS

tuple homeassistant.components.homekit.accessories.RELOAD_ON_CHANGE_ATTRS
Initial value:
1 = (
2  ATTR_SUPPORTED_FEATURES,
3  ATTR_DEVICE_CLASS,
4  ATTR_UNIT_OF_MEASUREMENT,
5 )

Definition at line 116 of file accessories.py.

◆ SWITCH_TYPES

dictionary homeassistant.components.homekit.accessories.SWITCH_TYPES
Initial value:
1 = {
2  TYPE_FAUCET: "ValveSwitch",
3  TYPE_OUTLET: "Outlet",
4  TYPE_SHOWER: "ValveSwitch",
5  TYPE_SPRINKLER: "ValveSwitch",
6  TYPE_SWITCH: "Switch",
7  TYPE_VALVE: "ValveSwitch",
8 }

Definition at line 106 of file accessories.py.