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

Classes

class  SwitchmateEntity
 

Functions

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

Variables

string CONF_FLIP_ON_OFF = "flip_on_off"
 
string DEFAULT_NAME = "Switchmate"
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(minutes=30)
 

Detailed Description

Support for Switchmate.

Function Documentation

◆ setup_platform()

None homeassistant.components.switchmate.switch.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Perform the setup for Switchmate devices.

Definition at line 35 of file switch.py.

Variable Documentation

◆ CONF_FLIP_ON_OFF

string homeassistant.components.switchmate.switch.CONF_FLIP_ON_OFF = "flip_on_off"

Definition at line 21 of file switch.py.

◆ DEFAULT_NAME

string homeassistant.components.switchmate.switch.DEFAULT_NAME = "Switchmate"

Definition at line 22 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.switchmate.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_MAC): cv.string,
4  vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
5  vol.Optional(CONF_FLIP_ON_OFF, default=False): cv.boolean,
6  }
7 )

Definition at line 26 of file switch.py.

◆ SCAN_INTERVAL

homeassistant.components.switchmate.switch.SCAN_INTERVAL = timedelta(minutes=30)

Definition at line 24 of file switch.py.