kia_uvo icon indicating copy to clipboard operation
kia_uvo copied to clipboard

HomeAssistant does not show correct lock status

Open GD-L opened this issue 1 year ago • 3 comments

Region and Brand of car North America/US, 2022 Hyundai Palisade.

Describe the bug Locked status does not accurately reflect the current status of locks. Debug log accurately reflects doorLockStatus: false after calling unlock, but the state of the homeassistant lock reflects a locked status.

2022-08-12 11:02:07.560 DEBUG (SyncWorker_2) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - get_cached_vehicle_status response {'hataTID': 'wNzXGKzoQSeo6MgLrzdQPQ', 'vehicleStatus': {'dateTime': '2022-08-12T14:50:28Z', 'acc': False, 'defrostStatus': 'false', 'transCond': True, 'doorLockStatus': 'true', 'doorOpen': {'frontRight': 0, 'frontLeft': 0, 'backLeft': 0, 'backRight': 0}, 'battery': {'batSoc': 79, 'sjbDeliveryMode': 1}, 'seatHeaterVentInfo': {'rlSeatHeatState': 2, 'drvSeatHeatState': 2, 'rrSeatHeatState': 2, 'astSeatHeatState': 2}, 'vehicleLocation': {'coord': {'alt': 108.0, 'lon': -78, 'type': 0, 'lat': 35.}}, 'ign3': False, 'ignitionStatus': 'false', 'lowFuelLight': False, 'sideBackWindowHeat': 0, 'dte': {'unit': 3, 'value': 313.0}, 'engine': False, 'remoteWaitingTimeAlert': {'remoteControlWaitingTime': 168, 'remoteControlAvailable': 1}, 'hoodOpen': False, 'airConditionStatus': 'false', 'steerWheelHeat': 0, 'trunkOpen': False, 'doorLock': True, 'airCtrlOn': False, 'airTemp': {'unit': 0, 'hvacTempType': 1, 'value': 'LO'}, 'sleepModeCheck': False, 'defrost': False, 'tirePressureLamp': {'tirePressureWarningLampRearLeft': 0, 'tirePressureWarningLampFrontLeft': 0, 'tirePressureWarningLampFrontRight': 0, 'tirePressureWarningLampAll': 0, 'tirePressureWarningLampRearRight': 0}, 'trunkOpenStatus': 'false'}}

2022-08-12 11:03:40.566 DEBUG (SyncWorker_0) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - get_cached_vehicle_status response {'hataTID': 'wq3RMydNQmubP4bsg3NXpg', 'vehicleStatus': {'dateTime': '2022-08-12T15:02:35Z', 'acc': False, 'defrostStatus': 'false', 'transCond': True, 'doorLockStatus': 'false', 'doorOpen': {'frontRight': 0, 'frontLeft': 0, 'backLeft': 0, 'backRight': 0}, 'battery': {'batSoc': 79, 'sjbDeliveryMode': 1}, 'seatHeaterVentInfo': {'rlSeatHeatState': 2, 'drvSeatHeatState': 2, 'rrSeatHeatState': 2, 'astSeatHeatState': 2}, 'vehicleLocation': {'coord': {'lon': -78, 'type': 0, 'lat': 35.}}, 'ign3': False, 'ignitionStatus': 'false', 'lowFuelLight': False, 'sideBackWindowHeat': 0, 'dte': {'unit': 3, 'value': 313.0}, 'engine': False, 'remoteWaitingTimeAlert': {'remoteControlWaitingTime': 168, 'remoteControlAvailable': 1}, 'hoodOpen': False, 'airConditionStatus': 'false', 'steerWheelHeat': 0, 'trunkOpen': False, 'doorLock': False, 'airCtrlOn': False, 'airTemp': {'unit': 0, 'hvacTempType': 1, 'value': 'LO'}, 'sleepModeCheck': False, 'defrost': False, 'tirePressureLamp': {'tirePressureWarningLampRearLeft': 0, 'tirePressureWarningLampFrontLeft': 0, 'tirePressureWarningLampFrontRight': 0, 'tirePressureWarningLampAll': 0, 'tirePressureWarningLampRearRight': 0}, 'trunkOpenStatus': 'false'}}

To Reproduce Call unlock service on vehicle, while locked. Verify lock status of vehicle. HA lock state should reflect updated value of unlocked.

