Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lcn.sensor Namespace Reference

Classes

class  LcnLedLogicSensor
 
class  LcnVariableSensor
 

Functions

None add_lcn_entities (ConfigEntry config_entry, AddEntitiesCallback async_add_entities, Iterable[ConfigType] entity_configs)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

dictionary DEVICE_CLASS_MAPPING
 

Detailed Description

Support for LCN sensors.

Function Documentation

◆ add_lcn_entities()

None homeassistant.components.lcn.sensor.add_lcn_entities ( ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities,
Iterable[ConfigType]  entity_configs 
)
Add entities for this domain.

Definition at line 51 of file sensor.py.

◆ async_setup_entry()

None homeassistant.components.lcn.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up LCN switch entities from a config entry.

Definition at line 69 of file sensor.py.

Variable Documentation

◆ DEVICE_CLASS_MAPPING

dictionary homeassistant.components.lcn.sensor.DEVICE_CLASS_MAPPING
Initial value:
1 = {
2  pypck.lcn_defs.VarUnit.CELSIUS: SensorDeviceClass.TEMPERATURE,
3  pypck.lcn_defs.VarUnit.KELVIN: SensorDeviceClass.TEMPERATURE,
4  pypck.lcn_defs.VarUnit.FAHRENHEIT: SensorDeviceClass.TEMPERATURE,
5  pypck.lcn_defs.VarUnit.LUX_T: SensorDeviceClass.ILLUMINANCE,
6  pypck.lcn_defs.VarUnit.LUX_I: SensorDeviceClass.ILLUMINANCE,
7  pypck.lcn_defs.VarUnit.METERPERSECOND: SensorDeviceClass.SPEED,
8  pypck.lcn_defs.VarUnit.VOLT: SensorDeviceClass.VOLTAGE,
9  pypck.lcn_defs.VarUnit.AMPERE: SensorDeviceClass.CURRENT,
10 }

Definition at line 39 of file sensor.py.