jblance / mpp-solar

Python package to communicate to MPP Solar PIP-4048MS inverters (and similar)
MIT License
355 stars 149 forks source link

pv_input_current appear to be an integer, needs to be a float #44

Closed BarkinSpider closed 3 years ago

BarkinSpider commented 3 years ago

pv_input_current appear to be an integer, needs to be a float. Watchpower shows 40W of power at 70v = 0.57a. mpp-solar shows 0 for pv_input_current if it less than 1amp version: 0.7.3 on pi4 Linux pi4 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

BarkinSpider commented 3 years ago

MPP3048

jblance commented 3 years ago

pv_input_current appear to be an integer, needs to be a float. Watchpower shows 40W of power at 70v = 0.57a. mpp-solar shows 0 for pv_input_current if it less than 1amp version: 0.7.3 on pi4 Linux pi4 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

Can you run the command with -I, as the results i have seen are ints (not floats) - perhaps watchpower is calculating the value... Happy to make it a float, but this wont help if the info is an int

jblance commented 3 years ago

Nice dashboard!!

BarkinSpider commented 3 years ago

Yes, I see its an integer. Watchpower must use another command to get the fractional amps to get the accurate wattage. Any idea how it does this?

Also, Is there a way to see if the charger is in Bulk or Float mode?

jblance commented 3 years ago

Try QPIGS for pv input power Q1 is they only command i see in PI30 for charge mode, but not all inverters support it. Does watchpower give charge mode? Might be worth capturing a full run and seeing if there is a command that I haven't implemented. There are protocol references in the docs directory