I have now updated the custom component
If you do not want the updated version, you can always go back in time with the commits:
Hi @spock85, about the built-in integration not working:
Would you be able to pull https://github.com/indykoning/PyPi_GrowattServer/ on your computer (or install the package using pip install growattServer
)
Then paste
import growattServer
api = growattServer.GrowattApi()
login_response = api.login('<username>', '<password>')
#Get a list of growatt plants.
plants = api.plant_list(login_response['userId'])
deviceList = api.device_list(plants['data'][0]['plantId'])
print(deviceList)
into the example.py or a new .py file, change the credentials and run it using python example.py
Then send me the output of it (feel free to remove the Sn
and deviceAlias)
It should hopefully look something like this
[
{
'datalogSn': '',
'deviceAilas': '',
'deviceSn': '',
'deviceStatus': 2,
'deviceType': 'inverter',
'eToday': '8.6',
'eTodayStr': '8.6kWh',
'energy': '2277',
'invType': '0',
'location': '',
'lost': False,
'power': '17.6',
'powerStr': '0.02kW'
}
]
My guess is that the “DeviceType” is returning something different than inverter.
The integration currently only supports ‘inverter’ and ‘storage’ but maybe the name is slightly different while it would work perfectly normal if only recognised as an inverter.