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

Classes

class  AtenSwitch
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_AUTH_KEY = "auth_key"
 
string CONF_COMMUNITY = "community"
 
string CONF_PRIV_KEY = "priv_key"
 
string DEFAULT_COMMUNITY = "private"
 
string DEFAULT_PORT = "161"
 
string DEFAULT_USERNAME = "administrator"
 
 PLATFORM_SCHEMA
 

Detailed Description

The ATEN PE switch component.

Function Documentation

◆ async_setup_platform()

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

Definition at line 45 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 24 of file switch.py.

◆ CONF_AUTH_KEY

string homeassistant.components.aten_pe.switch.CONF_AUTH_KEY = "auth_key"

Definition at line 26 of file switch.py.

◆ CONF_COMMUNITY

string homeassistant.components.aten_pe.switch.CONF_COMMUNITY = "community"

Definition at line 27 of file switch.py.

◆ CONF_PRIV_KEY

string homeassistant.components.aten_pe.switch.CONF_PRIV_KEY = "priv_key"

Definition at line 28 of file switch.py.

◆ DEFAULT_COMMUNITY

string homeassistant.components.aten_pe.switch.DEFAULT_COMMUNITY = "private"

Definition at line 29 of file switch.py.

◆ DEFAULT_PORT

string homeassistant.components.aten_pe.switch.DEFAULT_PORT = "161"

Definition at line 30 of file switch.py.

◆ DEFAULT_USERNAME

string homeassistant.components.aten_pe.switch.DEFAULT_USERNAME = "administrator"

Definition at line 31 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.aten_pe.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
5  vol.Optional(CONF_COMMUNITY, default=DEFAULT_COMMUNITY): cv.string,
6  vol.Optional(CONF_USERNAME, default=DEFAULT_USERNAME): cv.string,
7  vol.Optional(CONF_AUTH_KEY): cv.string,
8  vol.Optional(CONF_PRIV_KEY): cv.string,
9  }
10 )

Definition at line 33 of file switch.py.