Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sunweg.SunWEGData Class Reference

Public Member Functions

None __init__ (self, APIHelper api, int plant_id)
 
def get_api_value (self, str variable, DeviceType device_type, int inverter_id=0, str|None deep_name=None)
 
tuple[StateType|datetime.datetime, str|None] get_data (self, *str api_variable_key, str|None api_variable_unit, str|None deep_name, DeviceType device_type, int inverter_id, str|UndefinedType|None name, str|None native_unit_of_measurement, bool never_resets, float|None previous_value_drop_threshold)
 
None update (self)
 

Public Attributes

 api
 
 data
 
 plant_id
 

Detailed Description

The class for handling data retrieval.

Definition at line 47 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.sunweg.SunWEGData.__init__ (   self,
APIHelper  api,
int  plant_id 
)
Initialize the probe.

Definition at line 50 of file __init__.py.

Member Function Documentation

◆ get_api_value()

def homeassistant.components.sunweg.SunWEGData.get_api_value (   self,
str  variable,
DeviceType  device_type,
int   inverter_id = 0,
str | None   deep_name = None 
)
Retrieve from a Plant the desired variable value.

Definition at line 74 of file __init__.py.

◆ get_data()

tuple[StateType | datetime.datetime, str | None] homeassistant.components.sunweg.SunWEGData.get_data (   self,
*str  api_variable_key,
str | None  api_variable_unit,
str | None  deep_name,
DeviceType  device_type,
int  inverter_id,
str | UndefinedType | None  name,
str | None  native_unit_of_measurement,
bool  never_resets,
float | None  previous_value_drop_threshold 
)
Get the data.

Definition at line 103 of file __init__.py.

◆ update()

None homeassistant.components.sunweg.SunWEGData.update (   self)
Update probe data.

Definition at line 63 of file __init__.py.

Member Data Documentation

◆ api

homeassistant.components.sunweg.SunWEGData.api

Definition at line 57 of file __init__.py.

◆ data

homeassistant.components.sunweg.SunWEGData.data

Definition at line 67 of file __init__.py.

◆ plant_id

homeassistant.components.sunweg.SunWEGData.plant_id

Definition at line 58 of file __init__.py.


The documentation for this class was generated from the following file: