Good day,
I have an Alfen wallbox installed here at home and trying to set it up with Home assistant.
I have full acces to the wallbox and using the GitHub - leeyuentuen/alfen_wallbox: Alfen wallbox - Home Assistant Component · GitHub integration.
So far so good and I have been able to make a connection and read out the wallbox information.
However it is not clear to me how i'm able to send information back to the wallbox in order to use the active load balancing or solar charging mode.
I can see in the integration that the wallbox reports a fluctuating Modbus TCP/IP connection state error.
I have gone trough some topics and sites but its a lot to figure out what I actually need to do to setup this modbus connection box.
Would this Alfen wallbox expect by any change expect a MID power meter?
It just happens I created exactly that for my own system, a freely modifyable MID faker (esp32 with modbus)
It allowed me to control the EV, by faking the power usage at my place.
So now I only charge when I have a surplus solar, or when the energy price is low (LOL, last week the prices where negative, si i actually got paid to charge my car )
Basically use node red to send how many Amps the Alfen can use to charge.
Then I used claude desktop in combination with home assistant mcp server to dynamically change the amount of Amps based on the total current used in my home. It even switches phases from 1 to 3 phase charging.
Noted and I will look into that one.
But this is at the moment more then I require.
If I'm correct It should be possible to send just the P1 data received by home assistant to the Alfen Wallbox. This is the first setup I would like to get to work before I'm even gonna think about controlling everything via home assistant.
So my basic question is how can I send the P1 data received by Home assistant via Modbus to the alfen Wallbox.