Page 2 of 2

Re: T10-G3 Inverter Status during non-solar hours

Posted: Mon Feb 10, 2025 3:02 pm
by Dave Foster
I've released the changes as a pre-release, on your HA if you go to HACS, find FoxESS Cloud and click on the 3 dots to the right hand side, choose re-download, select 'Need a different version' and choose the v0.44-beta1, when it's downloaded restart HA.

https://github.com/macxq/foxess-ha/rele ... 0.44-beta1

If you can run with this version for a few days to check it's working correctly - the inverter on-line state will continue to show as on-line (as that is what it is reporting) but instead keep an eye on the runningState which would normally be 163 (on-grid) during the day.
When the runningState changes to 161 (waiting) or 162 (checking) the integration will treat the inverter as if it were off-line.

Re: T10-G3 Inverter Status during non-solar hours

Posted: Mon Feb 10, 2025 3:37 pm
by talal.hassan01
Sounds like a plan.Just downloaded and installed the release now. Will monitor and keep you posted as well.

Currently the inverter is still showing as Online, and continues to do so after the installation of the beta release but the Load Power, Grid Consumption etc. are now unknown which were previously throwing garbage values.Will keep you posted on this week's progress as well.

Some screenshots:
before1.JPG
before.JPG
Thank you very much for your continued dedication & support in sorting this out for me!

Re: T10-G3 Inverter Status during non-solar hours

Posted: Tue Feb 11, 2025 3:58 pm
by talal.hassan01
Hey Dave,

Hope you are doing well.

Just an observation from today, however low in significance. As the PV Power values were at 0, the inverter was transitioning to Checking and then Waiting. At 6:28PM it moved to Waiting and that as a result made Load Power, Grid Consumption etc. values all to Unknown, however, FoxCloud V2 App continued showing Grid Consumption until 6:39PM.

I did notice that the usual refresh time on V2 is between 3-5 minutes (also displays the "last updated at"), but it was showing "Updated 14 minutes ago". While this may have been an incorrect value and not the true Grid Consumption considering the last updated at, I was wondering whether the 10 mins variance in between FoxCloud HA and FoxCloud V2 could have a higher impact in any case.

I hope I was able to give you the details correctly and not confuse you in return.

Short Summary: I saw that HA started reporting Unknown for Load Power and Grid Consumption approximately 10mins earlier than what V2 was reporting.

Here are some screenshots:
runningstate.JPG
Screenshot_20250211_183816_FoxCloud20.jpg
Screenshot_20250211_183953_FoxCloud20.jpg


Thanks!

Re: T10-G3 Inverter Status during non-solar hours

Posted: Tue Feb 11, 2025 4:34 pm
by Dave Foster
Just looking at the logs (apologies time is shown in GMT my timezone)

At 13:21:17 the inverter replied with it's current variables and the runningState has gone to 162 (checking), at this point the data sample appears to be still valid i.e. loads showing 1.637kW - but because it had changed to checking I set the inverter off-line so that last data sample never got through.

On the next sample at 13:26:17 the inverter had gone into runningState 161 (waiting) and the data samples had frozen and were no longer valid.

I think the disparity is that the Fox cloud knows the inverter is no longer responding (hence the last updated 14 minutes ago) but it seems to wait for a few cycles before it switches to off-grid - if the datalogger had gone off-line it would happen straight away but it's obviously waiting for 3 missed samples before it shows it as off-line.

If you take the time on the app when it said 'last update 15 minutes ago' (16:39 - 15 = 16:24) it aligns with my last valid data sample at 13:21 (I guess you are +3 hours GMT?) and as the datalogger only sends data samples every 5 minutes it largely depends where you are in the polling cycle.

The mistake I made is to mark the sample bad when it goes into checking (162), when it fact it is actually still ok and I should have allowed that sample through which would have gotten you an extra data point, it's only when it is state 161 that the inverter has gone to sleep.

The one thing I have seen from the logs is that the inverter doesn't always go to 162 before it settles at 161, it sometimes goes straight to 161 - possibly the just the speed of sunset ?

What I think I need to do is to allow the 162 through (as it was a last good data sample) and then shutdown on the 161 - ironically the status HA provides will be almost real time, whereas the Fox cloud will be up to 15 minutes out (but we'll have the same number of data samples).

Re: T10-G3 Inverter Status during non-solar hours

Posted: Tue Feb 11, 2025 4:40 pm
by talal.hassan01
Absolutely. I believe the math you did explained it clearly to me, and yes aligned on the fact that the last most recent data point if received would be great to have also :D

Oh and btw I'm in Pakistan so it is +5 GMT.

Thanks again!

Re: T10-G3 Inverter Status during non-solar hours

Posted: Tue Feb 11, 2025 4:43 pm
by Dave Foster
talal.hassan01 wrote: Tue Feb 11, 2025 4:40 pm Absolutely. I believe the math you did explained it clearly to me, and yes aligned on the fact that the last most recent data point if received would be great to have also :D

Oh and btw I'm in Pakistan so it is +5 GMT.

Thanks again!
Ha, sorry yes your clock is 6:38pm (18:38) I got those maths wrong :)

