Skip to content

Comments

Add WallBox Support and other various bugfixes#168

Merged
CharlesGillanders merged 14 commits intomainfrom
alphaess-wallbox-improvements
Mar 12, 2025
Merged

Add WallBox Support and other various bugfixes#168
CharlesGillanders merged 14 commits intomainfrom
alphaess-wallbox-improvements

Conversation

@Poshy163
Copy link
Collaborator

@Poshy163 Poshy163 commented Feb 22, 2025

This is still a work in progress, all feedback is welcome

prerequisites

New Features:

  • Add a new service/separate panel for the alphaess chargers (segregated from battery/inverter)
    image
    image
  • Use Currency set within the alpha app, rather than the currency used by HA
  • Remove all the sensor names being appended to the serial number (shouldn't override any existing/custom names)
    more to come

Bug Fixes

  • Fixes a bug where its possible you wouldnt get 'OneDayPower' data if your API calls had no throttle

Resolves #159

Copy link
Owner

@CharlesGillanders CharlesGillanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re: removing serial number prefix: when I initially went with this convention it was intended to allow those with multiple inverters to identify which sensor went with which inverter. If the prefix is removed does that result in either potentially duplicate sensors or potential confusion about how to tell those sensors apart?

@Poshy163
Copy link
Collaborator Author

Inverters are now separated into their own "services" (done via S/N) if you have multiple inverters (or now an additional service made for it.

I've deleted and re-initialised the API credentials a few time and it seems to be working

2 inverters:
image
image

Single inverter and EV plug:
image
image

@CharlesGillanders
Copy link
Owner

Sounds great! Thank you.

@Poshy163
Copy link
Collaborator Author

I was doing some testing with the alpha wall box (ev charger), and it seems like alpha has either dropped, or massively reduced the limit to the POST requests? was able to make multiple within a few minutes? might query the support team on it (if it goes anywhere and attempt find out what happened) and if it was an intentional change

@Poshy163
Copy link
Collaborator Author

Also seems like the arbitrary limit on the amount of api calls that can be made per minute has been removed? will follow up on this before releasing, but its very strange

@DavidqStokes
Copy link

Even if they have relaxed the limitations on the frequency of API /POST calls, I think that we still need to set a sensible limit in the integration. We don't want people to have the option of abusing this making too many calls.

@Poshy163
Copy link
Collaborator Author

Poshy163 commented Feb 26, 2025

Interesting, might verify these claims, but it seems much more relaxed then when elvenfan was running the show. No overall restriction anymore

image

@Poshy163
Copy link
Collaborator Author

i have removed the throttle if you have multiple inverters, with my testing (with 2), you don't seem to run into any issues with being rate-limited. with the natural delay between API calls, it should be more than enough to conform to what the "new" limits apparently are

@Poshy163 Poshy163 changed the title Add WallBox Support and add charge/discharge to VitaPower Add WallBox Support and other various bugfixes Mar 1, 2025
@Poshy163
Copy link
Collaborator Author

Poshy163 commented Mar 3, 2025

Its basically done, just pending hearing back about vitapower support for charge and discharge, @mauricebish and i are in contact with EvaPower/AlphaESS to hopefully speed this up

@Poshy163 Poshy163 marked this pull request as ready for review March 12, 2025 03:35
@Poshy163
Copy link
Collaborator Author

Haven't heard anything back, ill just merge this PR and will deal with the vitapower stuff whenever we hear back

Copy link
Owner

@CharlesGillanders CharlesGillanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get this in now but I'm thinking that using hard coded English strings for the charger states is probably against the design guidelines for home assistant. I'm guessing we should be using the built in language capabilities even if the only language we provide is English.

Have you any experience with that?

@Poshy163
Copy link
Collaborator Author

Yeah, can do. Will fix tonight

@CharlesGillanders CharlesGillanders merged commit 792d770 into main Mar 12, 2025
7 checks passed
@Poshy163 Poshy163 deleted the alphaess-wallbox-improvements branch March 14, 2025 12:56
@djangopap
Copy link

thank you for this integration.
Is there a way to have a button to make the selection between different type of charge ? green slow, general, fast,...

@Poshy163
Copy link
Collaborator Author

Heya @djangopap, currently AlphaESS does not expose this info to the openAPI,

Your best bet might be asking them if they can allow it? Otherwise there isn't much I can do here unfortunately

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

Successfully merging this pull request may close these issues.

Add Alpha-ESS Wallbox

4 participants