API to extract data from Huawei Smart Logger 3000
Project description
Huawei Smart Logger 3000 Data Retrieval
This project queries data from a locally owned and operated Huawei Smart Logger 3000 used as part of the Huawei Fusion Solar system and outputs that data as a JSON KVP.
More information can be found here and here
Example usage
from huawei_smart_logger import HuaweiSmartLogger3000API
import json
import asyncio
class Test():
async def main(self):
hsl = HuaweiSmartLogger3000API("admin","password","192.168.x.x")
await hsl.fetch_data()
data_dict = hsl.get_results()
json_object = json.dumps(data_dict)
print(json_object)
test=Test()
asyncio.run(test.main())
You should see an output like this
{"gridtied_active_power": "0.055", "gridtied_reactive_power": "0.332", "load_power": "1.070", "active_power": "1.015", "reactive_power": "-0.334", "todays_power_supply_from_grid": "0.00", "current_day_supply_from_grid": "5.47", "current_day_feedin_to_grid": "0.41", "current_day_consumption": "12.87", "total_power_supply_from_grid": "6.61", "total_supply_from_grid": "449.67", "total_feedin_to_grid": "555.87", "total_power_consumption": "1774.54", "pv_output_power": "2.855", "battery_chargedischarge_power": "1.840", "reactive_pv_power": "-0.334", "reactive_ess_power": "0.000", "soc": "97.0", "currentday_charge_capacity": "9.27", "currentday_discharge_capacity": "3.17", "total_charge": "819.04", "total_discharge": "811.73", "rated_ess_power": "0.000"}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file huawei_smart_logger-1.0.1.tar.gz.
File metadata
- Download URL: huawei_smart_logger-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d8bfe918ee57a669c680aff56304bcf532449afc9212b084bf0d17e52f252f7
|
|
| MD5 |
49411ba86c5ec329c1063538774680f0
|
|
| BLAKE2b-256 |
45c479ceb597d5041a22dfd814327e1f711df05c423d4935aaee09d8d16154c5
|
File details
Details for the file huawei_smart_logger-1.0.1-py3-none-any.whl.
File metadata
- Download URL: huawei_smart_logger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
334ba20a03174c724c50a34af05b54935beefce250c606988b3bfc19003af127
|
|
| MD5 |
ce6bc6511cc1911e01888f5594645b72
|
|
| BLAKE2b-256 |
528a73459e7b4aa31a1d979036ed912e743adab2a3ee41b180425a94982a200c
|