macxq / foxess-ha

Home Assistant & FoxESS integration. Monitor you photovoltaic installation directly from HA ☀️ ⚡️
120 stars 37 forks source link

1 Hybrid Inverter & 1 non-hybrid inverter which is connected to the Hybrid Data to Foxess Cloud only from Hybrid #94

Closed rjhazeld closed 1 year ago

rjhazeld commented 1 year ago

I am new to HA but have set HA up with this integration but only get data from one string of panels (PV1) which are connected to the Hybrid Inverter. The second string, connected to the non-hybrid inverter, appears in the real time data panels of the Foxess app and webpage as PVPower. On the system diagram it appears lower right as 'inverter'. (See the images attached).

As far as I can tell the PVPower reading is not collected or not extracted from the data collected. Have I missed something or is there a workaround? Looking at the code it would seem that copying the PV1Power pieces and renaming PV1Power, PVPower. would work but cause problems with updates to the base code in the future.

Foxess webdiagram Foxess realData

Daibutt commented 1 year ago

I'm not sure where your non hybrid inverter input would appear in the Fox data, but I was under the impression PVPower was the sum of strings 1-4 on the hybrid. image Have you tried asking at https://www.facebook.com/groups/foxessownersgroup ? There are a few people on there with multi inverters using HA.

rjhazeld commented 1 year ago

Thanks for your quick reply. You are quite right by some fluke both strings were producing the same amount when I was looking at it. Back to the drawing board as I can't see where they are drawing the information from to populate the second inverter other than it originates from a ct clamp on the non-hybrid to CT2 on the hybrid.

Daibutt commented 1 year ago

Is there anything under the dropdown on the stats graph? There are a load of parameters there. On mine I couldn't see anything that looked like "CT2" or "2nd inverter" but then I only one inverter. image

rjhazeld commented 1 year ago

Thanks for the follow up I examined the drop box as suggested but found nothing on the face of it that applied. However, I had previously found a Foxess cloud API document in which there is mention of an error code id 15 which refers to Meter/CT lost - Meter Communication fault. Looking at the drop down list on the web page again I see that there is meterPower and meterPower2. Searching them both produces graphs lines, meterPower looks to be identical to grid consumption - from CT1 clamp on the meter positive cable between the meter and consumer unit. and I think meterPower2 is the one I am looking for CT2 clamp which is on the A/C out positive cable of the non-hybrid inverter. There are corresponding meterStatus items as well but I don't know whether they are useful or not.

Looking at the HA code I can't see these fields being pulled in under those names. So the question is if those names exist in the data how can it be pulled in and attached to a sensor?

Daibutt commented 1 year ago

That maybe something @macxq can help with with the meterPower2 data point?

rjhazeld commented 1 year ago

Sorry it should be meter2power.