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

Classes

class  EnvoyConsumptionCTEntity
 
class  EnvoyConsumptionCTPhaseEntity
 
class  EnvoyConsumptionEntity
 
class  EnvoyConsumptionPhaseEntity
 
class  EnvoyConsumptionSensorEntityDescription
 
class  EnvoyCTSensorEntityDescription
 
class  EnvoyEnchargeAggregateEntity
 
class  EnvoyEnchargeAggregateRequiredKeysMixin
 
class  EnvoyEnchargeAggregateSensorEntityDescription
 
class  EnvoyEnchargeEntity
 
class  EnvoyEnchargeInventoryEntity
 
class  EnvoyEnchargePowerEntity
 
class  EnvoyEnchargePowerRequiredKeysMixin
 
class  EnvoyEnchargePowerSensorEntityDescription
 
class  EnvoyEnchargeSensorEntityDescription
 
class  EnvoyEnpowerEntity
 
class  EnvoyEnpowerSensorEntityDescription
 
class  EnvoyInverterEntity
 
class  EnvoyInverterSensorEntityDescription
 
class  EnvoyNetConsumptionEntity
 
class  EnvoyNetConsumptionPhaseEntity
 
class  EnvoyProductionCTEntity
 
class  EnvoyProductionCTPhaseEntity
 
class  EnvoyProductionEntity
 
class  EnvoyProductionPhaseEntity
 
class  EnvoyProductionSensorEntityDescription
 
class  EnvoySensorBaseEntity
 
class  EnvoyStorageCTEntity
 
class  EnvoyStorageCTPhaseEntity
 
class  EnvoySystemSensorEntity
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary CONSUMPTION_PHASE_SENSORS
 
tuple CONSUMPTION_SENSORS
 
dictionary CT_NET_CONSUMPTION_PHASE_SENSORS
 
tuple CT_NET_CONSUMPTION_SENSORS
 
dictionary CT_PRODUCTION_PHASE_SENSORS
 
tuple CT_PRODUCTION_SENSORS
 
dictionary CT_STORAGE_PHASE_SENSORS
 
tuple CT_STORAGE_SENSORS
 
tuple ENCHARGE_AGGREGATE_SENSORS
 
tuple ENCHARGE_INVENTORY_SENSORS
 
tuple ENCHARGE_POWER_SENSORS
 
tuple ENPOWER_SENSORS
 
string ICON = "mdi:flash"
 
tuple INVERTER_SENSORS
 
string INVERTERS_KEY = "inverters"
 
string LAST_REPORTED_KEY = "last_reported"
 
dictionary NET_CONSUMPTION_PHASE_SENSORS
 
tuple NET_CONSUMPTION_SENSORS
 
dictionary PRODUCTION_PHASE_SENSORS
 
tuple PRODUCTION_SENSORS
 

Detailed Description

Support for Enphase Envoy solar energy monitor.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.enphase_envoy.sensor.async_setup_entry ( HomeAssistant  hass,
EnphaseConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up envoy sensor platform.

Definition at line 724 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.enphase_envoy.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 57 of file sensor.py.

◆ CONSUMPTION_PHASE_SENSORS

dictionary homeassistant.components.enphase_envoy.sensor.CONSUMPTION_PHASE_SENSORS
Initial value:
1 = {
2  (on_phase := PHASENAMES[phase]): [
3  replace(
4  sensor,
5  key=f"{sensor.key}_l{phase + 1}",
6  translation_key=f"{sensor.translation_key}_phase",
7  entity_registry_enabled_default=False,
8  on_phase=on_phase,
9  translation_placeholders={"phase_name": f"l{phase + 1}"},
10  )
11  for sensor in list(CONSUMPTION_SENSORS)
12  ]
13  for phase in range(3)
14 }

Definition at line 215 of file sensor.py.

◆ CONSUMPTION_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.CONSUMPTION_SENSORS

Definition at line 168 of file sensor.py.

◆ CT_NET_CONSUMPTION_PHASE_SENSORS

dictionary homeassistant.components.enphase_envoy.sensor.CT_NET_CONSUMPTION_PHASE_SENSORS
Initial value:
1 = {
2  (on_phase := PHASENAMES[phase]): [
3  replace(
4  sensor,
5  key=f"{sensor.key}_l{phase + 1}",
6  translation_key=f"{sensor.translation_key}_phase",
7  entity_registry_enabled_default=False,
8  on_phase=on_phase,
9  translation_placeholders={"phase_name": f"l{phase + 1}"},
10  )
11  for sensor in list(CT_NET_CONSUMPTION_SENSORS)
12  ]
13  for phase in range(3)
14 }

Definition at line 385 of file sensor.py.

◆ CT_NET_CONSUMPTION_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.CT_NET_CONSUMPTION_SENSORS

Definition at line 286 of file sensor.py.

◆ CT_PRODUCTION_PHASE_SENSORS

dictionary homeassistant.components.enphase_envoy.sensor.CT_PRODUCTION_PHASE_SENSORS
Initial value:
1 = {
2  (on_phase := PHASENAMES[phase]): [
3  replace(
4  sensor,
5  key=f"{sensor.key}_l{phase + 1}",
6  translation_key=f"{sensor.translation_key}_phase",
7  entity_registry_enabled_default=False,
8  on_phase=on_phase,
9  translation_placeholders={"phase_name": f"l{phase + 1}"},
10  )
11  for sensor in list(CT_PRODUCTION_SENSORS)
12  ]
13  for phase in range(3)
14 }

Definition at line 465 of file sensor.py.

◆ CT_PRODUCTION_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.CT_PRODUCTION_SENSORS

Definition at line 400 of file sensor.py.

◆ CT_STORAGE_PHASE_SENSORS

dictionary homeassistant.components.enphase_envoy.sensor.CT_STORAGE_PHASE_SENSORS
Initial value:
1 = {
2  (on_phase := PHASENAMES[phase]): [
3  replace(
4  sensor,
5  key=f"{sensor.key}_l{phase + 1}",
6  translation_key=f"{sensor.translation_key}_phase",
7  entity_registry_enabled_default=False,
8  on_phase=on_phase,
9  translation_placeholders={"phase_name": f"l{phase + 1}"},
10  )
11  for sensor in list(CT_STORAGE_SENSORS)
12  ]
13  for phase in range(3)
14 }

Definition at line 579 of file sensor.py.

◆ CT_STORAGE_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.CT_STORAGE_SENSORS

Definition at line 480 of file sensor.py.

◆ ENCHARGE_AGGREGATE_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.ENCHARGE_AGGREGATE_SENSORS

Definition at line 686 of file sensor.py.

◆ ENCHARGE_INVENTORY_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.ENCHARGE_INVENTORY_SENSORS
Initial value:
1 = (
2  EnvoyEnchargeSensorEntityDescription(
3  key="temperature",
4  native_unit_of_measurement=UnitOfTemperature.CELSIUS,
5  device_class=SensorDeviceClass.TEMPERATURE,
6  value_fn=attrgetter("temperature"),
7  ),
8  EnvoyEnchargeSensorEntityDescription(
9  key=LAST_REPORTED_KEY,
10  translation_key=LAST_REPORTED_KEY,
11  native_unit_of_measurement=None,
12  device_class=SensorDeviceClass.TIMESTAMP,
13  value_fn=lambda encharge: dt_util.utc_from_timestamp(encharge.last_report_date),
14  ),
15 )

Definition at line 614 of file sensor.py.

◆ ENCHARGE_POWER_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.ENCHARGE_POWER_SENSORS
Initial value:
1 = (
2  EnvoyEnchargePowerSensorEntityDescription(
3  key="soc",
4  native_unit_of_measurement=PERCENTAGE,
5  device_class=SensorDeviceClass.BATTERY,
6  value_fn=attrgetter("soc"),
7  ),
8  EnvoyEnchargePowerSensorEntityDescription(
9  key="apparent_power_mva",
10  native_unit_of_measurement=UnitOfApparentPower.VOLT_AMPERE,
11  device_class=SensorDeviceClass.APPARENT_POWER,
12  value_fn=lambda encharge: encharge.apparent_power_mva * 0.001,
13  ),
14  EnvoyEnchargePowerSensorEntityDescription(
15  key="real_power_mw",
16  native_unit_of_measurement=UnitOfPower.WATT,
17  device_class=SensorDeviceClass.POWER,
18  value_fn=lambda encharge: encharge.real_power_mw * 0.001,
19  ),
20 )

Definition at line 629 of file sensor.py.

◆ ENPOWER_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.ENPOWER_SENSORS
Initial value:
1 = (
2  EnvoyEnpowerSensorEntityDescription(
3  key="temperature",
4  native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
5  device_class=SensorDeviceClass.TEMPERATURE,
6  value_fn=attrgetter("temperature"),
7  ),
8  EnvoyEnpowerSensorEntityDescription(
9  key=LAST_REPORTED_KEY,
10  translation_key=LAST_REPORTED_KEY,
11  device_class=SensorDeviceClass.TIMESTAMP,
12  value_fn=lambda enpower: dt_util.utc_from_timestamp(enpower.last_report_date),
13  ),
14 )

Definition at line 658 of file sensor.py.

◆ ICON

string homeassistant.components.enphase_envoy.sensor.ICON = "mdi:flash"

Definition at line 56 of file sensor.py.

◆ INVERTER_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.INVERTER_SENSORS
Initial value:
1 = (
2  EnvoyInverterSensorEntityDescription(
3  key=INVERTERS_KEY,
4  name=None,
5  native_unit_of_measurement=UnitOfPower.WATT,
6  state_class=SensorStateClass.MEASUREMENT,
7  device_class=SensorDeviceClass.POWER,
8  value_fn=attrgetter("last_report_watts"),
9  ),
10  EnvoyInverterSensorEntityDescription(
11  key=LAST_REPORTED_KEY,
12  translation_key=LAST_REPORTED_KEY,
13  device_class=SensorDeviceClass.TIMESTAMP,
14  entity_registry_enabled_default=False,
15  value_fn=lambda inverter: dt_util.utc_from_timestamp(inverter.last_report_date),
16  ),
17 )

Definition at line 70 of file sensor.py.

◆ INVERTERS_KEY

string homeassistant.components.enphase_envoy.sensor.INVERTERS_KEY = "inverters"

Definition at line 59 of file sensor.py.

◆ LAST_REPORTED_KEY

string homeassistant.components.enphase_envoy.sensor.LAST_REPORTED_KEY = "last_reported"

Definition at line 60 of file sensor.py.

◆ NET_CONSUMPTION_PHASE_SENSORS

dictionary homeassistant.components.enphase_envoy.sensor.NET_CONSUMPTION_PHASE_SENSORS
Initial value:
1 = {
2  (on_phase := PHASENAMES[phase]): [
3  replace(
4  sensor,
5  key=f"{sensor.key}_l{phase + 1}",
6  translation_key=f"{sensor.translation_key}_phase",
7  entity_registry_enabled_default=False,
8  on_phase=on_phase,
9  translation_placeholders={"phase_name": f"l{phase + 1}"},
10  )
11  for sensor in list(NET_CONSUMPTION_SENSORS)
12  ]
13  for phase in range(3)
14 }

Definition at line 259 of file sensor.py.

◆ NET_CONSUMPTION_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.NET_CONSUMPTION_SENSORS
Initial value:
1 = (
2  EnvoyConsumptionSensorEntityDescription(
3  key="balanced_net_consumption",
4  translation_key="balanced_net_consumption",
5  entity_registry_enabled_default=False,
6  native_unit_of_measurement=UnitOfPower.WATT,
7  state_class=SensorStateClass.MEASUREMENT,
8  device_class=SensorDeviceClass.POWER,
9  suggested_unit_of_measurement=UnitOfPower.KILO_WATT,
10  suggested_display_precision=3,
11  value_fn=attrgetter("watts_now"),
12  on_phase=None,
13  ),
14  EnvoyConsumptionSensorEntityDescription(
15  key="lifetime_balanced_net_consumption",
16  translation_key="lifetime_balanced_net_consumption",
17  entity_registry_enabled_default=False,
18  native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
19  state_class=SensorStateClass.TOTAL,
20  device_class=SensorDeviceClass.ENERGY,
21  suggested_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
22  suggested_display_precision=3,
23  value_fn=attrgetter("watt_hours_lifetime"),
24  on_phase=None,
25  ),
26 )

Definition at line 231 of file sensor.py.

◆ PRODUCTION_PHASE_SENSORS

dictionary homeassistant.components.enphase_envoy.sensor.PRODUCTION_PHASE_SENSORS
Initial value:
1 = {
2  (on_phase := PHASENAMES[phase]): [
3  replace(
4  sensor,
5  key=f"{sensor.key}_l{phase + 1}",
6  translation_key=f"{sensor.translation_key}_phase",
7  entity_registry_enabled_default=False,
8  on_phase=on_phase,
9  translation_placeholders={"phase_name": f"l{phase + 1}"},
10  )
11  for sensor in list(PRODUCTION_SENSORS)
12  ]
13  for phase in range(3)
14 }

Definition at line 144 of file sensor.py.

◆ PRODUCTION_SENSORS

tuple homeassistant.components.enphase_envoy.sensor.PRODUCTION_SENSORS

Definition at line 97 of file sensor.py.