So I recently went through the required hoops to get the root password for my Alfen Eve charging station and took it “offline” (disconnected the remote backoffice for which I had to pay 6 Euro’s per month, and converted the P1 cable into a network cable, and added back load balancing capabilities via the HomeWizard P1 WiFi dongle). I now have several options to integrate into Homey:
Talk to the Alfen HTTP API directly (which is also used by the ACE Service Installer application and gives full access to all configuration items)
Run an Energy Management System (maybe combined with something like EVCC.io) and integrate that into Homey (write custom app or use the proven MQTT route)
Build an app for Homey that basically implements the OCPP server protocol and have the charger talk directly to that (the most low-level option, but can add a lot of awesome features as if you’re running your own remote back-office provider!)
I think I’m gonna give the 3rd option a try. This would not only add support for the Alven Eve, but a whole lot of other chargers that support OCPP (which is pretty much the industry standard nowadays, at least in the EU).
Implementing OCPP is going quite well. I can send and receive messages to a (simulated) charging station. I have also made a start on auto-discovery for known charging station manufacturers, starting with Alfen (based on mDNS). I’m implementing OCPP in such a way that any charging station that was added during a Homey pairing flow is automatically whitelisted on the OCPP server. Then you can configure the charging station to point to Homey as remote back office (I’ll add some instructions in the pairing flow). I’m also adding RFID tag whitelisting to the app settings. Please let me know what other features you would like to see.
Depending on the charging station it could still be possible. OCPP supports a charging station having multiple back office providers (on different network interfaces, e.g. LAN for Homey and SIM for a remote provider that you use for automated billing). OCPP also supports proxying, so I could add that to the Homey app so you can still forward the charging session information to the billing provider.
Makes sense! I’m not sure if that’s standard OCPP functionality, or an Alfen custom message. Could still be implemented by creating some device sub-types for specific manufacturers with additional controls.
Also an option, but ModBus isn’t universal for all charging station brands, whereas OCCP is a standard (higher-level) protocol specifically for charging stations. This means the Homey user would need to configure a lot more things to access the correct ModBus registers, and there is more room for writing faulty data to the charging station and breaking it in the process.
Not much progress, switched jobs, went on vacation and worked on feature requests and bug fixes for my other Homey apps. I have a basic connection working (charging station can connect and authenticate, and send keep-alive messages). Next step would be deciding which basic functionality to start with so I can publish a first (test) version. Some preliminary code can be found here: homey-ocpp/drivers/ocpp/device.ts at main · ChrisTerBeke/homey-ocpp · GitHub.
Have been working on an Alfen integration. So far it is only to see how much energy has been used for the new energy dashboard. It connects to the API of the charger (partially same data as can be seen in the MyEve app). However it is quite hard to set-up. You need a username, password and fixed IP, and the fixed IP must be in the same subnet as your Homey. So if you have a network set-up with multiple subnets for WiFi, Domotica, and other devices both the Charger and Homey needs to be in the same network (and if you want to access it through the MyEve app, then also your phone).
You need to enter the username (admin), IP and password in code and compile your own version. Then you can add the charger as device. After that you get some nice details and power usage will show up in the new Homey Energy feature
I want to make it more dynamic with discovery and a set-up wizard, but haven’t found the best documentation from Athom yet on how to do that properly per device.
Super, just installed it and works nice. Now I can limit the SOC of the I-pace that does not have this option in the car. It is still a calculation but better than limiting timewise