I've been waiting for someone to successfully reverse engineer the BYD app for two years now and it looks like someone's cracked it, *and* built a custom integration for Home Assistant! > The byd_vehicle integration connects Home Assistant to the BYD cloud service using the pyBYD library. It provides extensive vehicle telemetry, GPS tracking, climate control, door locks, seat climate, and remote commands for BYD vehicles.
Thank you for the information!
Pro Tip: Create a second BYD account and authorise it from your main account. Otherwise it will log you out of the app on your main account - as you can only use the login on one device.
Ahhh that is good to read it finally happened! I still remain very suspicious as BYD will probably try their best to keep things closed-source as much as possible...but I'll give it a try!
Excellent news! Thank you so much for your effort.
For Alexa too?
yes, I agreed. However I truely hope BYD realises theres an oppertunity here instead of just letting corporate greed drive them. Instead of continuing with the locked down API they release an open one instead, well atleast one could dream, right? Anyway, couldn't have done it without [https://github.com/Niek/BYD-re](https://github.com/Niek/BYD-re) \- you should all thank him
I got it working, but the concept of the secondary BYD account does not seems to work in combination with the integration. The integration requires a login/password and when I create/authorize a secondary mail-account through the app you are not prompted to put a password on that one ? Strange.
Well done, integration works smoothly and I finally can integrate the car with automations
Legend thanks! Been using the SmartCar integration but it has an annoying API monthly cap.
You say you did get it working. So I guess you used your main BYD account then (since the concept of a secondary account failed). How then do you handle the logout issue since BYD does not allow more than a single login at any time?
I don't ;-) Indeed when I now open the Android app I need to login again. So this is not so ideal situation to work like this. Is there anyone actually have this working that the HA integration effectively uses a "delegated" access ? Not fully waterproof here I think.
What do you mean "smoothly"? How about this issue; [https://www.reddit.com/r/BYD/comments/1r3l3wz/comment/o56xswn/?utm\_source=share&utm\_medium=web3x&utm\_name=web3xcss&utm\_term=1&utm\_content=share\_button](https://www.reddit.com/r/BYD/comments/1r3l3wz/comment/o56xswn/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button) Did you manage to solve this?
Yes I set up a second account (mainemail+homeassistant@gmail.com), delegated full access. After going through all the set up steps on the BYD app on my phone, including setting a pin for unlocking etc, I logged out and logged back into my mainemail@gmail.com, then configured the integration on HA with the delegated access account. The app prompts me to set up a password etc as with my primary account. Not sure where you're going wrong.
Yeah, all working perfectly, just create a secondary user, and the CAR should have a 6 digit PIN code, across all accounts. That’s it all https://preview.redd.it/reefs7ub2ejg1.jpeg?width=1832&format=pjpg&auto=webp&s=0f9bb56e04556bced61122b1113e348628ad08c9
I got it working now with a secondary account after re-creating the delegated account. All good now!
I get "Invalid authentication", i have tried with both main and 2 auth accounts? any idea what that could be?
Have you chosen the correct regions
It was a case of to complex password, shorter password without spesial characters and it worked perfectley. All credit to developer
Is it absolutely necessary to enable debugging mode? Or can it finally be enabled without difficulty in very recent versions?
It just worked. of course between me reading about it, installing it and then configuring it, and updated version was released. Easy update and it just works. Anyone built any amazing dashboards around this yet?
Worked at first try. Thank you! Remarkable amount of entities and sensors available 👍 But the most important sensor remains "unknown" and that is the Location sensor! Has anyone been able to populate that sensor?
Did you grant access to location to your secondary BYD account?
Yes, I did. But I guess the process of setting up a new account caused the GPS positioning to be flushed/reset, thus the most recent position no longer exists, and since my car is inside an undergrund garage there's no new update. I've come to this assumption after discovering that may Android BYD App also fails to show position now, after logging out and back in. I guess I'll have to take her for a spin to find out 😊
Can't wait to see how creative people get with their dashboards for this one.
Wow thanks, I was looking for an integration for BYDs. Hope it will work in the future as well.
I used an ultra card template from user ‘AtillaP’ as inspiration, reworked it for RHD Australian version and match my neon colour scheme: https://preview.redd.it/bx1i8g39mnkg1.jpeg?width=1179&format=pjpg&auto=webp&s=5d3724360205262cdd5fc1569e8602160ae52be5 Original template [here](https://ultracard.io/presets/byd-vehicle-control/)
Anyone know if this allows you to schedule or turn on/off the AC charging?
Decided to test it myself. Cannot see charging on/off or timetable functions.
Yes it does.
Really, where? I could not see under controls. Can see a sensor for charging, but that's not what I'm after. https://imgur.com/a/l72dPvH
Click on climate and it opens a pane.
Ah sorry for the confusion. I'm looking for settings which turn on/off the granny charger, not the air con. By AC I meant the AC current, not air con 😅. I was looking to link up the charger to my solar panel sensors. So I can charge when there's excess solar etc
Wow, looks great. Are you willing to share the exported template from your rework? I can see the rework and love what you did with the top down view.
Here's the current attempt, seat controls still aren't quite working and it points to helper sensor templates that convert the kpa readings to psi for the tyres so will need to create those or change the target. [https://gist.github.com/IMSancho/103e807c6f8a2ceeabd9971e3e631275](https://gist.github.com/IMSancho/103e807c6f8a2ceeabd9971e3e631275)
Thank You!!!! I'll have a play and see where I go with it. Atto3 here so I guess some sensors will be quite different than the Seal, but I like it.
This looks really nice. How do I get this working with yaml in UltraCard? Never relly used UltraCard before it just give s me a preset code. Is this behind a paywall?
All you should need to do is create a new card, and at the top of the ultracard layout menu there is an import button. Click that and paste the code from here [https://gist.github.com/IMSancho/103e807c6f8a2ceeabd9971e3e631275](https://gist.github.com/IMSancho/103e807c6f8a2ceeabd9971e3e631275)
mines constantly shows as plugged in, anyone else the same?
Any chance of the byd integration , ahem, INTEGRATING 😁 with evcc to charge byd cars?
Non si rischia così di aprire la strada a possibili attacchi hacker?
Login is required to comment.
Login with Google