Cupra Born Support in Home Assistant

All CUPRA Born related discussions
Post Reply
daern
Posts: 177
Joined: Wed Jul 20, 2022 1:31 pm

Post by daern »

In case anyone uses Home Assistant, there is now an early, but extremely functional custom integration available for the Cupra Born. This is in early test form, but a few of us have been running it for a few weeks now and it's working absolutely excellently. Install the latest version using HACS or manually, using custom repository:

https://github.com/daernsinstantfortres ... e_connect/

Plenty of lovely data for you home automation geeks to use for new and inventive tasks :-)

Screenshot 2022-11-30 204555.png

Happy to help anyone out who wants to get this going but needs a bit of help. Also more than happy to accept any feedback, or bugs. (disclaimer: I'm not the one doing the bulk of the development, but I did the API reverse engineering and have been helping with the testing, so I do know my way around this a bit)
Last edited by daern on Thu Jun 08, 2023 4:33 pm, edited 1 time in total.

User avatar
Daveion
Posts: 432
Joined: Wed Jun 08, 2022 8:32 pm

Post by Daveion »

daern wrote: Wed Nov 30, 2022 8:47 pm In case anyone uses Home Assistant, there is now an early, but extremely functional custom integration available for the Cupra Born. This is in early test form, but a few of us have been running it for a few weeks now and it's working absolutely excellently. If you are interested, you can follow the development thread here:

https://github.com/tillsteinbach/WeConn ... /issues/26

...and download the latest version of the component here:

https://github.com/alangibson/volkswage ... 33f9b3.zip

Plenty of lovely data for you home automation geeks to use for new and inventive tasks :-)

Screenshot 2022-11-30 204555.png

Happy to help anyone out who wants to get this going but needs a bit of help. Also more than happy to accept any feedback, or bugs. (disclaimer: I'm not the one doing the bulk of the development, but I did the API reverse engineering and have been helping with the testing, so I do know my way around this a bit)
Hi daern
Would you mind explaining a little bit more what this and maybe advantages. For some reason I can't get the link to work properly and a zip file will not expand on my mobile? Will have to get to my laptop.
Born V2-Tech L collected June 22
BMW Z4 e89 sDrive30i Highline
BMW Z4 e85 3.0i SE
daern
Posts: 177
Joined: Wed Jul 20, 2022 1:31 pm

Post by daern »

Daveion wrote: Fri Dec 02, 2022 1:36 pm Would you mind explaining a little bit more what this and maybe advantages. For some reason I can't get the link to work properly and a zip file will not expand on my mobile? Will have to get to my laptop.
Sure. First step is to ask if you are familiar with Home Assistant (https://www.home-assistant.io) ? In short, it's a home automation platform which allows you to integrate lots of different devices from different companies in one place, so prioritises interoperability over closed ecosystems (e.g. Google, Amazon, Apple etc.) It's a bit different from the likes of Google Home as it's not cloud hosted (although it can certainly use cloud services to control devices if needed), but rather runs on a low-power computing device in your own home (a Raspberry Pi is popular), which means it continues to work even when your internet is broken - important for security applications.

A good practical example - if you have played with home automation, you'll soon find that every single device has its own app which only controls devices made by that one company. If you have a few different devices, you'll soon have a phone full of applications that all control individual devices, but won't work together. Home Assistant is designed to fill that gap, by supporting lots of different devices in one place. But that's only the start of it. Once you have them all in one place, you can start doing some really cool things that integrate *all* of your home's devices, and not just the few that happen to come from the same company.

The ID.3 has been supported through a third party "custom component" (this is how many integrations are added to extend the basic support of HA), but the Cupra actually has a very different API (because: VAG), so it's taken a few months for someone to document the API and implement it in HA, and this has now been done, allowing the car to become part of the overall home automation scheme.

I should add - it's very easy to get up and running with HA. Just need a spare RPi, and follow the numerous tutorials on getting it running. That said, it's still quite a "techy" product and the learning gradient can be pretty steep, but it's improved enormously over the last 2 years and you can do loads with it just pointing and clicking a mouse now.
NormanCross
Posts: 4
Joined: Fri Dec 02, 2022 9:16 pm

Post by NormanCross »

Daern - is the API documented/documentation available? I'd like to have a play with this (on another platform) when by Born arrives.
daern
Posts: 177
Joined: Wed Jul 20, 2022 1:31 pm

Post by daern »

NormanCross wrote: Sun Dec 11, 2022 8:48 am Daern - is the API documented/documentation available? I'd like to have a play with this (on another platform) when by Born arrives.
No, not officially. I reverse engineered it from the app so that another chap (who is better at python than me!) could adapt the ID.3 interface to work with the Cupra.

Everything we did is in this thread: https://github.com/tillsteinbach/WeConn ... /issues/26 so you should be able to pick it out from there. If you can make use of the Cupra-adapted WeConnect python library, this will make your life much, much easier. Unfortunately, the guy who was working on it has disappeared for a few weeks and not kept his own github repo up to date, but the latest, working python library is here: https://pypi.org/project/weconnect-cupra/ (this is what the Home Assistant integration uses under the hood)
daern
Posts: 177
Joined: Wed Jul 20, 2022 1:31 pm

Post by daern »

Due to a breaking change in HA 2023.3 (out in a couple of weeks), this is an updated version of the Cupra Born integration:
https://github.com/daernsinstantfortres ... fafd86.zip
(Note: this one does not report odometer due to the currently-broken API for 3.0 cars breaking the interface. I'll re-enable it as and when it's fixed)
daern
Posts: 177
Joined: Wed Jul 20, 2022 1:31 pm

Post by daern »

Updated version for people to test - adds support for monitoring doors, locks, windows etc:
https://github.com/tillsteinbach/WeConn ... 1464055457

Dunno if anyone here using this, but shout if you want pointing in the right direction.
mogyi
Posts: 6
Joined: Mon Jul 18, 2022 1:08 pm

Post by mogyi »

Thanks daer for keeping the links/thread updated. I will certainly give this a try when time allows. Cool concept!
User avatar
mluisbrown
Posts: 186
Joined: Wed Mar 08, 2023 4:46 pm
Location: Lisbon, Portugal

Post by mluisbrown »

Looks very cool. So does the WeConnect / My Cupra API allow you to pull historical data of charges, consumption etc, like the Tesla API does? If so it seem bonkers that they don't make that available in the My Cupra app!
2023 Born 58kWh, Glacial White, 19" Typhoon Copper, Skyline, Blue Dinamica electric seats, Cargo, Privacy, Pilot M+, Tech M
2003 Audi A3 8L 1.9TDi PD 130 with 360,000kms.
Elea4
Posts: 205
Joined: Fri Jun 10, 2022 5:19 pm

Post by Elea4 »

@daern - yes, thanks for your work here. Great to see this kind of open source initiative for collecting our own vehicle data.
mluisbrown wrote: Thu Apr 06, 2023 8:36 pm Looks very cool. So does the WeConnect / My Cupra API allow you to pull historical data of charges, consumption etc, like the Tesla API does? If so it seem bonkers that they don't make that available in the My Cupra app!
People also use Tronity for the same purpose. For a while (maybe still?) Tronity was free for Born owners, possibly due to the small user base not justifying charging for it.
Post Reply