Expected behavior State of lock should reflect the current status.

Screenshots image

Additional context Add any other context about the problem here.

GD-L avatar Aug 12 '22 15:08 GD-L

I think the issue may be here: https://github.com/fuatakgun/kia_uvo/blob/01528f40afc77c41b0f45305d0b029c1bd08329d/custom_components/kia_uvo/HyundaiBlueLinkAPIUSA.py#L188

Should reference as: vehicle_status["vehicleStatus"]["doorLock"] = vehicle_status["vehicleStatus"][ "doorLock"] as the item doorLockStatus does not exists in the response from the API.

GD-L avatar Aug 12 '22 19:08 GD-L

doorLockStatus should be something new for 2022 models, this has been working fine for all users. Please see my date below for 2021 Kia Niro PHEV

vehicleStatus:
  airCtrlOn: false
  engine: false
  doorLock: true
  doorOpen:
    frontLeft: 0
    frontRight: 0
    backLeft: 0
    backRight: 0
  trunkOpen: false

we have to set a fallback to doorLockStatus if doorLock is missing. Please dump rest of your data so we can find out if there are other missing attributes. (please remove personal information from data)

fuatakgun avatar Aug 12 '22 20:08 fuatakgun

Few quick notes - I don't have time to dig in right away but my 2cents in the meantime. Looks like doorLockStatus does exist in your response above in addition to door lock. Both showing the same value. I am not certain this worked correctly as I think we have very few users of Hyundai USA implementation.

We invert door lock status due to how the other regions report the value. This occurs here: https://github.com/fuatakgun/kia_uvo/blob/9bb73d1096ccfda5d950ecdb3a59f08a8ea1d55a/custom_components/kia_uvo/binary_sensor.py#L317-L321

It could be either 1. 2022 no longer requires inverted values. 2. Hyundai USA never did and no one has noticed.

cdnninja avatar Aug 13 '22 04:08 cdnninja

Sorry for the delayed response, increased logs below. One thing I'm noticing is the difference between doorLockStatus and doorLock is the returned value. Looks like doorLockStatus returns a string of 'true' or 'false', compared to doorLock returning a boolean value of True or False.

Additionally it looks like the lock.py uses a different status, but I don't think that's the same one the binary sensor would use as @cdnninja pointed out. https://github.com/fuatakgun/kia_uvo/blob/cc2046ddf767f6c7d4ac8d3fe0cd166089997b37/custom_components/kia_uvo/lock.py#L35

