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

Classes

class  RecSwitchSwitch
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DATA_RSN = "RSN"
 
string DEFAULT_NAME = "RecSwitch {0}"
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for Ankuoo RecSwitch MS6126 devices.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.recswitch.switch.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the device.

Definition at line 36 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.recswitch.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 21 of file switch.py.

◆ DATA_RSN

string homeassistant.components.recswitch.switch.DATA_RSN = "RSN"

Definition at line 25 of file switch.py.

◆ DEFAULT_NAME

string homeassistant.components.recswitch.switch.DEFAULT_NAME = "RecSwitch {0}"

Definition at line 23 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.recswitch.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_MAC): vol.All(cv.string, vol.Upper),
5  vol.Optional(CONF_NAME): cv.string,
6  }
7 )

Definition at line 27 of file switch.py.