Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lcn.services.SendKeys Class Reference
Inheritance diagram for homeassistant.components.lcn.services.SendKeys:
[legend]
Collaboration diagram for homeassistant.components.lcn.services.SendKeys:
[legend]

Public Member Functions

None async_call_service (self, ServiceCall service)
 
- Public Member Functions inherited from homeassistant.components.lcn.services.LcnServiceCall
None __init__ (self, HomeAssistant hass)
 
DeviceConnectionType get_device_connection (self, ServiceCall service)
 

Static Public Attributes

 schema
 
- Static Public Attributes inherited from homeassistant.components.lcn.services.LcnServiceCall
 schema = vol.Schema({vol.Required(CONF_ADDRESS): is_address})
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.lcn.services.LcnServiceCall
 hass
 

Detailed Description

Sends keys (which executes bound commands).

Definition at line 280 of file services.py.

Member Function Documentation

◆ async_call_service()

None homeassistant.components.lcn.services.SendKeys.async_call_service (   self,
ServiceCall  service 
)
Execute service call.

Reimplemented from homeassistant.components.lcn.services.LcnServiceCall.

Definition at line 298 of file services.py.

Member Data Documentation

◆ schema

homeassistant.components.lcn.services.SendKeys.schema
static
Initial value:
= LcnServiceCall.schema.extend(
{
vol.Required(CONF_KEYS): vol.All(
vol.Upper, cv.matches_regex(r"^([A-D][1-8])+$")
),
vol.Optional(CONF_STATE, default="hit"): vol.All(
vol.Upper, vol.In(SENDKEYCOMMANDS)
),
vol.Optional(CONF_TIME, default=0): cv.positive_int,
vol.Optional(CONF_TIME_UNIT, default="S"): vol.All(
vol.Upper, vol.In(TIME_UNITS)
),
}
)

Definition at line 283 of file services.py.


The documentation for this class was generated from the following file: