Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.homekit_controller.fan Namespace Reference

Classes

class  BaseHomeKitFan
 
class  HomeKitFanV1
 
class  HomeKitFanV2
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

dictionary DIRECTION_TO_HK
 
dictionary ENTITY_TYPES
 
dictionary HK_DIRECTION_TO_HA = {v: k for (k, v) in DIRECTION_TO_HK.items()}
 

Detailed Description

Support for Homekit fans.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.homekit_controller.fan.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Homekit fans.

Definition at line 211 of file fan.py.

Variable Documentation

◆ DIRECTION_TO_HK

dictionary homeassistant.components.homekit_controller.fan.DIRECTION_TO_HK
Initial value:
1 = {
2  DIRECTION_REVERSE: 1,
3  DIRECTION_FORWARD: 0,
4 }

Definition at line 32 of file fan.py.

◆ ENTITY_TYPES

dictionary homeassistant.components.homekit_controller.fan.ENTITY_TYPES
Initial value:
1 = {
2  ServicesTypes.FAN: HomeKitFanV1,
3  ServicesTypes.FAN_V2: HomeKitFanV2,
4  ServicesTypes.AIR_PURIFIER: HomeKitFanV2,
5 }

Definition at line 204 of file fan.py.

◆ HK_DIRECTION_TO_HA

dictionary homeassistant.components.homekit_controller.fan.HK_DIRECTION_TO_HA = {v: k for (k, v) in DIRECTION_TO_HK.items()}

Definition at line 36 of file fan.py.