I also got an answer from Defa support when I asked about API.
“So far, there is no public API available and no timeline if it will come.”
I asked them to forward API request to the developer, hopefully they will pick it up.
Anyone managed to setup DEFA to Home Assistant? Last time I spoke to them they said it is not possible and probably won’t be possible in the future either, but things might have changed ?
No, DEFA and their managing company CloudCharge dont want private users to have the possibility to manage their own chargers. They want users to pay a expensive fee to Cloudcharge. The only way a private owner can control their charger are on the DEFA Power app. So if you are thinking of buying a DEFA Power, think once more and buy something else.
My local electricity company did have DEFA Power integration. But they have removed Defa Power integration, due to many integration errors from DEFA.
I am one of the developers writing firmware for this charger and can clarify: it only supports OCPP 2.0 whereas there is no OCPP 2.0 add-on for Home Assistant, not as far as I know anyway.
But should you somehow obtain an OCPP 2.0 CSMS running in your LAN, you can always use wireshark to see what the charger tries to connect to and then give it a DNS server which will resolve that to your IP address. A bit convoluted, I know, but they chose to not have an option to send custom CSMS URL from bluetooth application.
Thanx for answer many of us that really regret buying this piece of crap that only are tied to a Cloud server that are meant for big parking areas and not to a singel house owner who wants to control the charger for them self.
DEFA:s technical experts are so stupid and dont know shit.
Will the app continue working even if I get the charger to connect to my own HA CSMS?
I’m currently working on a Home Assistant integration for DEFA Power. You can find the GitHub repository here: https://github.com/Bebbssos/ha-defa-power
To install it using HACS:
- Add a custom repository:
- Repository:
https://github.com/Bebbssos/ha-defa-power
- Type: Integration
- Search for DEFA Power and download it.
That is really awesome! Are you open to contributions (not promising anything but I’d love to try to find some time to help)?
I’m definitely open to contributions. Feel free to submit a pull request whenever you have time.
How do I get a developer token?
I did select the option to use phone number and only entered the phone number on the format of +467… (Sweden, 00467… didn’t work) and left the other entry empty. I got a sms with a verification code to enter at then next step.
Thanks for creating this
In your screenshot there is a meter value that seems to show total consumed energy. When I added this I am missing that, could that be due to my firmware version?
Edit: It showed up now after a while on the device, seems it can take a while to populate the list of entities?
I can see it under all entities but not under the charger for some reason
Edit: It showed up now after a while on the device, seems it can take a while to populate the list of entities?
Wonderful work Bebbssos! Have been using this integration for a while now and it is really working well. I mainly use it to stop charging when the total current over the main fuses is near the limit. Thanks to this I have not blown a single fuse since this integration was set up. Would it be possible to lower the charging current instead of stop charging completely? Is charge current one of the entities that can be added?
Looks awesome!
Thanks!
Installed integration, used the phone number method and got the sms code. Everything allright until then but my charger does not show up. Can’t see any device, sernsors… attaching screenshot here. The charger is visible in CloudCharge and Defa Power apps. Could it be because it is a DEFA Erange IQ charger??
If I click on “Configure” I am able to retrieve user-id and token.