kia_uvo icon indicating copy to clipboard operation
kia_uvo copied to clipboard

Set temperature 2°C lower in my car.

Open zadigre opened this issue 3 years ago • 64 comments

I’m in Canada I have a 2021 Kona Electric

When I start climate, temperature set in the car is 2°C lower. Temperature shown in HA is same what I’ve set in with start climate. But when I go in my car, it’s 2 lower.

When using the Bluelink app, it’s set properly in my car.

i set it 2 higher in HA and it’s set at my desired temperature.

zadigre avatar Dec 24 '21 17:12 zadigre

I will do another test on my car, assuming it works for me this means the temp range is different on the Hyundai car's vs Kia. It should be a quick fix. Thanks for raising it.

cdnninja avatar Dec 24 '21 18:12 cdnninja

Hi.. first off.. thanks so much for your hard work on this.. I have been using it for awhile now and love the ability to finally start my car.. lol.. I also created a node-red to check for locked then following that command start the vehicle.. works awesome.. The reason I jumped in here is I am also in Canada with a Kia Seltos 2021 and when I start_climate with temperature it also sets 2 degrees lower.. I can try and grab the log if you think that will help.

dallaby23 avatar Dec 25 '21 00:12 dallaby23

Hoping to grab time with my wife's car to test this out. If I can replicate it will be a quick fix. Could I confirm what version you are running?

cdnninja avatar Dec 25 '21 02:12 cdnninja

1.2.5 .. I just updated before testing this evening..

On Fri., Dec. 24, 2021, 9:32 p.m. cdnninja, @.***> wrote:

Hoping to grab time with my wife's car to test this out. If I can replicate it will be a quick fix. Could I confirm what version you are running?

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/kia_uvo/issues/220#issuecomment-1000961168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RVHYBNT44FXT32AUTTUSUUKTANCNFSM5KW4SQXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

dallaby23 avatar Dec 25 '21 02:12 dallaby23

@cdnninja As soon as you release something on the master branch, I’lol test it 😉

zadigre avatar Dec 25 '21 10:12 zadigre

I tested it out. In my single test using the default values in home assistant my car started but 0.5C off. I have found a potential bug in the math that impacts 22C only. Have you tried other temps to see if this impacts multiple temps? If it is multiple I may need you to capture details from a web browser to see what Kia / Hyundai is passing to start the car. This could be an electric car issue, I have an ICE.

cdnninja avatar Dec 25 '21 16:12 cdnninja

@cdnninja it's happening with multiple temperature for me. I usually use 19.5 in Bluelink app. If I try with the same temperature in HA, it will set to 17.5 in the car. I actually do not see it in the car at this temperature (the screen is off), but next time I turn on my car, temperature is at 17.5. After finding out about the 2°C difference, I set it to 21.5. and I've got 19.5 in my car.

zadigre avatar Dec 25 '21 16:12 zadigre

Could you start the car via your webbrowser with correct settings? Ideally as close to HA defaults as possible while doing this: https://github.com/fuatakgun/kia_uvo/wiki/How-to-sniff-API-via-MS-Edge You are looking for a section that will look like: payload = { "hvacInfo": { "airCtrl": int(climate), "defrost": defrost, "heating1": int(heating), "airTemp": { "value": set_temp, "unit": 0, "hvacTempType": 1, }, }, "pin": self.pin,

cdnninja avatar Dec 25 '21 16:12 cdnninja

I can see my temperature when I look through the window when I start it and mine is always 2 degrees lower..

On Sat, Dec 25, 2021 at 11:58 AM cdnninja @.***> wrote:

Could you start the car via your webbrowser with correct settings? Ideally as close to HA defaults as possible while doing this: https://github.com/fuatakgun/kia_uvo/wiki/How-to-sniff-API-via-MS-Edge You are looking for a section that will look like: payload = { "hvacInfo": { "airCtrl": int(climate), "defrost": defrost, "heating1": int(heating), "airTemp": { "value": set_temp, "unit": 0, "hvacTempType": 1, }, }, "pin": self.pin,

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/kia_uvo/issues/220#issuecomment-1001044938, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RQWMF2U766QWWI3AF3USXZ3PANCNFSM5KW4SQXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

dallaby23 avatar Dec 25 '21 17:12 dallaby23

Actually a potentially easier way to check this. In your app what range of options do you have for temp? Our code is using 16-32 in 0.5 increments. Do you see 14 as an option?

cdnninja avatar Dec 25 '21 17:12 cdnninja

@cdnninja in the app and on mybluelink.ca, I have 17-27 in 0.5 increments.

zadigre avatar Dec 25 '21 17:12 zadigre

@cdnninja

when setting temp to 19.5 on mybluelink

hvacInfo: {airCtrl: 1, defrost: true, airTemp: {value: "0BH", unit: 0, hvacTempType: "1"}, heating1: 0} airCtrl: 1 airTemp: {value: "0BH", unit: 0, hvacTempType: "1"} hvacTempType: "1" unit: 0 value: "0BH" defrost: true heating1: 0 pin: "XXXX"

zadigre avatar Dec 25 '21 17:12 zadigre

So for my kia seltos there is a slider with "lo" at the min and "hi" at the max.. in between I can set between 17.0-27.0 in .5 increments..

On Sat., Dec. 25, 2021, 12:06 p.m. cdnninja, @.***> wrote:

