question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2019 Hyundai Kona EV calling wrong start_climate method

See original GitHub issue

I just updated to v1.26 after working with @cdnninja to get climate working in Hyundai EVs and it working after taking the update. I did some poking around in the code and was able to determine that it was calling start_climate instead of start_climate_ev as a result of this check on line 195 of Vehicle.py not evaluating to true:

if self.engine_type == VEHICLE_ENGINE_TYPE.EV and self.region == REGION_CANADA:

it seems that self.region does not equal REGION_CANADA (“Canada”), and from what I could tell it isn’t even a string. Printing it out with _LOGGER.debug errored out saying it was an int, and when cast to a string it evaluated to ‘2’ - possibly related to REGION_CANADA’s position in the REGIONS dictionary? I solved it for myself by commenting out part of the condition that checks the region, but I couldn’t come up with a proper fix for everyone else.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
Kevr0n228commented, Dec 20, 2021

@cdnninja - tested #216, start_climate_ev and stop_climate worked as expected. Thanks for the fix!

0reactions
cdnninjacommented, Dec 20, 2021

I am going to close this again as it looks like the OP’s issue is solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

REMOTE START No Longer Working in 2019 Kona EV Ultimate
I have a 2019 Kona Ultimate Electric. My remote start and climate control worked perfectly the first 10 months. Now, even after a...
Read more >
Hyundai Kona EV Software needs to be improved ! - YouTube
I really like this car, but the software experience could be so much better. Thankfully it's software so it can be fixed?
Read more >
Hyundai Kona Recall - Nita Lemon Law Firm
Defective engines aren't the only problem with Hyundai Konas. Previously, Hyundai issued a safety recall of the model year 2019-2020 Kona EV (electric ......
Read more >
Getting Started Guide
KONA Electric. 2019 Hyundai. Table of Contents. Getting Started Guide. Audio, Connectivity, and Navigation. Smartphone Integration. 3. Phone Pairing.
Read more >
2023 Kona Electric SUV | All-Electric SUV | Hyundai USA
Introducing the 2023 Kona Electric SUV. Packed with tech, style, & comfort our all-electric SUV is ready to take on life's adventures. Click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found