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

Classes

class  PilightSwitch
 

Functions

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

Variables

 PLATFORM_SCHEMA
 

Detailed Description

Support for switching devices via Pilight to on and off.

Function Documentation

◆ setup_platform()

None homeassistant.components.pilight.switch.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Pilight platform.

Definition at line 24 of file switch.py.

Variable Documentation

◆ PLATFORM_SCHEMA

homeassistant.components.pilight.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_SWITCHES): vol.Schema({cv.string: SWITCHES_SCHEMA})}
3 )

Definition at line 19 of file switch.py.