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

Classes

class  EDL21
 
class  EDL21Entity
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60)
 
dictionary SENSOR_UNIT_MAPPING
 
dictionary SENSORS = {desc.key: desc for desc in SENSOR_TYPES}
 

Detailed Description

Support for EDL21 Smart Meters.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.edl21.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the EDL21 sensor.

Definition at line 289 of file sensor.py.

Variable Documentation

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.edl21.sensor.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60)

Definition at line 44 of file sensor.py.

◆ SENSOR_UNIT_MAPPING

dictionary homeassistant.components.edl21.sensor.SENSOR_UNIT_MAPPING
Initial value:
1 = {
2  "Wh": UnitOfEnergy.WATT_HOUR,
3  "kWh": UnitOfEnergy.KILO_WATT_HOUR,
4  "W": UnitOfPower.WATT,
5  "A": UnitOfElectricCurrent.AMPERE,
6  "V": UnitOfElectricPotential.VOLT,
7  "°": DEGREE,
8  "Hz": UnitOfFrequency.HERTZ,
9 }

Definition at line 278 of file sensor.py.

◆ SENSORS

dictionary homeassistant.components.edl21.sensor.SENSORS = {desc.key: desc for desc in SENSOR_TYPES}

Definition at line 276 of file sensor.py.