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

Namespaces

 binary_sensor
 
 const
 
 entity
 
 light
 
 sensor
 
 switch
 

Classes

class  CallRateDelayThrottle
 

Functions

bool setup (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_SEND_DELAY = "send_delay"
 
 CONFIG_SCHEMA
 
string DEFAULT_HOST = "127.0.0.1"
 
int DEFAULT_PORT = 5001
 
float DEFAULT_SEND_DELAY = 0.0
 
string DOMAIN = "pilight"
 
string EVENT = "pilight_received"
 
 RF_CODE_SCHEMA
 
string SERVICE_NAME = "send"
 

Detailed Description

Component to create an interface to a Pilight daemon.

Function Documentation

◆ setup()

bool homeassistant.components.pilight.setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the Pilight component.

Definition at line 67 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.pilight._LOGGER = logging.getLogger(__name__)
private

Definition at line 29 of file __init__.py.

◆ CONF_SEND_DELAY

string homeassistant.components.pilight.CONF_SEND_DELAY = "send_delay"

Definition at line 31 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.pilight.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  {
5  vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
6  vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
7  vol.Optional(CONF_WHITELIST, default={}): {cv.string: [cv.string]},
8  vol.Optional(CONF_SEND_DELAY, default=DEFAULT_SEND_DELAY): vol.Coerce(
9  float
10  ),
11  }
12  )
13  },
14  extra=vol.ALLOW_EXTRA,
15 )

Definition at line 50 of file __init__.py.

◆ DEFAULT_HOST

string homeassistant.components.pilight.DEFAULT_HOST = "127.0.0.1"

Definition at line 33 of file __init__.py.

◆ DEFAULT_PORT

int homeassistant.components.pilight.DEFAULT_PORT = 5001

Definition at line 34 of file __init__.py.

◆ DEFAULT_SEND_DELAY

float homeassistant.components.pilight.DEFAULT_SEND_DELAY = 0.0

Definition at line 35 of file __init__.py.

◆ DOMAIN

string homeassistant.components.pilight.DOMAIN = "pilight"

Definition at line 36 of file __init__.py.

◆ EVENT

string homeassistant.components.pilight.EVENT = "pilight_received"

Definition at line 38 of file __init__.py.

◆ RF_CODE_SCHEMA

homeassistant.components.pilight.RF_CODE_SCHEMA
Initial value:
1 = vol.Schema(
2  {vol.Required(CONF_PROTOCOL): vol.All(cv.ensure_list, [cv.string])},
3  extra=vol.ALLOW_EXTRA,
4 )

Definition at line 43 of file __init__.py.

◆ SERVICE_NAME

string homeassistant.components.pilight.SERVICE_NAME = "send"

Definition at line 48 of file __init__.py.