API update

aclang
Posts: 2
Joined: Mon May 01, 2023 12:09 pm

Hi,
My inverter stopped conversing with HomeAssistant at 02:00 on the 20th Dec. I note from the FoxESS API page (https://www.foxesscloud.com/public/i18n ... ument.html) that an update emerged on 20th Dec. Are the two issues related ?
Thanks,
Alan
H1 3.7E inverter plus 10 X 375W JA Solar panels plus 3 x 4.1 kWh FoxCube battery storage.
Running Home Assistant together with FoxESS Energy Management on RPi4
leonb
Posts: 15
Joined: Thu Dec 21, 2023 3:43 pm

Hi,

I'm getting the same issue. 2:52am on the 20th was the last data the API returned.

Looking at the HA debug logs the authentication is returning an error 'HTTP 406 Not Acceptable'.

I've been getting plenty of HTTP 500 errors on the foxesscloud website today as well.

Leon
davidpeacock
Posts: 2
Joined: Thu Dec 21, 2023 4:37 pm

I was a happy user of the IOS app “”Energy Stats” to monitor my installation. This stopped working earlier this week, and after contacting the developer got the email below. Seems Fox have locked down the API :roll:

Email from Energy Stats developer:

If you're an Energy Stats user then unfortunately it will no longer work. Recently FoxESS have added the requirement for all API requests to be HMAC signed and therefore only from known clients, ie. theirs.

This means Energy Stats, Home Assistant (via Cloud), Tony M's Python scripts won't work any more without serious reverse engineering of their web code to determine the secret key and algorithm which I'm not prepared to do.

Thanks for all your support over the last year, we got to nearly 6k installs. I hope that if anything the development of ES helped FoxESS understand what the community want from an end user app.

I'll be removing Energy Stats from the App/Play Stores until anything changes. I am currently in talks with Fox about this and will re-publish the apps if the situation changes.
phoenix66
Posts: 9
Joined: Sun Nov 19, 2023 10:26 am

For those who haven't already heard, Fox will be reverting the change that caused this tomorrow, so 3rd party integrations should start working again.
davidpeacock
Posts: 2
Joined: Thu Dec 21, 2023 4:37 pm

Thanks for that update phoenix66 :)

Fingers crossed…..
aclang
Posts: 2
Joined: Mon May 01, 2023 12:09 pm

Thanks Everyone. At least it's nice to know i didn't break it!

Happy Christmas to All!
H1 3.7E inverter plus 10 X 375W JA Solar panels plus 3 x 4.1 kWh FoxCube battery storage.
Running Home Assistant together with FoxESS Energy Management on RPi4
reef
Posts: 109
Joined: Sat Sep 09, 2023 10:06 am
Location: East Yorkshire

So, energy stats is no longer working again. There's a message when you go into the app saying he'll update as soon as possible but the list of limitations he's having to deal with in the new API means it'll probably be a shadow of its former self.

It's particularly annoying as I now will have no idea what my PV are generating accurately. I run a dual inverter setup so it's impossible to calculate. Energy stats could calculate it all but its still beyond Fox it seems.

It's all very disappointing. I havent used the old Fox v1 app in ages and forgot how bad it is. Such a shame.
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

Completely agree.

It wouldn’t be so bad if Fox provided a good app themselves with the data that users are looking for in a clear and concise manner. But they don’t.
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
RedBaron
Posts: 8
Joined: Mon Jan 02, 2023 1:58 pm

TonyM1958 on github has 'published' a python library to access the new openAPI. Have used a previous version of his library, before openAPI, with great success.
HOWEVER - I cannot get the Foxess Cloud site to issue me with an API key - it just throws an API Error 500 and you have to log back in.

Is anyone else having the same problem, or alternatively can you get the site to issue your api key?
Dave Foster
Posts: 1305
Joined: Thu Oct 13, 2022 7:21 pm

Just a quick note to say we’re all working on it.

Al is looking after the Energy Stats, Tony M on his Jupyter cloud access suite and i’m on the FoxESS cloud integration - bear with us - FoxESS have taken us all by surprise but it’ll be ready shortly - Al will be pushing new apps to the stores.

On the limitations, that is an old error message - the developers have been working with FoxESS in the backgroiund for the last month - most of those limitations have now been overcome.
RedBaron wrote: Tue Feb 20, 2024 10:24 am Is anyone else having the same problem, or alternatively can you get the site to issue your api key?
Yep, we’re also chasing them to get that sorted 👍
Dave Foster
Posts: 1305
Joined: Thu Oct 13, 2022 7:21 pm

RedBaron wrote: Tue Feb 20, 2024 10:24 am HOWEVER - I cannot get the Foxess Cloud site to issue me with an API key - it just throws an API Error 500 and you have to log back in.

