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

Classes

class  GoodweSensorEntityDescription
 
class  InverterSensor
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple _MAIN_SENSORS
 
string BATTERY_SOC = "battery_soc"
 
list DAILY_RESET = ["e_day", "e_load_day"]
 
 DIAG_SENSOR
 
 TEXT_SENSOR
 

Detailed Description

Support for GoodWe inverter via UDP.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.goodwe.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the GoodWe inverter from a config entry.

Definition at line 166 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 45 of file sensor.py.

◆ _MAIN_SENSORS

tuple homeassistant.components.goodwe.sensor._MAIN_SENSORS
private
Initial value:
1 = (
2  "ppv",
3  "house_consumption",
4  "active_power",
5  "battery_soc",
6  "e_day",
7  "e_total",
8  "meter_e_total_exp",
9  "meter_e_total_imp",
10  "e_bat_charge_total",
11  "e_bat_discharge_total",
12 )

Definition at line 57 of file sensor.py.

◆ BATTERY_SOC

string homeassistant.components.goodwe.sensor.BATTERY_SOC = "battery_soc"

Definition at line 48 of file sensor.py.

◆ DAILY_RESET

list homeassistant.components.goodwe.sensor.DAILY_RESET = ["e_day", "e_load_day"]

Definition at line 55 of file sensor.py.

◆ DIAG_SENSOR

homeassistant.components.goodwe.sensor.DIAG_SENSOR
Initial value:
1 = GoodweSensorEntityDescription(
2  key="_",
3  state_class=SensorStateClass.MEASUREMENT,
4 )

Definition at line 157 of file sensor.py.

◆ TEXT_SENSOR

homeassistant.components.goodwe.sensor.TEXT_SENSOR
Initial value:
1 = GoodweSensorEntityDescription(
2  key="text",
3 )

Definition at line 161 of file sensor.py.