Alfen Eve Pro EV chargepoint interface via TCP modbus

I’m puzzled as to what you are really after. In my opinion your question is already answered by the first post in this thread (Alfen Eve Pro EV chargepoint interface via TCP modbus).
All available parameters can be obtained from Modbus Register Table contained in document “Modbus Slave TCP/IP - Implementation of Modbus Slave
TCP/IP for Alfen NG9xx platform”, availble for download from Alfen Website.
If this is not what you were after, let me know!

Unfortunately it’s not what I’m looking for. I’m - like many in this thread - using the Modbus registers to consume various data. Instead of steering myself the max current, I’d like to activate the P1 meter to let the Alfen handle the load balancing.

For that I need to activate “Meter + EMS monitoring”. An option which is not available in the MyEve app, it’s only via the ACE installer (windows).

In the MyEve app however it’s possible to check and edit the configuration via “properties”. Make a change via the menus and you’ll see that properties change accordingly (I think Alfen Eve is configured via these properties, the MyEve is a layer over this).

It shows like this. I’d like to know what these settings show like if you’re using “Meter + EMS monitoring”. Current observations:

  • -1 = For EMS monitoring
  • 4 = Modbus TCPIP
  • 5 = DSMR P1

I got some support from Dutch tweakers forum: I was focussed on the wrong property.
Activate your load balancing on P1 DSMR (at least in my case).
Then update the follow registers to enable Modbus slave:

  • 2530_01 => 1
  • 2530_02 => 0

This delivers via MyEve the “Meter + EMS monitoring” solution.

My single Eve was also to far from my meter, out the solution was the p1 dongle from HomeWizard put the P1 value’s on the internet connection via wifi. The Single Eve is via wire connecties to the router.

Hello,
I also have an Alven wallbox with the activ load balancing licence. I can also charge the car and switch the charging power. However, if I don’t charge the car for a few minutes, I have to reconnect the charging cable every time. Which setting is wrong? Does anyone have any ideas?
I have made these settings in the ACE service installer:

But I can’t activate the Solar Cahrging.Alfen Eve Pro EV chargepoint interface via TCP modbus - #275 by aerrow5

Hi guys,

I had my alfen ev charger installed last month and I am now trying to integrate it to my homeassistant. I have found plenty of useful information in this thread, so thank you all for that.

However, I am facing an issue when trying to connect to the hacs integration called “Alfen Wallbox”. As you can see, I am inputting admin as the username, my charger’s IP, the password I’m using to log into ACE windows app and my charger’s name.

There is an error message called “Unexpected error occured”. Please see the attached pictures for reference…

My system’s log looks like this:
Logger: custom_components.alfen_wallbox.config_flow
Source: custom_components/alfen_wallbox/config_flow.py:53
integration: Alfen Wallbox (documentation)
First occurred: 13:53:28 (3 occurrences)
Last logged: 15:58:40

ClientError
Traceback (most recent call last):
File “/usr/local/lib/python3.12/site-packages/aiohttp/connector.py”, line 1061, in _wrap_create_connection
sock = await aiohappyeyeballs.start_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohappyeyeballs/impl.py”, line 104, in start_connection
raise first_exception
File “/usr/local/lib/python3.12/site-packages/aiohappyeyeballs/impl.py”, line 82, in start_connection
sock = await _connect_sock(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohappyeyeballs/impl.py”, line 174, in _connect_sock
await loop.sock_connect(sock, address)
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 641, in sock_connect
return await fut
^^^^^^^^^
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 681, in _sock_connect_cb
raise OSError(err, f’Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed (‘192.168.1.11’, 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/config/custom_components/alfen_wallbox/config_flow.py”, line 53, in _create_device
await device.init()
File “/config/custom_components/alfen_wallbox/alfen.py”, line 105, in init
await self.get_info()
File “/config/custom_components/alfen_wallbox/alfen.py”, line 128, in get_info
response = await self._session.get(
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/client.py”, line 659, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/connector.py”, line 557, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/connector.py”, line 1002, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/connector.py”, line 1336, in _create_direct_connection
raise last_exc
File “/usr/local/lib/python3.12/site-packages/aiohttp/connector.py”, line 1305, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/connector.py”, line 1076, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.1.11:443 ssl:<ssl.SSLContext object at 0x7f04ea0ae0d0> [Connect call failed (‘192.168.1.11’, 443)]

any ideas?

Hi,
I also installed my wallbox and want to integrate it.
Have you closed myEVE mobile app and ACE installer?
Wallbox accepts ONLY ONE connection at a time.
If you enable the device in HA you wont be able to use the mobile app.
In my case, the logout button also does not work, i had to “disable” and “enable” the whole device in HA, to be able to connect via ACE again.
image

I got another pretty basic question (my car will ship in january, so i dont own an EV atm)
The documentation of solar charging is a bit poor. I own a Fronius Smart meter and it doesnt seem to integrate directly with Alfen WB.

I want to use HA / Modbus to tell the wallbox when and with what power to load.
How can I do that?
Can I set Solar Charging mode to “comfort” and use the comfort level (1400W - 11KW) for it? Or do I need to configure a smart meter to get this whole solar thing working?

How can I achieve, that I plug in the car and loading will first start, when ha sends a command?

Hi, I’m trying to do the same thing.
Can you confirm this setting allows the default P1 loadbalancing AND the readout/monitoring via modbus?

You are correct!

Thanks for confirming!

Hi Guys, anyone got a good automation for belgium (captar) owners? (not node red)
For example, lets say the max captar is 6kW , so i want to have max charging with 6 KW including household consumption
The only exception is offcourse solar charging ( when there is sun :slight_smile: ) , i want to go above 6 kW …

thnx in advance

I also had trouble with the Alfen Wallbox integrations.
I made some new scripts that work fine.
For those of you that would like to use it:
See GitHub - hangerrits/HomeAssistant-Alfen-load-balancing: Load balancing in HomeAssistant for Alfen charger

That’s interesting, I have a look later… Do you also live in Belgium where the captar is used? Is your script able to do phase switching? Let’s say, you define a max of 5000watt, the charger uses 4000 , then something on the household uses 3000 watt for more then xx minutes, I want to change the charger to use 2000 instead, and goto 1 fase switching… If the househokd is stable again, it should switch back to (5000-currenthousehold)

I have one made in an automation so it is in yaml. You can set a maximum power to user and then uses the difference between the value and the current power consumption in the house to set the phase and current for the charger
It uses the HACS Alfen integration to communicate with the charger though.

Ah, that’s what I’m looking for… Can you share it?
@straybiker

I put it on github: https://github.com/straybiker/HA-load-balancer
Note: It is currently fully tailored to my private situation.

1 Like

Perfect, will have a look later, does it also allow phase rotating? Lets say, you define 6000 watt max, and the household is e000, and you were charging at 3 phase, does it change back to 1 phase and 3000 ? And house hold changes back to 500, so it changes back to 3 phase charging and 5500 watt?