solmoller / eversolar-monitor

Script to capture data and create statistics from Eversolar/zeversolar Solar Inverters. Includes easy install image files for Raspberry Pi. Working edition since 2012 :-)
https://github.com/solmoller/eversolar-monitor/blob/wiki/Introduction.md
MIT License
30 stars 20 forks source link

double inverter setup incorrectly outputs combined energy and power totals incorrectly #62

Open LeighAS opened 1 year ago

LeighAS commented 1 year ago

image please see above

this is also being carried through into home assistant too.

LeighAS commented 1 year ago

image

here I am using a template to try to understand what my whole house instantaneous use is but the issue is that the 235w is not the total of both inverters so I am getting an issue which I wouldn't get if I used 2 separate pi's and added the power values in home assistant. This isn't supercritical to my battery integration as I can use the shelly value on its own to get that closest to 0. but its a nice to have as I currently have nothing that tells me the total of all the loads in the house in any instant.

LeighAS commented 1 year ago

image doing some investigating in home assistant in the mqtt configure page I have found that when i listen for the 2nd inverter's power value it returns the 1st inverters values/states. So maybe there is a bug where the mqtt portion of the perl script is sending the first inverters values under both serial numbers.

LeighAS commented 1 year ago

image I had a look again at why home assistant wasn't seeing the mqtt messages from both inverters from the eversol monitor pi. Today I've mentally moved the problem along in so much that In attempting to solve a duplication of the sensor caused by changing my network ssid to split the 2.4ghz from the 5.8ghz network for a soyosource inverter to attach to the 2.4ghz network. Now I can see that the eversol monitor is sending the mqtt messages from both inverters. What doesn't happen is the second inverter is not auto setup by home assistant auto detect. I think some manual configuration may be necessary to get the second inverter to play ball inside of the home assistant dashboard. on the plus side it may be that 3 inverters may just work out of the box with a rinse and repeat for the manual configuration stage. (I do however have to fix that inverter first as it has blown gate driver and mosfet).

Anyway i doubt it is a bug in the perl script regarding the sending of the inverter mqtt now, more an issue with the auto recognition of mosquito mqtt in home assistant of the different sensors in home assistant.