2022-08-15 08:23:21.089 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - using API headers: {'content-type': 'application/json;charset=UTF-8', 'accept': 'application/json, text/plain, */*', 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'en-US,en;q=0.9', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36', 'host': 'api.telematics.hyundaiusa.com', 'origin': 'https://api.telematics.hyundaiusa.com', 'referer': 'https://api.telematics.hyundaiusa.com/login', 'from': 'SPA', 'to': 'ISS', 'language': '0', 'offset': '-4', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'same-origin', 'refresh': 'false', 'encryptFlag': 'false', 'brandIndicator': 'H', 'gen': '2', 'username': '', 'blueLinkServicePin': '', 'client_id': 'm66129Bb-em93-SPAHYN-bZ91-am4540zp19920', 'clientSecret': '', 'accessToken': '', 'vin': '', 'vehicleId': '', 'pAuth': None}
2022-08-15 08:23:21.972 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - get_cached_vehicle_status response {'hataTID': 'V5Efo3GjQ-ODTPMKz9tWMA', 'vehicleStatus': {'dateTime': '2022-08-15T12:14:30Z', 'acc': False, 'defrostStatus': 'false', 'transCond': True, 'doorLockStatus': 'true', 'doorOpen': {'frontRight': 0, 'frontLeft': 0, 'backLeft': 0, 'backRight': 0}, 'battery': {'batSoc': 80, 'sjbDeliveryMode': 1}, 'seatHeaterVentInfo': {'rlSeatHeatState': 2, 'drvSeatHeatState': 2, 'rrSeatHeatState': 2, 'astSeatHeatState': 2}, 'vehicleLocation': {'coord': {'alt': 108.0, 'lon': , 'type': 0, 'lat': }}, 'ign3': False, 'ignitionStatus': 'false', 'lowFuelLight': False, 'sideBackWindowHeat': 0, 'dte': {'unit': 3, 'value': 205.0}, 'engine': False, 'remoteWaitingTimeAlert': {'remoteControlWaitingTime': 168, 'remoteControlAvailable': 1}, 'hoodOpen': False, 'airConditionStatus': 'false', 'steerWheelHeat': 0, 'trunkOpen': False, 'doorLock': True, 'airCtrlOn': False, 'airTemp': {'unit': 0, 'hvacTempType': 1, 'value': 'LO'}, 'sleepModeCheck': True, 'defrost': False, 'tirePressureLamp': {'tirePressureWarningLampRearLeft': 0, 'tirePressureWarningLampFrontLeft': 0, 'tirePressureWarningLampFrontRight': 0, 'tirePressureWarningLampAll': 0, 'tirePressureWarningLampRearRight': 0}, 'trunkOpenStatus': 'false'}}
2022-08-15 08:23:22.282 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - Get Vehicles Response {"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"","displayCategory":"Connected Care","packageId":"8a12976381b554220181b7a9e03c2f91","term":"36","renewalDate":"20250624000000","packageType":"Connected Care","startDate":"20220624000000"},{"assetNumber":"","displayCategory":"Remote","packageId":"8a12976381b554220181b7a9e2f52fb4","term":"36","renewalDate":"20250624000000","packageType":"Remote","startDate":"20220624000000"},{"assetNumber":"","displayCategory":"Guidance","packageId":"8a12976381b554220181b7a9e1f62fa5","term":"36","renewalDate":"20250624000000","packageType":"Guidance","startDate":"20220624000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/sierra-burgundy/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"seven","enrollmentDate":"20220624","svdDay":"23","trim":"LIMITED","modelCode":"PALISADE","ubiCapabilityInd":"Y","vin":"","enrollmentId":"3896012","sideMirrorHeatCapable":"YES","ownersuccession":"1","odometer":"2084","nickName":"2022 PALISADE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2022","steeringWheelHeatCapable":"YES","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","sapColorCode":"W7B","bluelinkEnabled":true,"odometerUpdateDate":"20220815050421","fatcAvailable":"Y","color":"DARK RED","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","mapProvider":"HERE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"NNB","accessoryCode":"WAVN 5.0","nadid":"6575640046","mit":"7500","regid":"H00004326767V","blueLink":"Y","waypointInd":"NO","billingInd":"MONTHLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/sierra-burgundy/Dashboard-01.png","imat":"7500","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","wifiHotspotCapable":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","tmuSleepInMin":8.816666666666666,"dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","dkType":"","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"rearWindowHeatCapable":"YES","preferredDealerCode":"NC030","hmaModel":"LX2","series":"PALISADE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"Y"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"Durham","street":" Ct","postalCode":"","type":"PRIMARY","region":"NC"}],"user":{"accountId":"","firstName":"","lastName":"","phonesOptIn":[{"number":"","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-4,"billingAccountNumber":"","appRating":"N","timezoneAbbr":"EDT","otaAcceptance":"N","telematicsPhoneNumber":""},"tncFlag":"N","phones":[{"number":"","type":"cell","order":1}],"idmId":"","userId":"","notificationEmail":"","email":""}}
2022-08-15 08:23:22.283 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - LastUpdated 2022-08-15 12:14:30+00:00 - Timezone UTC
2022-08-15 08:23:22.283 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - Engine type set VEHICLE_ENGINE_TYPE.IC
2022-08-15 08:23:23.391 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x3F1B:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('[0x3f1b:1:0x0006]: Message send failure'), DeliveryError('[0x3f1b:1:0x0006]: Message send failure'), DeliveryError('[0x3f1b:1:0x0006]: Message send failure'), DeliveryError('[0x3f1b:1:0x0006]: Message send failure')]
2022-08-15 08:23:35.860 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - Action for lock is: open
2022-08-15 08:23:35.860 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - Calling unlock
2022-08-15 08:23:36.484 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - Received lock_action response status code: 200
2022-08-15 08:23:36.485 DEBUG (SyncWorker_10) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - Received lock_action response:
2022-08-15 08:23:46.486 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - force_update_loop start 0 5
2022-08-15 08:23:46.486 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - force_update_loop last_updated 2022-08-15 12:14:30+00:00
2022-08-15 08:23:46.487 DEBUG (SyncWorker_11) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - using API headers: {'content-type': 'application/json;charset=UTF-8', 'accept': 'application/json, text/plain, */*', 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'en-US,en;q=0.9', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36', 'host': 'api.telematics.hyundaiusa.com', 'origin': 'https://api.telematics.hyundaiusa.com', 'referer': 'https://api.telematics.hyundaiusa.com/login', 'from': 'SPA', 'to': 'ISS', 'language': '0', 'offset': '-4', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'same-origin', 'refresh': 'false', 'encryptFlag': 'false', 'brandIndicator': 'H', 'gen': '2', 'username': '', 'blueLinkServicePin': '', 'client_id': 'm66129Bb-em93-SPAHYN-bZ91-am4540zp19920', 'clientSecret': 'v558o935-6nne-423i-baa8', 'accessToken': 'w6q2T/okx5dKu0YxjaGYtZnseBROS8uAOpspFLtX/rnhBTa+yXu6XvpPsTpJJR+73JKBamye1MTkiIklLwPAhrpdiXFrEnXWjm+rCf85wjs1PWik2AtxtD3np/ylXG1eTnwVMwmO7Uy7xcVXnrQXREFB1dYpfrs3I6cv+rYQU0BwwwUt++WIVQWsafJl4bQfnAvs4TpjS6CFwiBvI1vrzMBCjTVZyRdsiAchxrmlwCoNcvygNxF4Mql47pdDwGSKqQhlHy0RzN0V7bKkaxnTMvavwo7gavzVfU0E27+gZM4P7sLcum1Q3YsLnX24V9yUE9Qn8/HTdTZmgJvTSIw+ah/PTxyZcMvvo/fu/K1qyogsjQeFx6vE0UEj2iGuXSwi94nxx/msLx3wysQIBxXlC3d6TUoMEFBlDG1/jB7Hbh7MPT0Lyw3PLhntQQvFNb/X+29Vi1oMcsUojpeDguoTSuLTE7vwKK4mZrQ25KizHCqmeUHdiC0HreUiWGAqw61uyr094+VKuFmU/OchTHmrc8M0zMcHUr4lw65d56Z/yhyBbtKxS406Gc+AmbTVcSVzZkSmEsXvMBxllGkEMBqLE7AFXH1QDjH1X9x3jX/5sHe29kHeIMjPoaeFd6l+ZR+QeHj4Sd9wubl4kzgEeVuyMAEemZ1DsssU9aShU/9fnwF/KARVxNkQ3uyHI7OjngEHtaG2kbGXMgl08S+hGykEexUmRbKicghtRRguVa8Yh1bpTJehbxEnx7urpQvW4CWsPHkYNM2b5RoBb0DFdp/VJw__', 'vin': '', 'vehicleId': '', 'pAuth': None, 'registrationId': 'H00004326767V', 'APPCLOUD-VIN': ''}
2022-08-15 08:23:47.270 DEBUG (SyncWorker_11) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - get_cached_vehicle_status response {'hataTID': 'ah6LfiusSVCNH8YFZ2EV0A', 'vehicleStatus': {'dateTime': '2022-08-15T12:23:44Z', 'acc': False, 'defrostStatus': 'false', 'transCond': True, 'doorLockStatus': 'false', 'doorOpen': {'frontRight': 0, 'frontLeft': 0, 'backLeft': 0, 'backRight': 0}, 'battery': {'batSoc': 80, 'sjbDeliveryMode': 1}, 'seatHeaterVentInfo': {'rlSeatHeatState': 2, 'drvSeatHeatState': 2, 'rrSeatHeatState': 2, 'astSeatHeatState': 2}, 'vehicleLocation': {'coord': {'lon': , 'type': 0, 'lat': }}, 'ign3': False, 'ignitionStatus': 'false', 'lowFuelLight': False, 'sideBackWindowHeat': 0, 'dte': {'unit': 3, 'value': 205.0}, 'engine': False, 'remoteWaitingTimeAlert': {'remoteControlWaitingTime': 168, 'remoteControlAvailable': 1}, 'hoodOpen': False, 'airConditionStatus': 'false', 'steerWheelHeat': 0, 'trunkOpen': False, 'doorLock': False, 'airCtrlOn': False, 'airTemp': {'unit': 0, 'hvacTempType': 1, 'value': 'LO'}, 'sleepModeCheck': False, 'defrost': False, 'tirePressureLamp': {'tirePressureWarningLampRearLeft': 0, 'tirePressureWarningLampFrontLeft': 0, 'tirePressureWarningLampFrontRight': 0, 'tirePressureWarningLampAll': 0, 'tirePressureWarningLampRearRight': 0}, 'trunkOpenStatus': 'false'}}
2022-08-15 08:23:47.552 DEBUG (SyncWorker_11) [custom_components.kia_uvo.HyundaiBlueLinkAPIUSA] kia_uvo - Get Vehicles Response {"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"","displayCategory":"Connected Care","packageId":"8a12976381b554220181b7a9e03c2f91","term":"36","renewalDate":"20250624000000","packageType":"Connected Care","startDate":"20220624000000"},{"assetNumber":"","displayCategory":"Remote","packageId":"8a12976381b554220181b7a9e2f52fb4","term":"36","renewalDate":"20250624000000","packageType":"Remote","startDate":"20220624000000"},{"assetNumber":"","displayCategory":"Guidance","packageId":"8a12976381b554220181b7a9e1f62fa5","term":"36","renewalDate":"20250624000000","packageType":"Guidance","startDate":"20220624000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/sierra-burgundy/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"seven","enrollmentDate":"20220624","svdDay":"23","trim":"LIMITED","modelCode":"PALISADE","ubiCapabilityInd":"Y","vin":"","enrollmentId":"3896012","sideMirrorHeatCapable":"YES","ownersuccession":"1","odometer":"2084","nickName":"2022 PALISADE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2022","steeringWheelHeatCapable":"YES","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","sapColorCode":"W7B","bluelinkEnabled":true,"odometerUpdateDate":"20220815050421","fatcAvailable":"Y","color":"DARK RED","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","mapProvider":"HERE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"NNB","accessoryCode":"WAVN 5.0","nadid":"6575640046","mit":"7500","regid":"H00004326767V","blueLink":"Y","waypointInd":"NO","billingInd":"MONTHLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/limited/exterior/base/sierra-burgundy/Dashboard-01.png","imat":"7500","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","wifiHotspotCapable":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","tmuSleepInMin":9.233333333333333,"dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","dkType":"","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"rearWindowHeatCapable":"YES","preferredDealerCode":"NC030","hmaModel":"LX2","series":"PALISADE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2022/palisade/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"Y"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"Durham","street":" Ct","postalCode":"","type":"PRIMARY","region":"NC"}],"user":{"accountId":"","firstName":"","lastName":"","phonesOptIn":[{"number":"","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-4,"billingAccountNumber":"","appRating":"N","timezoneAbbr":"EDT","otaAcceptance":"N","telematicsPhoneNumber":""},"tncFlag":"N","phones":[{"number":"","type":"cell","order":1}],"idmId":"","userId":"","notificationEmail":"","email":""}}
2022-08-15 08:23:47.553 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - LastUpdated 2022-08-15 12:23:44+00:00 - Timezone UTC
2022-08-15 08:23:47.553 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - Engine type set VEHICLE_ENGINE_TYPE.IC
2022-08-15 08:23:47.555 DEBUG (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - force_update_loop force_update_finished 2022-08-15 12:14:30+00:00 2022-08-15 12:23:44+00:00

GD-L avatar Aug 15 '22 12:08 GD-L

Adding PR https://github.com/fuatakgun/kia_uvo/pull/347 to reference the boolean value vs string.

GD-L avatar Aug 15 '22 15:08 GD-L

Merged. Let me know if we can close this now!

cdnninja avatar Aug 19 '22 19:08 cdnninja

I appreciate it. I have not tested it (I'm honestly pretty novice and don't know how to create a dev env for this). What this also won't account for is whether or not the inversion toggle will need to remain or not when the status is reported via HyundaiBlueLinkAPIUSA. From the prior logs False == 'unlocked'.

GD-L avatar Aug 19 '22 19:08 GD-L

Success: image

GD-L avatar Aug 19 '22 19:08 GD-L

Great work! I’m not a pro here either. Started like you did. One way to test is install the smb / samba add on. It will allow you to browse to the files in your home assistant instance.

On Aug 19, 2022, at 1:22 PM, Greg de Lima @.***> wrote:

 Success:

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

cdnninja avatar Aug 19 '22 19:08 cdnninja