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

Classes

class  DeclarativeCharacteristicSwitch
 
class  DeclarativeSwitchEntityDescription
 
class  HomeKitFaucet
 
class  HomeKitSwitch
 
class  HomeKitValve
 

Functions

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

Variables

string ATTR_IN_USE = "in_use"
 
string ATTR_IS_CONFIGURED = "is_configured"
 
string ATTR_REMAINING_DURATION = "remaining_duration"
 
string OUTLET_IN_USE = "outlet_in_use"
 

Detailed Description

Support for Homekit switches.

Function Documentation

◆ async_setup_entry()

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

Definition at line 224 of file switch.py.

Variable Documentation

◆ ATTR_IN_USE

string homeassistant.components.homekit_controller.switch.ATTR_IN_USE = "in_use"

Definition at line 29 of file switch.py.

◆ ATTR_IS_CONFIGURED

string homeassistant.components.homekit_controller.switch.ATTR_IS_CONFIGURED = "is_configured"

Definition at line 30 of file switch.py.

◆ ATTR_REMAINING_DURATION

string homeassistant.components.homekit_controller.switch.ATTR_REMAINING_DURATION = "remaining_duration"

Definition at line 31 of file switch.py.

◆ OUTLET_IN_USE

string homeassistant.components.homekit_controller.switch.OUTLET_IN_USE = "outlet_in_use"

Definition at line 27 of file switch.py.