Is anyone else having the same problem, or alternatively can you get the site to issue your api key?
It is working again, you can now get your api_key

You can now download the latest version of Energy Stats which uses the openAPI

For users of FoxESS home assistant cloud integration, the latest version is also ready to download on github.
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

As always thanks for the updates Dave.

Slightly off topic (or is it?), do you know why the Fox app doesn’t have an accurate daily PV generation value on the Home Screen (like Energy Stats) as it’s probably the single most basic value a user looks for. It seems such an obvious gap in functionality.

Having to make calculations or indeed dust off the soldering iron to surface some of this data just seems ridiculous to me. It should just be standard data.

Thanks again.. do appreciate all the hard work you guys do for us !
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
RedBaron
Posts: 8
Joined: Mon Jan 02, 2023 1:58 pm

OK, the Error 500 finally gave up and I managed to get my API key sorted.
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

Updated the Energy Stats app and applied the API key and all working as previously - including the daily PV figure.
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
Dave Foster
Posts: 1305
Joined: Thu Oct 13, 2022 7:21 pm

Dad wrote: Tue Feb 20, 2024 12:49 pm As always thanks for the updates Dave.

Slightly off topic (or is it?), do you know why the Fox app doesn’t have an accurate daily PV generation value on the Home Screen (like Energy Stats) as it’s probably the single most basic value a user looks for. It seems such an obvious gap in functionality.

Having to make calculations or indeed dust off the soldering iron to surface some of this data just seems ridiculous to me. It should just be standard data.

Thanks again.. do appreciate all the hard work you guys do for us !
I'm not sure of the reason but it has to be the single most asked for feature on the app - the strangest thing is that the inverter does actually report this to the Fox cloud but the cloud never reveals it in any of its data streams as if they forgot to store it in their database when they first started logging.

It was asked recently and i'm pretty sure the FoxESS UK support manager said it will be making it into the V2 app (but wouldn't promise when)
RedBaron
Posts: 8
Joined: Mon Jan 02, 2023 1:58 pm

Like to echo the comments by 'Dad' above: -
Many thanks to Dave, Al, Tony for all their speedy work to catch up with the changes from Foxess.

Incidentally, I just tried downloading the latest Energy Stats from Apple, but it still wanted my password rather than my API key, so presumably the App Store has not fully updated yet. Will try again in a few hrs.
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

I may have found a small bug in the updated Energy Stats app. When the solar is putting power back into the battery the value used to be green. When taking power from the battery the power is depicted as red. Now it appears that the value is depicted as red regardless of topping up or discharging.

Also says under the battery symbol that the battery will be empty in xx days/hours whereas it should be saying it will be full up as it is actually putting power in. The battery value is going up so it does work.

Makes no difference, just an observation!
IMG_1031.png
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

Another screenshot showing same issue:-
IMG_1032.png
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
Dave Foster
Posts: 1305
Joined: Thu Oct 13, 2022 7:21 pm

Dad wrote: Tue Feb 20, 2024 2:16 pm Another screenshot showing same issue:-

IMG_1032.png
Looks like Al has already picked up on that bug, he asks to update to V2.1 when you can.
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

Thanks. Still v2.0 on App Store but will keep an eye out.
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
reef
Posts: 109
Joined: Sat Sep 09, 2023 10:06 am
Location: East Yorkshire

I'm on v2.2 from play Store and still have this bug. Is that the latest version?

Daily usage is also blank for me.

Edit: found the option to enable it. It was off by default.
Dad
Posts: 53
Joined: Mon Oct 30, 2023 12:04 pm

I emailed Al and he is aware of the battery flow bug (it’s actually a second bug as it is now showing the flow the other way around) and will release a new version in the morning.
Fox BMS v2
Fox ESS Hybrid Inverter 3.7
Mira HV25 x5
Trina solar panels x8
Ohme Pro EV charger
Skoda Enyaq
Dave Foster
Posts: 1305
Joined: Thu Oct 13, 2022 7:21 pm

Latest state of play is Android 2.3 now in the store, Ios 2.2 coming very soon and these should be the flow fixes
leonb
Posts: 15
Joined: Thu Dec 21, 2023 3:43 pm

Just to echo others and say a big thanks to all for updating the app and the HA integration. You forget how reliant you become on these!

:)


One thing I've noticed about the new 'Residual Energy' value is that it seems to have the wrong calculation, so on mine it shows 0.152kwh instead of 15.2kwh.
Dave Foster
Posts: 1305
Joined: Thu Oct 13, 2022 7:21 pm

leonb wrote: Wed Feb 21, 2024 10:32 am One thing I've noticed about the new 'Residual Energy' value is that it seems to have the wrong calculation, so on mine it shows 0.152kwh instead of 15.2kwh.
Can you confirm is that low value on the app or the HA cloud integration please
Post Reply