Actually a potentially easier way to check this. In your app what range of options do you have for temp? Our code is using 16-32 in 0.5 increments. Do you see 14 as an option?

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/kia_uvo/issues/220#issuecomment-1001045692, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RVTRVJUCZKJYW6L263USX227ANCNFSM5KW4SQXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

dallaby23 avatar Dec 25 '21 17:12 dallaby23

Perfect that is exactly what I need. It looks like your EV cars use the same range as what we found for EU EV which is different than Canadian ICE cars. I will see if I can code something up quick before I head out. If not this may be tonight or in a few days.

cdnninja avatar Dec 25 '21 17:12 cdnninja

Sorry my car is a gas 2021 Kia Seltos .. not EV..

On Sat., Dec. 25, 2021, 12:44 p.m. cdnninja, @.***> wrote:

Perfect that is exactly what I need. It looks like your EV cars use the same range as what we found for EU EV which is different than Canadian ICE cars. I will see if I can code something up quick before I head out. If not this may be tonight or in a few days.

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/kia_uvo/issues/220#issuecomment-1001050372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RREHTTA2CXCLPQCRRDUSX7HNANCNFSM5KW4SQXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

dallaby23 avatar Dec 25 '21 17:12 dallaby23

#224 will solve this for an EV @zadigre could you replace your Canada API file with it to test?

@dallaby23 this means they have changed temperature ranges on cars, now we have to figure out which cars and how to detect this. Mine is a 2019 Sorento ICE. This could be a generation of the UVO system, or the year.

cdnninja avatar Dec 25 '21 17:12 cdnninja

@cdnninja is it available in Master branch directly?

FYI, Here’s the info for 17°C hvacInfo: {airCtrl: 1, defrost: true, airTemp: {value: "06H", unit: 0, hvacTempType: 1}, heating1: 0}

And 27°C hvacInfo: {airCtrl: 1, defrost: true, airTemp: {value: "1AH", unit: 0, hvacTempType: 1}, heating1: 0}

zadigre avatar Dec 25 '21 17:12 zadigre

No it is under #224 so you will need to copy paste the one file.

cdnninja avatar Dec 25 '21 17:12 cdnninja

@dallaby23 could you use the same sniff from above? I'm wondering if the temptype is the key. I have only seen that being different on an EV but if yours is 1 as well that may be it.

cdnninja avatar Dec 25 '21 18:12 cdnninja

@cdnninja looks like it's working as intended now with the new file. I tried my my 19.5 setting in HA... and car was set at 19.5. I'll let you know if I encounter any other problem.

zadigre avatar Dec 25 '21 18:12 zadigre

Could each of you also confirm on a start that the temp sensor displayed in home assistant is wrong? Just want to confirm that. This only works while car is running otherwise will show a low number: image

cdnninja avatar Dec 25 '21 18:12 cdnninja

@cdnninja Capture d’écran, le 2021-12-25 à 13 24 35

so I guess the translation here is not done properly.

zadigre avatar Dec 25 '21 18:12 zadigre

@cdnninja and also when I set the temperature to 19.5 on mybluelink or Bluelink app, set temperature is also shown as 21.5 in HA

zadigre avatar Dec 25 '21 18:12 zadigre

Out doing some Christmas stuff so might not be available till tomorrow..

On Sat., Dec. 25, 2021, 1:37 p.m. zadigre, @.***> wrote:

@cdnninja https://github.com/cdnninja and also when I set the temperature to 19.5 on mybluelink or Bluelink app, set temperature is also shown as 21.5

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/kia_uvo/issues/220#issuecomment-1001058890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RRZ5DVEVHNEXAWELCDUSYFODANCNFSM5KW4SQXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

dallaby23 avatar Dec 25 '21 19:12 dallaby23

@cdnninja

and also when I set the temperature to 19.5 on mybluelink or Bluelink app, set temperature is also shown as 21.5 in HA

Yes I'll need to update that logic as well. I'll wait to see if we can find out why your two cars are different than mine.

cdnninja avatar Dec 25 '21 19:12 cdnninja

k.. quick test.. started 2021 Kia Seltos Canada.. car shows 21.. Set Temperature in HA shows 23.. Air Temp value shows 0EH and unit is 0 .. Air Temp unit is C ...

On Sat, Dec 25, 2021 at 2:17 PM cdnninja @.***> wrote:

@cdnninja https://github.com/cdnninja

and also when I set the temperature to 19.5 on mybluelink or Bluelink app, set temperature is also shown as 21.5 in HA

Yes I'll need to update that logic as well. I'll wait to see if we can find out why your two cars are different than mine.

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/kia_uvo/issues/220#issuecomment-1001063653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFF6RXHKXWCC6YJOSDFBCDUSYKDBANCNFSM5KW4SQXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

dallaby23 avatar Dec 25 '21 20:12 dallaby23

Yes the range is different for your car. I am interested to see what the website sends and what hvacTempType is set to.

cdnninja avatar Dec 25 '21 20:12 cdnninja

Basically the way it works is it send a hex number that is just the index of the temp from a list. Your list seems to be 2 degree different than mine. Need to find a way to predict it so we can get it right for both cars. Could we also get the data for yours from the data element in home assistant?

cdnninja avatar Dec 25 '21 20:12 cdnninja

@cdnninja do you need anything else from me or we are all set for now?

zadigre avatar Dec 25 '21 21:12 zadigre

@cdnninja

do you need anything else from me or we are all set for now?

Good for now. Thank you! Hyundai and Kia we are finding are interesting. Very little consistency.

cdnninja avatar Dec 25 '21 21:12 cdnninja