Hello,
I’m new to fusionsolar and to this community
Thanks a lot to the main contributors for all the work done
I’m not yet using home assistant, trying first to get huawei data from a windows computer and I’m a little bit lost with the possibilities and how to make them work
I’m looking for getting the value of network power from smart power sensor, which I can see on fusionsolar web page
My sun2000L1 is connected to wifi without a dongle, and my windows computer is also connected to wifi
I tried pip install huawei-solar, with the ip adress of the sun 2000
import huawei_solar
inverter = huawei_solar.HuaweiSolar('192.168.1.63')
Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.1.63:502)]
I understood this requires a dongle, and some router configuration, which I don’t have
I tried pip install fusionsolar
from fusionsolar import Client, PandasClient
with PandasClient(user_name=user, system_code=password) as client:
Using my fusionsolar credential I got
HTTPError: {'data': None, 'success': False, 'failCode': 20001, 'params': {'currentTime': 1662805932675}, 'message': None}
Using huawei API credential that I request at [email protected], I got
HTTPError: 403 Client Error: Forbidden for url: https://intl.fusionsolar.huawei.com/thirdData/getStationList
I tried pip install fusion-solar-py
pypi org project fusion-solar-py
from fusion_solar_py.client import FusionSolarClient
client = FusionSolarClient("username", "password")
With fusionsolar credential I got
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
JSONDecodeError: Expecting value
with API credential, I got
AuthenticationException: Failed to login into FusionSolarAPI: Login failed. Enter the correct username and password.
There’s also this github that I didn’t try
github BlazejosP huawei-sun2000-API-CLI
And the POST tutorial from huawei API that I didn’t try either
Finally I understood that it’s possible to call fusionsolar with a RAPI request from http but I couldn’t find clear instructions
sorry for those newbie attemps!
Any advise on how to use one of those possibilities ?