Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.x10.light Namespace Reference

Classes

class  X10Light
 

Functions

def get_unit_status (code)
 
None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 
def x10_command (command)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for X10 lights.

Function Documentation

◆ get_unit_status()

def homeassistant.components.x10.light.get_unit_status (   code)
Get on/off status for given unit.

Definition at line 40 of file light.py.

◆ setup_platform()

None homeassistant.components.x10.light.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the x10 Light platform.

Definition at line 46 of file light.py.

◆ x10_command()

def homeassistant.components.x10.light.x10_command (   command)
Execute X10 command and check output.

Definition at line 35 of file light.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.x10.light._LOGGER = logging.getLogger(__name__)
private

Definition at line 23 of file light.py.

◆ PLATFORM_SCHEMA

homeassistant.components.x10.light.PLATFORM_SCHEMA
Initial value:
1 = LIGHT_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_DEVICES): vol.All(
4  cv.ensure_list,
5  [{vol.Required(CONF_ID): cv.string, vol.Required(CONF_NAME): cv.string}],
6  )
7  }
8 )

Definition at line 25 of file light.py.