Closed alberthoekstra closed 3 years ago
Hi, great to hear :smile:! I cleaned up the code yesterday and published a new release (2.1.0). Indeed I had not yet taken the voltage for 3-phase inverters into account. Now it takes the average of the 3 voltages, or if you specify --dc-voltage
it will use the panel voltage instead, as average of PV1 voltage and PV2 voltage. If you prefer different behavior, e.g. using a random phase instead of taking the average, let me know, I can easily change it (the aggregation code is here).
Here's the command to upgrade (assuming user installation using pip3):
$ pip3 install --user --upgrade samil
I have not tested thoroughly so you might still encounter bugs.
The MQTT code doesn't aggregate values and therefore shouldn't have the same issue.
Works like a charm. Thanks!
Top!
Hi,
I finally found this repo, and I'm so glad I did! Thanks for the work you've done already and I hope you can help me out with this.
So I've got a Three-Phase inventer and this causes some issue's in the data read methods.
Samil version 2.1.0a5.
Model info:
Status data
Error:
The error says enough I think, key 'grid_voltage' is not availble in this message. For me the voltages of the differtent phases are not really interesting. So just picking a random voltage key would be enough.
Btw. I havent testen with MQTT yet, but maybe the MQTT functionality has the same issue.
I'm a C# developer myself, not really sure how I could help you to fix this. Let me know if I can do anything for you please.