-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend checking to handle None value in case of hybrid car #13
base: main
Are you sure you want to change the base?
Extend checking to handle None value in case of hybrid car #13
Conversation
@daernsinstantfortress this should fix these issues with the home assistant integration: This happens because i have an Cupra Born and an Cupra Leon e-hybrid in my MyCupra App. It seems that the hybrids report None for the two fields. |
@neubi4 Hello, that means, it is possible to manage a Born and a second car (Hybrid) with this integration parallel? I have a Born and a Tarraco hybrid (which should be similar to the Formentor) and i‘m not able to get the integration started. As shown it is necessary so change to files. I tried, but it is not working for me. Maybe you can give me some hints/more Information. (Maybe parallel in german language) Thanks and best regards |
@12retord you need the changes from this PR and also these changes https://github.com/daernsinstantfortress/cupra_we_connect/pull/78/files to get it working. Du musst die Änderungen von diesem PR hier vornehmen und auch die von https://github.com/daernsinstantfortress/cupra_we_connect/pull/78/files damit das funktioniert. Ich hab das zuletzt aber im August getestet, ich weiß nicht ob das noch aktuell ist. |
The changes #78 are no problem. Die Änderungen in der sensor.py sind kein Problem, die Datei liegt ja im Verzeichnis: /custom_components/cupra_we_connect Mit der charging_status.py komme ich nicht klar. Oder brauche ich einen komplett anderen Ansatz? |
I have the same problem with my Cupra Formentor. Is there a solution now? |
My solution is to use two Integrations, the Seat Connect for my Tarraco Hybrid in combination with the (old)Seat Connect App. And for the born i created a new user with a different Email. You are not able to controll anything in the my_cupra app, but you get all the things shown in HA. For controling your born with the my_cupra app you have to login again with the main-user-account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked this with my Cupra Formentor Hybrid.
Worked well with the modification.
How do I carry out the modifications? I'm a complete newbie at this. It would be nice if someone could help me with that. Also in German. where can I find the file "weconnect_cupra/api/cupra/elements/charging_status.py" |
The file is outside your home assistant config directory. This is the complete path: Cupra Leon ehybrid was imported successfully after making the changes above. |
Testing the code with my Formentor Hybrid car I got a crash due to a None value returned on the chargePower_kW and chargeRate_kmph attributed returned as None.
I extend the code to fix it.