Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Alpha ESS: Set Battery Charge" not setting #138

Open
braindeadmalc opened this issue Oct 19, 2024 · 108 comments
Open

"Alpha ESS: Set Battery Charge" not setting #138

braindeadmalc opened this issue Oct 19, 2024 · 108 comments
Assignees

Comments

@braindeadmalc
Copy link

braindeadmalc commented Oct 19, 2024

Automations using "Alpha ESS: Set Battery Charge" don't set the battery charge period on my Smile B3.
No errors, just not setting the times

These automations worked prior to the latest Alpha upgrade.

Looking at the Alpha API site, they appear to be stating that setting once per day is allowed which is what caused problems for a lot of us. It got changed to once every 10 mins but I'm wondering if they've put it back to once per day?

@mapo-89
Copy link

mapo-89 commented Oct 19, 2024

I have the same problem, as well as with the discharge

@dan22h
Copy link

dan22h commented Oct 19, 2024

Same problem on my Smile5 but it doesn't even work once per day so I don't imagine that's the issue. I really need to convert to a direct MODBUS connection but I can't get it to work on my system for some unknown reason.

@mapo-89
Copy link

mapo-89 commented Oct 19, 2024

But it doesn't work with Postman either. So the problem seems to be with the API

@Euan-p
Copy link

Euan-p commented Oct 19, 2024

My SMILE5 isn't working either, but only the charge setting for some reason? Is throwing up an error of "unknown action".

@DavidqStokes
Copy link

Just done some testing via my scheduled automation.
Although HA doesn't appear to be throwing any errors into the logs, the update to the SMILE B3 settings fails (as confirmed via the AlphaESS app)

@Poshy163
Copy link
Collaborator

Cheers for the reports guys, I'm working on a new PR to hopefully improve the charging/discharging stuff. Great to have alpha throw some edge cases these last few weeks so I can verify if the whole system works 😅

@DavidqStokes
Copy link

Cheers for the reports guys, I'm working on a new PR to hopefully improve the charging/discharging stuff. Great to have alpha throw some edge cases these last few weeks so I can verify if the whole system works 😅

And the on-going work on this (by everyone involved) is appreciated as always.

@braindeadmalc
Copy link
Author

I've raised a ticket with Alpha assuming it's their issue.

@braindeadmalc
Copy link
Author

Here's the reply from Alpha

We are working on this issue and expected to take few days to resolve. If you still experience the issue on 28/10, please create a new support request again. Sorry for any inconvenience it may caused. Kind Regards, Eddie Yam Alpha ESS UK

@DavidqStokes
Copy link

Thanks for the update

@DavidqStokes
Copy link

It's now 31st October and my battery charge / discharge setting still didn't work last night. Are others still having issues?

@dan22h
Copy link

dan22h commented Oct 31, 2024

I got fed up with the constant issues caused by the AlphaESS updates and have finally moved to MODBUS which is well worth the effort, the Inverter responds immediately to commands now and unlocks features that aren't possible otherwise, e.g. stopping the batteries charging from solar.
Thanks for the hardwork carried out making this integration, it was a great help before Alpha ESS messed it up.

@Poshy163
Copy link
Collaborator

Are others still having issues?

Personally not, what inverter you got? could be related some what to that? the PR i got going here should give more transparency regarding the currently set charge and discharge times (when the API polls)

Should give you a little bit of info to give to alpha if its not fixed on your end

@braindeadmalc
Copy link
Author

I still have the problem and have raised the case again as they requested

@DavidqStokes
Copy link

Are others still having issues?

Personally not, what inverter you got? could be related some what to that? the PR i got going here should give more transparency regarding the currently set charge and discharge times (when the API polls)

Should give you a little bit of info to give to alpha if its not fixed on your end

I have a SMILE B3 battery and inverter

@pjhum
Copy link

pjhum commented Nov 1, 2024

Yes, I have a B3 and can read data via the open API but still cannot write charge/discharge settings since the 'upgrade' event. It is playing hell with my battery SOC when Intelligent octopus starts the car charging outside 'usual' times.

I can still change the settings manually via the Alpha app.

BTW does anyone have experience of writing to modbus registers on a B3? I know it needs an RS485 converter at the very least...

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 1, 2024

Hey there, do you have the full name (the model of it) so I can add it to the blacklist? Should show in your logs as Model: xxx Serial: xxxx

@tonbut
Copy link

tonbut commented Nov 1, 2024

Thank you everyone for updates, I'm not using this repo but read it to get the good information! Instead I'm using the alphaess-openAPI. I have a Smile5 and am having the same issues - reading works, but updates updateChargeConfigInfo isn't having any effect despite returning no errors. I hope alpha get their stuff sorted and at a minimum are more transparent about whats going on.

@pjhum
Copy link

pjhum commented Nov 1, 2024

Mine is Alpha Smile B3 serial AL7002022040171

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 2, 2024

