Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lcn.services.VarRel Class Reference
Inheritance diagram for homeassistant.components.lcn.services.VarRel:
[legend]
Collaboration diagram for homeassistant.components.lcn.services.VarRel:
[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

Shift value of a variable, setpoint or threshold.

Definition at line 231 of file services.py.

Member Function Documentation

◆ async_call_service()

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

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

Definition at line 249 of file services.py.

Member Data Documentation

◆ schema

homeassistant.components.lcn.services.VarRel.schema
static
Initial value:
= LcnServiceCall.schema.extend(
{
vol.Required(CONF_VARIABLE): vol.All(
vol.Upper, vol.In(VARIABLES + SETPOINTS + THRESHOLDS)
),
vol.Optional(CONF_VALUE, default=0): vol.Coerce(float),
vol.Optional(CONF_UNIT_OF_MEASUREMENT, default="native"): vol.All(
vol.Upper, vol.In(VAR_UNITS)
),
vol.Optional(CONF_RELVARREF, default="current"): vol.All(
vol.Upper, vol.In(RELVARREF)
),
}
)

Definition at line 234 of file services.py.


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