Just wanted to tag you @nazar-pc to let you know that it seem in here we have two fields a bit wrong for X3 Hybrid G4.
I worked today on squishykid/solax#178 in the solax library, you can see there in detail what I changed to sort it out. I think it's still worth it to investigate and correct here in api docs if applicable (unless like with that other issue of mine it would make updating this a chore).
The problem in API docs seem to be lines 252-253 here:
Data[86], Data[87] seem to be a total increasing value for FeedInEnergy, same applies to Data[88], Data[89] for ConsumeEnergy.
Also we seem to be missing the following:
Data[90], Data[91] as FeedInEnergy_Today
Data[92], Data[93] as ConsumedEnergy_Today
In general it would boil down to the below:
"Feed-in Energy today": (pack_u16(90, 91), DailyTotal(Units.KWH), div100),
"Consumed Energy today": (pack_u16(92, 93), DailyTotal(Units.KWH), div100),
"Feed-in Energy total": (pack_u16(86, 87), Total(Units.KWH), div100),
"Consumed Energy total": (pack_u16(88, 89), Total(Units.KWH), div100),
I can work on fixing this, will open PR once done if you don't mind - let me know if I got something wrong!
Just wanted to tag you @nazar-pc to let you know that it seem in here we have two fields a bit wrong for X3 Hybrid G4.
I worked today on squishykid/solax#178 in the solax library, you can see there in detail what I changed to sort it out. I think it's still worth it to investigate and correct here in api docs if applicable (unless like with that other issue of mine it would make updating this a chore).
The problem in API docs seem to be lines 252-253 here:
Data[86], Data[87]seem to be a total increasing value for FeedInEnergy, same applies toData[88], Data[89]for ConsumeEnergy.Also we seem to be missing the following:
Data[90], Data[91]as FeedInEnergy_TodayData[92], Data[93]as ConsumedEnergy_TodayIn general it would boil down to the below:
I can work on fixing this, will open PR once done if you don't mind - let me know if I got something wrong!