Sorry @pjhum should of been more specific. when the integration is started, there is a string printed to the logs, this includes the model and serial number (these are case sensitive). it looks something like this:

image

Cheers!

@pjhum
Copy link

pjhum commented Nov 2, 2024 via email

@pjhum
Copy link

pjhum commented Nov 2, 2024

OK- removed the integration and re-added. The start up message was
Alpha ESS Energy Statistics : AL7002022040171
Storion-SMILE-B3 (AlphaESS)
that looks like the same string ?

My version still reports 0.5.5 BTW
Peter

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 2, 2024

To view logs in Home Assistant, you can navigate to Settings > System > Logs then click on view all logs.

If you reboot the integration, click ctrl + f (page finder thing) and look for "Model". It should bring up that line I posted earlier

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 2, 2024

Also, to force upgrade to 5.6.0,

Under the integrations page on HACS, you can click the RELOAD DATA button under the SETTINGS tab (should be like the top right of the page) and then an update will appear.

Maybe do this and verify you can't set the discharge/charge via the buttons before i blacklist that model inverter

@braindeadmalc
Copy link
Author

braindeadmalc commented Nov 2, 2024

Hey there, do you have the full name (the model of it) so I can add it to the blacklist? Should show in your logs as Model: xxx Serial: xxxx

Mine's "New Inverter: Serial: AL4001020050581, Model: Storion-SMILE-B3"

Also, I tried the 15 min charge button with no effect

@pjhum
Copy link

pjhum commented Nov 2, 2024 via email

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 2, 2024

Yeah, if you click on any of the time periods, you then should be able to open your app and see the time settings set. Cheers for that all!

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 3, 2024

Cheers for the logs, ill add the inverter to the blacklist and push a minor update soon, the current/discharge charging time (1 & 2), and the charging range within the diagnostics section of the stuff will stay, just your ability to set anything (within the Configuration area) will be removed

@pjhum
Copy link

pjhum commented Nov 5, 2024

@renamedthewild what model are you connecting via modbus? I can't get my B3 to respond on RS485 (it doesn't support modbus over TCP) whatever I try...

@renamedthewild
Copy link

SMILE5-INV EMS 2.01

No issues with Modbus using the RS485 port (ethernet adaptor)

just trying to save having to mess around with all that stuff just so they can sell a few kWh between 6-9pm lol

@renamedthewild
Copy link

I also use my self a SMILE-T10-HV-INV - that has modbus over TCP and that works amazing

@pjhum
Copy link

pjhum commented Nov 5, 2024 via email

@DavidqStokes
Copy link

I have now downloaded the new 5.6.1 release and will see whether changing the charge/discharge settings via automation (service call) works this evening with my SMILE B3.

@braindeadmalc
Copy link
Author

braindeadmalc commented Nov 6, 2024

I just got another response to my support ticket from Alpha. I'm not quite sure where this leaves us,

"Sorry for our late reply. According to the Web API team, there are no reported issues with the OpenAPI command integration at this time. Could you please try again?
For questions related to OpenAPI, we recommend reaching out on the GitHub forum, where additional support is available. Thank you for your understanding"

@pjhum
Copy link

pjhum commented Nov 6, 2024

Looking on the German users' forum, it seems European data is now stored on the (new) European server. I suspect this is also hosting the new API that UK customer support gave me. (https://apiservice-eu.alphaess.com/v1/Open/XXXXX)

@purrcat33a
Copy link

I'd been holding out for a reply from Alpha regarding this same issue on my one year old B3-plus. I got exactly the same response from them this morning as braindeadmalc.

Like others , I'd been able to set charge and discharge periods and desired SOC using the OpenAPI via Home Assistant a couple of times a day so as to make best use of Octopus Agile and prevailing weather conditions. Since the global update I can read SOC but cannot set it or charge periods via HA. I pulled the latest version of the OpenAPI yesterday. I believe I am on 0.5.6.1 version.

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 6, 2024

Interesting, seems like i'll have to make the API dynamic, and what will happen is you guys will have to manually edit your files and place the API URL in the files (will require an update to the integration + API)

@CharlesGillanders
Copy link
Owner

Interesting, seems like i'll have to make the API dynamic, and what will happen is you guys will have to manually edit your files and place the API URL in the files (will require an update to the integration + API)

The optimum solution would be to have the API library be aware of both API endpoints and to accept a parameter that would select a specific endpoint for each time data is requested.

We would then be able to configure the Home Assistant integration with an extended setup dialogue that asked for a radio button type question "EU or worldwide API endpoint"

I can make the appropriate change to the library later this week.

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 6, 2024

Wonderful, ill see if i can get a full list of region specific list of URL's (if there is any more)

@DavidqStokes
Copy link

I'm in the UK and despite downloading 5.6.1 yesterday my automations still failed to effect any changes to the charge / discharge settings on of my SMILE B3 last night.
It does however sound like you have a handle on this - thanks as always for the excellent work on this integration.