I'll do another beta release shortly to skip state 162

Re: T10-G3 Inverter Status during non-solar hours

Posted: Tue Feb 11, 2025 5:00 pm
by Dave Foster
Ok try v0.44-beta2 - that will only switch off-line if runningState 161 is returned.

Re: T10-G3 Inverter Status during non-solar hours

Posted: Tue Feb 11, 2025 5:04 pm
by talal.hassan01
Awesome! doing that now and will keep you posted.

Appreciated as always!

Re: T10-G3 Inverter Status during non-solar hours

Posted: Wed Feb 12, 2025 2:14 pm
by talal.hassan01
Hey Dave,

It was one of those blessed days today where the Inverter decided to become "Off-line" :D, but something new happened today.

Inverter and Data logger went Off-line at approx. 7PM but the Running State value did not change and is still stuck on On-Grid.

The Load power etc. values continued to populate data for approx 5 minutes until the inverter went offline at 7:05PM.

Sharing screenshots for better understanding:
inverter.JPG
running state.JPG
loadPwr.JPG
load Pwr NUll.JPG

Re: T10-G3 Inverter Status during non-solar hours

Posted: Wed Feb 12, 2025 5:23 pm
by Dave Foster
Ok thanks, the running state used to become unavailable when the inverter went off-line, but as part of these changes, I made it so it continues to displays the last known state, but when it goes off-line, it will as you see stick at 163….

I think what I will do is to make the integration trigger ‘164: off-grid’ state when the datalogger goes off-line, you’ll get the ‘161: waiting’ state if it doesn’t so either way you will know it’s not available.

I’ll make the change on my test system first and monitor it for a couple of days before releasing - just in case there are any more gems ;)

Re: T10-G3 Inverter Status during non-solar hours

Posted: Wed Feb 12, 2025 5:40 pm
by talal.hassan01
Ahh, understood. Yes sir aligned with your plan! :D

And just confirming if I added it up correctly:

Scenario 1:
If the inverter goes offline, the Running state would show 164 i.e., "Off-grid" (a masking to the existing "Unknown" value)

Scenario 2:
If the inverter remains online but the datalogger is offline, the Running state would become 161 i.e., "Waiting", triggering Load etc values to become Unknown.

Thank you very much.

Re: T10-G3 Inverter Status during non-solar hours

Posted: Wed Feb 12, 2025 6:44 pm
by Dave Foster
Yep that’s spot on - with the change made this is my test system now (connected to your inverter via openapi)
IMG_1704.jpeg

Re: T10-G3 Inverter Status during non-solar hours

Posted: Wed Feb 12, 2025 6:55 pm
by talal.hassan01
Super! :D

Re: T10-G3 Inverter Status during non-solar hours

Posted: Sun Feb 16, 2025 12:22 pm
by Dave Foster
Hi, it has been working well these last few days so I have released the final change (164 - off-grid when datalogger goes off-line).

The latest pre-release is v0.44-beta3, can you install and run with that for a few weeks and if all good i'll do a formal release.

Re: T10-G3 Inverter Status during non-solar hours

Posted: Sun Feb 16, 2025 7:57 pm
by talal.hassan01
Awesome and great stuff!

Thanks alot Dave, I'll update it today and then keep ypu posted.

Cheers

Re: T10-G3 Inverter Status during non-solar hours

Posted: Fri Feb 21, 2025 2:02 pm
by talal.hassan01
Hey Dave,
Hope you're doing well.

So the fix you made is working spot on. However, there is one slight observation that I came across today and wanted to share it with you as well:

The running state changed to waiting at 18:23 PM which as a result populated the Load Power etc with "Unknown", but FoxCloud did another last pull from the datalogger at 18:24 and populated the load power value with an updated one.
1921.JPG
1824.JPG
fox.JPG
In theory, our "Last Pull" was still not the last one based on the Running State value, but accordingly to the datalogger, there was one value more that was updated before going into sleep mode.
fox.JPG
foxinverter.JPG
While I know this may be complex to handle, wanted to share these findings with you. Otherwise, the latest beta build is working as expected.

Thanks!

Re: T10-G3 Inverter Status during non-solar hours

Posted: Fri Feb 21, 2025 4:26 pm
by Dave Foster
Thanks, I have seen that case but as you say it is very complex to catch.

The Fox cloud servers know when it receives a valid data sample but if it doesn’t receive another for 15 minutes it still returns valid variable data until an internal timeout sets it as off-line - and there is nothing in the response to work out whether it is still valid or aged. - I’ll take another quick look just to be sure.

Re: T10-G3 Inverter Status during non-solar hours

Posted: Fri Feb 21, 2025 6:47 pm
by talal.hassan01
Really appreciate it sir!