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

Classes

class  EagleSensor
 

Functions

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

Variables

tuple SENSORS
 

Detailed Description

Support for the Rainforest Eagle energy monitor.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.rainforest_eagle.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up a config entry.

Definition at line 47 of file sensor.py.

Variable Documentation

◆ SENSORS

tuple homeassistant.components.rainforest_eagle.sensor.SENSORS
Initial value:
1 = (
2  SensorEntityDescription(
3  key="zigbee:InstantaneousDemand",
4  translation_key="power_demand",
5  native_unit_of_measurement=UnitOfPower.KILO_WATT,
6  device_class=SensorDeviceClass.POWER,
7  state_class=SensorStateClass.MEASUREMENT,
8  ),
9  SensorEntityDescription(
10  key="zigbee:CurrentSummationDelivered",
11  translation_key="total_energy_delivered",
12  native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
13  device_class=SensorDeviceClass.ENERGY,
14  state_class=SensorStateClass.TOTAL_INCREASING,
15  ),
16  SensorEntityDescription(
17  key="zigbee:CurrentSummationReceived",
18  translation_key="total_energy_received",
19  native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
20  device_class=SensorDeviceClass.ENERGY,
21  state_class=SensorStateClass.TOTAL_INCREASING,
22  ),
23 )

Definition at line 22 of file sensor.py.