-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR IndexError : list index out of range #77
Comments
I am having the same issue. I think the endpoints (and some fields) are not correct. With only one inverter this does not make a difference, but with two or more, one only gets the data for the first, and trying to accept the second gives the error.
Invoking get_solis_cloud_data(endpoint_inverter_detail, body) with the id of the inverter gives only one record with the inverter_id and its corresponding serial number. When running two containers, one with SOLIS_CLOUD_API_INVERTER_ID="0" and one with SOLIS_CLOUD_API_INVERTER_ID="1", I am getting data from each of the two inverters, and two data sets with different inverter IDs. In view of this, the name get_inverter_ids() seems to be somewhat misleading because what the code does is to look up the ID and serial number of the inverter identified by SOLIS_CLOUD_API_INVERTER_ID (0, 1, 2, 3, ...). Maybe someone could merge the fix into the container, provided that it can be confirmed that it is OK. |
I am using the container with multiple inverters (3), I can see that the cloud API is working but I am getting IndexError and no data within InfluxDB.
Container - I get the same error if I set the Inverter ID to 2.
Debug below
Please let me know if I can assist in finding a resolution.
Many thanks.
The text was updated successfully, but these errors were encountered: