Morning,
ive got 2 inverters and ive been tinkering with the code all morning (to no avail) to try and be able to control either of them, or even affect any changes at all.
While doing this, it has struck me that there is a fix for the issue of trying to work with multiple inverters that also simplifies the code and offers lass chance for breakages.
instead of asking for the plant ID, then finding the inverters via API invocation, ask for the inverter ID up front. Its readily available in the soliscloud URLs, and offers less chances of confusing the 6 character plant ID with the 19 character station ID that (i think?) is required
Morning,
ive got 2 inverters and ive been tinkering with the code all morning (to no avail) to try and be able to control either of them, or even affect any changes at all.
While doing this, it has struck me that there is a fix for the issue of trying to work with multiple inverters that also simplifies the code and offers lass chance for breakages.
instead of asking for the plant ID, then finding the inverters via API invocation, ask for the inverter ID up front. Its readily available in the soliscloud URLs, and offers less chances of confusing the 6 character plant ID with the 19 character station ID that (i think?) is required