|
| 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) |
| |
The class for handling data retrieval.
Definition at line 47 of file __init__.py.
◆ __init__()
| None homeassistant.components.sunweg.SunWEGData.__init__ |
( |
|
self, |
|
|
APIHelper |
api, |
|
|
int |
plant_id |
|
) |
| |
◆ 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 |
|
) |
| |
◆ update()
| None homeassistant.components.sunweg.SunWEGData.update |
( |
|
self | ) |
|
◆ api
| homeassistant.components.sunweg.SunWEGData.api |
◆ data
| homeassistant.components.sunweg.SunWEGData.data |
◆ plant_id
| homeassistant.components.sunweg.SunWEGData.plant_id |
The documentation for this class was generated from the following file: