I’ve just completed an integration with Home Assistant for my OVMS module installed on my Nissan LEAF. I couldn’t find any existing resources on doing this so I thought I’d write up a quick blog post that explains how to achieve it. It’s pretty simple, but the OVMS API docs were a bit hard to make sense of, so hopefully having this documented somewhere is useful to others!
I even did a (questionably useful lol) integration with HomeKit. It will remain a bit janky though until Apple adds an EV type of entity to HomeKit (which is hopefully not too far away!).
Let me know how you find it! It’s been pretty cool to have the battery percent and range in HomeKit, even if it’s a little janky haha. I’ve also setup an additional template sensor for the SOH (state of health) so I can track it over time.
I looked at OVMS web and it is pretty poor. You cannot find anywhere if it is for electric cars only, or for any ODB-II compatible car, or what. Can you shed more light to it?
hello jabelone, seen your integration i OVMS, I have a Twizy with OVMS and I’m on https://dexters-web.de server
i might know if it is possible to integrate the same on HA and how to do it
Thanks for your nice work that you shared
This my configuration could you help me to adapt it for HA?
thank you
I get errors if I use https for the calls to https://api.openvehicles.com:6868
“curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number”
if I use http it works fine but I don’t like sending an unencrypted password to the internet.
Any Ideas what’s the cause?
Hello,
I tried several times to get the token from dexter-web.de but failed.
I managed to get the one from www.openvehicles.com
Has anyone of you managed to get a Token from the dexter-web.de server, if it was possible for you, can you help me? Thank you
Same issue here. The procedure doesn’t seem to work with Dexter-web.de. Did you ( @dolam ) manage to get the european car to work on the US openvehicles.com ?
I also had the curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number error message trying to get a token from https://api.openvehicles.com:6868. It looks like port 6868 expects http. However if you change that to port 6869 the https request works.
In addition, my password contained special characters which could not be put into the token request URL as-is, so I first used https://www.urlencoder.org/ to url-encode the password itself.