@tonbut
Copy link

tonbut commented Nov 6, 2024

I've just been experimenting with the new EU URL https://apiservice-eu.alphaess.com/v1/Open/getLastPowerData . It seems to almost work, but every call fails with the error {'code': 103, 'info': 'Timestamp is Wrong!'} Switching back to the old URL, it works again. Not sure if Alpha has updated the API in other ways too? I havent seen any doc updates.

@pjhum
Copy link

pjhum commented Nov 7, 2024 via email

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 7, 2024

Im unfortunately not in the EU, so i wont be much help, but is there any documentation on this website: https://apicloud-eu.alphaess.com/#/?

@tonbut
Copy link

tonbut commented Nov 7, 2024

I wish Alpha made this information easier to find! Does anyone know how to get login credentials for https://apicloud-eu.alphaess.com/#/ ? If I use the ones created on https://open.alphaess.com/login it says "no such user".

@pjhum on the original API the timestamp was in seconds since 1970 Epoch which should be timezone independent AFAIK

@pjhum
Copy link

pjhum commented Nov 7, 2024 via email

@CharlesGillanders
Copy link
Owner

I am beginning to think that there is confusion within AlphaESS between the OpenAPI and their older commercial API services.

According to this page https://urlscan.io/domain/alphaess.com the apiservice.alphaess.com URL has been around since 2021, whereas the URL for openapi.alphaess.com is only from 2023.

In the absence of any comment on the OpenAPI developer portal I wonder if there's a chance that people are being given mistaken information by the EU support team?

@braindeadmalc
Copy link
Author

I may be wrong but something got fixed!
My automations seem to be working again.
I've tried a few tests and I seem to be able to set the charging period via HA again.

@purrcat33a
Copy link

purrcat33a commented Nov 8, 2024

I'm seeing the same thing as braindeadmalc. It does seem to be working.

I did, initially, find that my two automations were no longer valid. I pulled the latest GitHub version and it made no difference. So I investigated further and discovered that the SOC condition definition has changed from (whatever it was before, as I didn't write it down) to "current <serial number"_State of battery level . I made changes to my automations and I've run both automations a number of times and it appears to be setting the battery charge/discharge settings properly and quickly.

Fingers crossed !

Who ever has changed things to make it work .... thank you!

@pjhum
Copy link

pjhum commented Nov 8, 2024 via email

@ppootle
Copy link

ppootle commented Nov 8, 2024 via email

@DavidqStokes
Copy link

I'm also in the UK with a SMILE B3 battery, and my overnight automation was able to set the charge / discharge parameters last night for the first time since the AlphaESS upgrade.

I'm a bit lost as to what the problem actually was, and who did what to fix it, but my thanks to everyone involved in getting to the bottom of this and getting the issue fixed.

@pjhum
Copy link

pjhum commented Nov 9, 2024

+1 here with another B3

Automations worked, and the “reset charge/discharge” button reset my charge parameters to the values set in the boxes and cleared the charge times I had set.

I’ll experiment with forced charge and discharge buttons later on, but something has definitely improved.

Thanks to the integration developers for the effort this has taken- even if ultimately it turns out to be Alpha’s SNAFU

@Poshy163
Copy link
Collaborator

Poshy163 commented Nov 9, 2024

Haha what an ending, must of been something wrong with the firmware on the batteries or something, super weird that it just suddenly started working one day

Maybe enough people complained that it finally got escalated 🙈

@pjhum
Copy link

pjhum commented Nov 9, 2024 via email

@purrcat33a
Copy link

I asked Alpha what they did to correct the problem (if, indeed, it was them).

The reply that I got was this : "There's a bug in OpenAPI identified and is expected to be fixed this week, therefore you may still experience the issue in coming days. Sorry for any inconvenience caused."

I'm not sure exactly what this is saying, but it does suggest that something has been found and is being addressed. It doesn't explain why things magically started working last week though.

@DavidqStokes
Copy link

Sounds like AlphaASS are one of the first to use quantum computing at scale. Rather than relying on logic to produce known outcome based on inputs, the result is actually the outcome of some inexplicable probability function...

@purrcat33a
Copy link

Sounds like AlphaASS are one of the first to use quantum computing at scale. Rather than relying on logic to produce known outcome based on inputs, the result is actually the outcome of some inexplicable probability function...

They probably hitched a ride on the infinite improbability drive and derived a result from absolutely everywhere.

@pjhum
Copy link

pjhum commented Nov 18, 2024

As of this morning, I see discharge control also working via this integration on my B3.

AFAIK my B3 now works fully with this, and the model does not need blacklisting.

I am thinking this was a bug in the API all along.

As an aside, now I have a different modbus gateway the Smile B3 model also supports modbus control.

Thanks again to the developers of this integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests