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

Classes

class  EnvoyBaseBinarySensorEntity
 
class  EnvoyEnchargeBinarySensorEntity
 
class  EnvoyEnchargeBinarySensorEntityDescription
 
class  EnvoyEnpowerBinarySensorEntity
 
class  EnvoyEnpowerBinarySensorEntityDescription
 

Functions

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

Variables

tuple ENCHARGE_SENSORS
 
tuple ENPOWER_SENSORS
 

Detailed Description

Support for Enphase Envoy solar energy monitor.

Function Documentation

◆ async_setup_entry()

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

Definition at line 74 of file binary_sensor.py.

Variable Documentation

◆ ENCHARGE_SENSORS

tuple homeassistant.components.enphase_envoy.binary_sensor.ENCHARGE_SENSORS
Initial value:
1 = (
2  EnvoyEnchargeBinarySensorEntityDescription(
3  key="communicating",
4  translation_key="communicating",
5  device_class=BinarySensorDeviceClass.CONNECTIVITY,
6  entity_category=EntityCategory.DIAGNOSTIC,
7  value_fn=attrgetter("communicating"),
8  ),
9  EnvoyEnchargeBinarySensorEntityDescription(
10  key="dc_switch",
11  translation_key="dc_switch",
12  entity_category=EntityCategory.DIAGNOSTIC,
13  value_fn=lambda encharge: not encharge.dc_switch_off,
14  ),
15 )

Definition at line 33 of file binary_sensor.py.

◆ ENPOWER_SENSORS

tuple homeassistant.components.enphase_envoy.binary_sensor.ENPOWER_SENSORS
Initial value:
1 = (
2  EnvoyEnpowerBinarySensorEntityDescription(
3  key="communicating",
4  translation_key="communicating",
5  device_class=BinarySensorDeviceClass.CONNECTIVITY,
6  entity_category=EntityCategory.DIAGNOSTIC,
7  value_fn=attrgetter("communicating"),
8  ),
9  EnvoyEnpowerBinarySensorEntityDescription(
10  key="mains_oper_state",
11  translation_key="grid_status",
12  icon="mdi:transmission-tower",
13  value_fn=lambda enpower: enpower.mains_oper_state == "closed",
14  ),
15 )

Definition at line 57 of file binary_sensor.py.