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

Classes

class  PwrCtrlDevice
 
class  PwrCtrlSwitch
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_PORT_RECV = "port_recv"
 
string CONF_PORT_SEND = "port_send"
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=5)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for ANEL PwrCtrl switches.

Function Documentation

◆ setup_platform()

None homeassistant.components.anel_pwrctrl.switch.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up PwrCtrl devices/switches.

Definition at line 41 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 23 of file switch.py.

◆ CONF_PORT_RECV

string homeassistant.components.anel_pwrctrl.switch.CONF_PORT_RECV = "port_recv"

Definition at line 25 of file switch.py.

◆ CONF_PORT_SEND

string homeassistant.components.anel_pwrctrl.switch.CONF_PORT_SEND = "port_send"

Definition at line 26 of file switch.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.anel_pwrctrl.switch.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=5)

Definition at line 28 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.anel_pwrctrl.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_PORT_RECV): cv.port,
4  vol.Required(CONF_PORT_SEND): cv.port,
5  vol.Required(CONF_USERNAME): cv.string,
6  vol.Required(CONF_PASSWORD): cv.string,
7  vol.Optional(CONF_HOST): cv.string,
8  }
9 )

Definition at line 30 of file switch.py.