dahlb / ha_kia_hyundai

A Home Assistant HACS integration that supports Kia Connect(Uvo). The integration supports the USA.
MIT License
17 stars 6 forks source link

Integration Error - Could not convert string to float: '01H' #46

Closed twinkie0101 closed 2 years ago

twinkie0101 commented 2 years ago

Region and Brand of car US / Hyundai Sante Fe

Describe the bug After entering all the configuration details no data appears in the dashboard. When you view the Integrations screen you see "Retrying setup..." with error details. See below for traceback.

I am using v1.4.0, updated today.

Debug logs if an error occurred

This error originated from a custom integration.

Logger: custom_components.ha_kia_hyundai.vehicle
Source: custom_components/ha_kia_hyundai/util.py:61
Integration: Kia/Hyundai (documentation, issues)
First occurred: 1:36:27 PM (3 occurrences)
Last logged: 1:36:47 PM

Unexpected error fetching Vehicle KM8SNXXXXXX data: could not convert string to float: '01H'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/ha_kia_hyundai/vehicle.py", line 112, in async_update_data
    await self.api_cloud.update(vehicle=self)
  File "/config/custom_components/ha_kia_hyundai/api_cloud_us_hyundai.py", line 297, in update
    vehicle.climate_temperature_value = safely_get_json_value(
  File "/config/custom_components/ha_kia_hyundai/util.py", line 61, in safely_get_json_value
    value = callable_to_cast(value)
ValueError: could not convert string to float: '01H'

To Reproduce Setup integration. Error shows that vehicle is found but couldn't setup.

Expected behavior Integration setup and device/entities installed.

**Screenshots*** image

dahlb commented 2 years ago

@twinkie0101 thanks for providing a well written bug report. I think the fix I pushed https://github.com/dahlb/ha_kia_hyundai/commit/557c7867f7ed885d4a19163fd91481ee969c8833 will fix it for you if you try the version master from HACS.

I had to guess on the temperature range based on what I know from US Kia's implementation so if you find the temperature value doesn't match what's in the official app, please let me know what the lowest and highest temperatures you can set in the official app for your car, and I should be able to quickly calibrate it.

twinkie0101 commented 2 years ago

Thanks for the quick reply. Switched to the master and getting the following error:

This error originated from a custom integration.

Logger: custom_components.ha_kia_hyundai.vehicle
Source: custom_components/ha_kia_hyundai/api_cloud_us_hyundai.py:303
Integration: Kia/Hyundai (documentation, issues)
First occurred: 12:40:28 AM (3 occurrences)
Last logged: 12:40:46 AM

Unexpected error fetching Vehicle KM8SN4HXXXXX data: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/ha_kia_hyundai/vehicle.py", line 112, in async_update_data
    await self.api_cloud.update(vehicle=self)
  File "/config/custom_components/ha_kia_hyundai/api_cloud_us_hyundai.py", line 303, in update
    safely_get_json_value(api_vehicle_status, "status.airTemp.value")
AttributeError: 'NoneType' object has no attribute 'replace'
dahlb commented 2 years ago

I think https://github.com/dahlb/ha_kia_hyundai/commit/c18d4618860c55cf70a29f89b1447a20795b4bb5 will fix your second error, if your temperature sensor is missing after updating to this on master please add a sample of you api response in case your mapping is different then what's in the current us hyundai code

twinkie0101 commented 2 years ago

Making progress. Was able to get the integration configured in HA, but looks like the API is having some issues. Multiple sensors were added and the door lock was added but can't be executed (error msg is Hyundai attribute has no username). Assuming this is related to the API issue.

Here's the API error log:

This error originated from a custom integration.

Logger: custom_components.ha_kia_hyundai
Source: custom_components/ha_kia_hyundai/__init__.py:260
Integration: Kia/Hyundai (documentation, issues)
First occurred: 9:29:25 AM (2 occurrences)
Last logged: 9:31:06 AM

Exception in interval update : sync requested but not completed! 2021-12-30 14:29:25.485733+00:00
Exception in interval update : sync requested but not completed! 2021-12-30 14:31:06.116862+00:00

Here is a screenshot of HA for the entities added: image image

dahlb commented 2 years ago

can you attach logs for "but can't be executed (error msg is Hyundai attribute has no username)."

If you goto Configurations -> Devices & Services -> click the 1 device link within the kia/hyundai square -> click the device from the list of devices you'll get a better view of the sensors all together, screenshot attached for reference. It is similar to the page your screenshots are from but includes the sensors current values

Screen Shot 2021-12-30 at 12 20 59 PM

as for the error listed, this should improve the HA logs to improve clarity some until the request_sync api call is mapped. "Exception in interval update : sync requested but not completed! 2021-12-30 14:29:25.485733+00:00" is saying the integration asked the Hyundai server to get new data from your vehicle but the server didn't full fill the request. I made that an exception because one of my main goal in this integration is reliability and having up to date information can really help with that. However that api call is not yet mapped for US Hyundai, updated message should read like "Exception in interval update : request_sync not implemented, api sniffing needed for this feature"

twinkie0101 commented 2 years ago

Here's the log data I believe you're asking for (maybe more):

2021-12-30 09:27:57 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_util] US HYUNDAI in use
2021-12-30 09:28:07 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_util] US HYUNDAI in use
2021-12-30 09:28:07 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/v2/ac/oauth/token request with {'username': 'email@email.com', 'password': 'password'}
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:28:08 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OY6JlRFD2vHTpm8T4iZ0001Di01MUpV', 'X-ORACLE-DMS-ECID': '000OY6JlRFD2vHTpm8T4iZ0001Di01MUpV', 'elapsedtime': '21', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '14e38144df284a50a14cd1f38ee80909', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"access_token":"access.token","refresh_token":"access.token","expires_in":"1799","username":"email@email.com"}
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/enrollment/details/email@email.com request
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:28:08 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OY6JlqHH2vHTpm8T4iZ0001Di01MUpZ', 'X-ORACLE-DMS-ECID': '000OY6JlqHH2vHTpm8T4iZ0001Di01MUpZ', 'elapsedtime': '157', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '74f561407b3a4318802e385ac57d69f5', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"1-ASSET#","displayCategory":"Connected Care","packageId":"1-XXXXXX","term":"12","renewalDate":"20220317000000","packageType":"Connected Care","startDate":"20160319000000"},{"assetNumber":"1-10846338248","displayCategory":"Remote","packageId":"1-5MAJHK","term":"12","renewalDate":"20220317000000","packageType":"Remote","startDate":"20190317000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"four","enrollmentDate":"20160319","svdDay":"18","trim":"SE","modelCode":"SANTA FE","ubiCapabilityInd":"Y","vin":"VEHICLE_ID","enrollmentId":"XXXXXXX","sideMirrorHeatCapable":"NO","ownersuccession":"1","odometer":"66011","nickName":"2017 SANTA FE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2017","steeringWheelHeatCapable":"NO","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","silhouette":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/suv/Dashboard-01.svg","sapColorCode":"TU9","bluelinkEnabled":true,"odometerUpdateDate":"20211201042545","fatcAvailable":"Y","color":"BLUE","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","setOffPeak":"0","mapProvider":"GOOGLE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"VYN","accessoryCode":"D-AUDIO","nadid":"6572923993","mit":"3750","regid":"H00001765689VVEHICLE_ID","blueLink":"Y","waypointInd":"NO","billingInd":"YEARLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png","imat":"3750","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"setChargeSchedule":"0","rearWindowHeatCapable":"NO","preferredDealerCode":"VA003","hmaModel":"NC","series":"SANTA FE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"NA"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"South Chesterfield","street":"1307 Majestic Creek Ct","postalCode":"23834","type":"PRIMARY","region":"VA"}],"user":{"accountId":"2141261","firstName":"WILLIAM","lastName":"BROWN","phonesOptIn":[{"number":"cellphone#","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"email@email.com","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-5,"appRating":"N","timezoneAbbr":"EST","otaAcceptance":"N","telematicsPhoneNumber":"cellphone#"},"tncFlag":"N","phones":[{"number":"cellphone#","type":"cell","order":1}],"idmId":"IDMID","userId":"email@email.com","notificationEmail":"email@email.com","email":"email@email.com"}}
2021-12-30 09:28:08 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_util] US HYUNDAI in use
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/v2/ac/oauth/token request with {'username': 'email@email.com', 'password': 'password'}
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:28:08 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OY6JmlkJ2vHTpm8T4iZ0001Di01MUpe', 'X-ORACLE-DMS-ECID': '000OY6JmlkJ2vHTpm8T4iZ0001Di01MUpe', 'elapsedtime': '19', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': 'ab30368a948a40c48132a9758760784b', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"access_token":"access.token","refresh_token":"access.token","expires_in":"1799","username":"email@email.com"}
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/enrollment/details/email@email.com request
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:28:08 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OY6JnAD92vHTpm8T4iZ0001Di01MUpj', 'X-ORACLE-DMS-ECID': '000OY6JnAD92vHTpm8T4iZ0001Di01MUpj', 'elapsedtime': '141', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '4aca382d22f64db9b6028bac5d83ae4e', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"1-ASSET#","displayCategory":"Connected Care","packageId":"1-XXXXXX","term":"12","renewalDate":"20220317000000","packageType":"Connected Care","startDate":"20160319000000"},{"assetNumber":"1-10846338248","displayCategory":"Remote","packageId":"1-5MAJHK","term":"12","renewalDate":"20220317000000","packageType":"Remote","startDate":"20190317000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"four","enrollmentDate":"20160319","svdDay":"18","trim":"SE","modelCode":"SANTA FE","ubiCapabilityInd":"Y","vin":"VEHICLE_ID","enrollmentId":"XXXXXXX","sideMirrorHeatCapable":"NO","ownersuccession":"1","odometer":"66011","nickName":"2017 SANTA FE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2017","steeringWheelHeatCapable":"NO","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","silhouette":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/suv/Dashboard-01.svg","sapColorCode":"TU9","bluelinkEnabled":true,"odometerUpdateDate":"20211201042545","fatcAvailable":"Y","color":"BLUE","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","setOffPeak":"0","mapProvider":"GOOGLE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"VYN","accessoryCode":"D-AUDIO","nadid":"6572923993","mit":"3750","regid":"H00001765689VVEHICLE_ID","blueLink":"Y","waypointInd":"NO","billingInd":"YEARLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png","imat":"3750","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"setChargeSchedule":"0","rearWindowHeatCapable":"NO","preferredDealerCode":"VA003","hmaModel":"NC","series":"SANTA FE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"NA"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"South Chesterfield","street":"1307 Majestic Creek Ct","postalCode":"23834","type":"PRIMARY","region":"VA"}],"user":{"accountId":"2141261","firstName":"WILLIAM","lastName":"BROWN","phonesOptIn":[{"number":"cellphone#","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"email@email.com","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-5,"appRating":"N","timezoneAbbr":"EST","otaAcceptance":"N","telematicsPhoneNumber":"cellphone#"},"tncFlag":"N","phones":[{"number":"cellphone#","type":"cell","order":1}],"idmId":"IDMID","userId":"email@email.com","notificationEmail":"email@email.com","email":"email@email.com"}}
2021-12-30 09:28:08 DEBUG (MainThread) [custom_components.ha_kia_hyundai] first update start
2021-12-30 09:28:08 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/rcs/rvs/vehicleStatus request
2021-12-30 09:28:10 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:28:09 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OY6Jo1ZN2vHTpm8T4iZ0001Di01MUpp', 'X-ORACLE-DMS-ECID': '000OY6Jo1ZN2vHTpm8T4iZ0001Di01MUpp', 'elapsedtime': '1099', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'vin': 'VEHICLE_ID', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '13a881b1057a431491192948e38243e9', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:28:10 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"hataTID":"ABeX0GF9TDmqx4sTx7erog","vehicleStatus":{"dateTime":"2021-12-22T20:38:40Z","acc":false,"trunkOpen":false,"doorLock":false,"defrostStatus":"false","doorLockStatus":"false","doorOpen":{"frontRight":1,"frontLeft":0,"backLeft":0,"backRight":0},"airCtrlOn":false,"airTemp":{"unit":0,"hvacTempType":0,"value":"01H"},"vehicleLocation":{"coord":{"lon":-77.38712183333334,"type":0,"lat":37.25009183}},"ign3":false,"ignitionStatus":"false","lowFuelLight":false,"sideBackWindowHeat":0,"engine":false,"defrost":false,"airConditionStatus":"false","steerWheelHeat":0,"trunkOpenStatus":"false"}}
2021-12-30 09:28:10 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/enrollment/details/email@email.com request
2021-12-30 09:28:10 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:28:10 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OY6JsYGh2vHTpm8T4iZ0001Di01MUqK', 'X-ORACLE-DMS-ECID': '000OY6JsYGh2vHTpm8T4iZ0001Di01MUqK', 'elapsedtime': '140', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '4c95dcd488034562b143b1a37a90220a', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:28:10 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"1-ASSET#","displayCategory":"Connected Care","packageId":"1-XXXXXX","term":"12","renewalDate":"20220317000000","packageType":"Connected Care","startDate":"20160319000000"},{"assetNumber":"1-10846338248","displayCategory":"Remote","packageId":"1-5MAJHK","term":"12","renewalDate":"20220317000000","packageType":"Remote","startDate":"20190317000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"four","enrollmentDate":"20160319","svdDay":"18","trim":"SE","modelCode":"SANTA FE","ubiCapabilityInd":"Y","vin":"VEHICLE_ID","enrollmentId":"XXXXXXX","sideMirrorHeatCapable":"NO","ownersuccession":"1","odometer":"66011","nickName":"2017 SANTA FE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2017","steeringWheelHeatCapable":"NO","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","silhouette":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/suv/Dashboard-01.svg","sapColorCode":"TU9","bluelinkEnabled":true,"odometerUpdateDate":"20211201042545","fatcAvailable":"Y","color":"BLUE","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","setOffPeak":"0","mapProvider":"GOOGLE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"VYN","accessoryCode":"D-AUDIO","nadid":"6572923993","mit":"3750","regid":"H00001765689VVEHICLE_ID","blueLink":"Y","waypointInd":"NO","billingInd":"YEARLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png","imat":"3750","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"setChargeSchedule":"0","rearWindowHeatCapable":"NO","preferredDealerCode":"VA003","hmaModel":"NC","series":"SANTA FE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"NA"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"South Chesterfield","street":"1307 Majestic Creek Ct","postalCode":"23834","type":"PRIMARY","region":"VA"}],"user":{"accountId":"2141261","firstName":"WILLIAM","lastName":"BROWN","phonesOptIn":[{"number":"cellphone#","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"email@email.com","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-5,"appRating":"N","timezoneAbbr":"EST","otaAcceptance":"N","telematicsPhoneNumber":"cellphone#"},"tncFlag":"N","phones":[{"number":"cellphone#","type":"cell","order":1}],"idmId":"IDMID","userId":"email@email.com","notificationEmail":"email@email.com","email":"email@email.com"}}
2021-12-30 09:28:10 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] Finished fetching Vehicle VEHICLE_ID data in 1.499 seconds (success: True)
2021-12-30 09:28:10 DEBUG (MainThread) [custom_components.ha_kia_hyundai] first update finished
2021-12-30 09:29:10 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:29:10 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] requesting a sync based on scan interval; age_of_last_sync:7 days, 17:50:30.485151; last synced:2021-12-22 20:38:40+00:00; now:2021-12-30 14:29:10.484867+00:00
2021-12-30 09:29:25 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_us_hyundai] request_sync no implemented
2021-12-30 09:29:25 ERROR (MainThread) [custom_components.ha_kia_hyundai] Exception in interval update : sync requested but not completed! 2021-12-30 14:29:25.485733+00:00
2021-12-30 09:29:48 DEBUG (MainThread) [custom_components.ha_kia_hyundai.config_flow] user input in option flow : {'scan_interval': 30, 'force_scan_interval': 240, 'no_force_scan_hour_start': 18, 'no_force_scan_hour_finish': 6}
2021-12-30 09:29:48 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_util] US HYUNDAI in use
2021-12-30 09:29:48 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/v2/ac/oauth/token request with {'username': 'email@email.com', 'password': 'password'}
2021-12-30 09:29:49 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:29:49 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OasVNoNi2vHTpm8S4yZ0006sn01MWu5', 'X-ORACLE-DMS-ECID': '000OasVNoNi2vHTpm8S4yZ0006sn01MWu5', 'elapsedtime': '19', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '868a55be140d4c79b7e04aacb39718a1', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:29:49 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"access_token":"access.token","expires_in":"1799","username":"email@email.com"}
2021-12-30 09:29:49 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/enrollment/details/email@email.com request
2021-12-30 09:29:49 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:29:49 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OasVOE9j2vHTpm8S4yZ0006sn01MWu8', 'X-ORACLE-DMS-ECID': '000OasVOE9j2vHTpm8S4yZ0006sn01MWu8', 'elapsedtime': '185', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '2f5c521263994860b3327107d721e62e', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:29:49 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"1-ASSET#","displayCategory":"Connected Care","packageId":"1-XXXXXX","term":"12","renewalDate":"20220317000000","packageType":"Connected Care","startDate":"20160319000000"},{"assetNumber":"1-10846338248","displayCategory":"Remote","packageId":"1-5MAJHK","term":"12","renewalDate":"20220317000000","packageType":"Remote","startDate":"20190317000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"four","enrollmentDate":"20160319","svdDay":"18","trim":"SE","modelCode":"SANTA FE","ubiCapabilityInd":"Y","vin":"VEHICLE_ID","enrollmentId":"XXXXXXX","sideMirrorHeatCapable":"NO","ownersuccession":"1","odometer":"66011","nickName":"2017 SANTA FE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2017","steeringWheelHeatCapable":"NO","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","silhouette":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/suv/Dashboard-01.svg","sapColorCode":"TU9","bluelinkEnabled":true,"odometerUpdateDate":"20211201042545","fatcAvailable":"Y","color":"BLUE","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","setOffPeak":"0","mapProvider":"GOOGLE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"VYN","accessoryCode":"D-AUDIO","nadid":"6572923993","mit":"3750","regid":"H00001765689VVEHICLE_ID","blueLink":"Y","waypointInd":"NO","billingInd":"YEARLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png","imat":"3750","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"setChargeSchedule":"0","rearWindowHeatCapable":"NO","preferredDealerCode":"VA003","hmaModel":"NC","series":"SANTA FE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"NA"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"South Chesterfield","street":"1307 Majestic Creek Ct","postalCode":"23834","type":"PRIMARY","region":"VA"}],"user":{"accountId":"2141261","firstName":"WILLIAM","lastName":"BROWN","phonesOptIn":[{"number":"cellphone#","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"email@email.com","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-5,"appRating":"N","timezoneAbbr":"EST","otaAcceptance":"N","telematicsPhoneNumber":"cellphone#"},"tncFlag":"N","phones":[{"number":"cellphone#","type":"cell","order":1}],"idmId":"IDMID","userId":"email@email.com","notificationEmail":"email@email.com","email":"email@email.com"}}
2021-12-30 09:29:49 DEBUG (MainThread) [custom_components.ha_kia_hyundai] first update start
2021-12-30 09:29:49 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/rcs/rvs/vehicleStatus request
2021-12-30 09:29:50 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:29:49 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OasVPKFb2vHTpm8S4yZ0006sn01MWuD', 'X-ORACLE-DMS-ECID': '000OasVPKFb2vHTpm8S4yZ0006sn01MWuD', 'elapsedtime': '1095', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'vin': 'VEHICLE_ID', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '8af2bae97e434ba58413e7666f43237a', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:29:50 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"hataTID":"aqrhY_oGRLmQ0bavk454_g","vehicleStatus":{"dateTime":"2021-12-22T20:38:40Z","acc":false,"trunkOpen":false,"doorLock":false,"defrostStatus":"false","doorLockStatus":"false","doorOpen":{"frontRight":1,"frontLeft":0,"backLeft":0,"backRight":0},"airCtrlOn":false,"airTemp":{"unit":0,"hvacTempType":0,"value":"01H"},"vehicleLocation":{"coord":{"lon":-77.38712183333334,"type":0,"lat":37.25009183}},"ign3":false,"ignitionStatus":"false","lowFuelLight":false,"sideBackWindowHeat":0,"engine":false,"defrost":false,"airConditionStatus":"false","steerWheelHeat":0,"trunkOpenStatus":"false"}}
2021-12-30 09:29:50 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] sending https://api.telematics.hyundaiusa.com/ac/v2/enrollment/details/email@email.com request
2021-12-30 09:29:51 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response headers:<CIMultiDictProxy('Date': 'Thu, 30 Dec 2021 14:29:50 GMT', 'Server': 'Oracle-Application-Server-11g', 'Access-Control-Allow-Methods': 'POST, GET, PUT, ', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'language, offset, UCID, From, x-requested-with, Content-Type, origin, authorization, accept, client-security-token, accesstoken, clientId, clientSecret', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Headers': 'x-requested-with', 'Content-Language': 'en,en-us', 'to': 'ISS', 'X-ORACLE-DMS-ECID': '000OasVTqE52vHTpm8S4yZ0006sn01MWum', 'X-ORACLE-DMS-ECID': '000OasVTqE52vHTpm8S4yZ0006sn01MWum', 'elapsedtime': '264', 'Access-Control-Allow-Methods': 'POST, GET', 'gen': '2', 'Access-Control-Allow-Origin': '*', 'From': 'SPA', 'guid': '568e9dcbd6914401a07cb85194058430', 'X-ORACLE-DMS-RID': '0:1', 'X-ORACLE-DMS-RID': '0:1', 'Access-Control-Expose-Headers': 'transactionId, transactionDate, offset, language', 'Access-Control-Max-Age': '3600', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'Public-Key-Pins-Report-Only': 'pin-sha256="NoKLOeGQwqGYqDPaJlMu2LvRPdj298oekgJLhW1wiFA="; pin-sha256="256_PIN_#/yOhI/y+ho="; max-age=86400; report-uri="https://hyundaiusa.com/pin/"')>
2021-12-30 09:29:51 DEBUG (MainThread) [kia_hyundai_api.us_hyundai] response text:{"enrolledVehicleDetails":[{"packageDetails":[{"assetNumber":"1-ASSET#","displayCategory":"Connected Care","packageId":"1-XXXXXX","term":"12","renewalDate":"20220317000000","packageType":"Connected Care","startDate":"20160319000000"},{"assetNumber":"1-10846338248","displayCategory":"Remote","packageId":"1-XXXXXX","term":"12","renewalDate":"20220317000000","packageType":"Remote","startDate":"20190317000000"}],"vehicleDetails":{"svrStatus":"NONE","dynamicBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","remoteStartWakeupDays":"four","enrollmentDate":"20160319","svdDay":"18","trim":"SE","modelCode":"SANTA FE","ubiCapabilityInd":"Y","vin":"VEHICLE_ID","enrollmentId":"XXXXXXX","sideMirrorHeatCapable":"NO","ownersuccession":"1","odometer":"66011","nickName":"2017 SANTA FE","defaultBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","evStatus":"N","modelYear":"2017","steeringWheelHeatCapable":"NO","defaultDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/default/Dashboard-01.png","vehicleGeneration":"2","starttype":"BUTTON","silhouette":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/suv/Dashboard-01.svg","sapColorCode":"TU9","bluelinkEnabled":true,"odometerUpdateDate":"20211201042545","fatcAvailable":"Y","color":"BLUE","maintSyncCapable":"NO","brandIndicator":"H","deviceStatus":"ENROLLED","setOffPeak":"0","mapProvider":"GOOGLE","generalBurgerMenu":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png/jcr:content/renditions/cq5dam.thumbnail.105.68.png","interiorColor":"VYN","accessoryCode":"D-AUDIO","nadid":"6572923993","mit":"3750","regid":"H00001765689VVEHICLE_ID","blueLink":"Y","waypointInd":"NO","billingInd":"YEARLY","dynamicDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/se/exterior/base/storm-blue/Dashboard-01.png","imat":"3750","additionalVehicleDetails":{"combinedHeatSettingsEnable":"Y","temperatureRange":"false","tmuSleepMode":"No","enableHCAModule":"Y","hyundaiHome":"N","remoteLockConsentForRemoteStart":"No","calendarVehicleSyncEnable":"No","dkEnrolled":"N","icpAvntCapable":"N","icpAACapable":"N","enableRoadSideAssitanceAAAModule":"Y","evAlarmOptionInfo":"No","remoteLockConsentForRemoteStartCapable":"No","mapOtaAccepted":"N","icpCPCapable":"N","dkCapable":"N","enableValetActivate":"N","energyConsoleCapable":"No"},"transmissiontype":"AUTO","bluelinkEnrolled":true,"setChargeSchedule":"0","rearWindowHeatCapable":"NO","preferredDealerCode":"VA003","hmaModel":"NC","series":"SANTA FE","enrollmentStatus":"ACTIVE","generalDashboard":"https://owners.hyundaiusa.com/content/dam/hyundai/us/myhyundai/image/2017/santa-fe/general/exterior/base/default/Dashboard-01.png","userprofilestatus":"NA"},"roleDetails":[{"roleCode":"OWN","roleName":"OWNER"},{"roleCode":"SUB","roleName":"SUBSCRIBER"}],"responseHeaderMap":{}}],"addressDetails":[{"city":"South Chesterfield","street":"1307 Majestic Creek Ct","postalCode":"23834","type":"PRIMARY","region":"VA"}],"user":{"accountId":"2141261","firstName":"WILLIAM","lastName":"BROWN","phonesOptIn":[{"number":"cellphone#","primaryPhoneIndicator":"YES","fccOptIn":"","type":"MOBILE"}],"loginId":"email@email.com","additionalUserDetails":{"userProfileUpdate":"N","timezoneOffset":-5,"appRating":"N","timezoneAbbr":"EST","otaAcceptance":"N","telematicsPhoneNumber":"cellphone#"},"tncFlag":"N","phones":[{"number":"cellphone#","type":"cell","order":1}],"idmId":"IDMID","userId":"email@email.com","notificationEmail":"email@email.com","email":"email@email.com"}}
2021-12-30 09:29:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] Finished fetching Vehicle VEHICLE_ID data in 1.553 seconds (success: True)
2021-12-30 09:29:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai] first update finished
2021-12-30 09:30:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:30:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] requesting a sync based on scan interval; age_of_last_sync:7 days, 17:52:11.115862; last synced:2021-12-22 20:38:40+00:00; now:2021-12-30 14:30:51.115700+00:00
2021-12-30 09:31:06 DEBUG (MainThread) [custom_components.ha_kia_hyundai.api_cloud_us_hyundai] request_sync no implemented
2021-12-30 09:31:06 ERROR (MainThread) [custom_components.ha_kia_hyundai] Exception in interval update : sync requested but not completed! 2021-12-30 14:31:06.116862+00:00
2021-12-30 09:31:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:31:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] sync request skipping, interval sync request failed to be fulfilled by Vehicle, REQUEST_TO_SYNC_COOLDOWN:0:15:00; age_of_last_request_to_sync:0:00:45.000039
2021-12-30 09:32:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:32:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] sync request skipping, interval sync request failed to be fulfilled by Vehicle, REQUEST_TO_SYNC_COOLDOWN:0:15:00; age_of_last_request_to_sync:0:01:45.000711
2021-12-30 09:33:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:33:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] sync request skipping, interval sync request failed to be fulfilled by Vehicle, REQUEST_TO_SYNC_COOLDOWN:0:15:00; age_of_last_request_to_sync:0:02:45.001313
2021-12-30 09:34:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:34:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] sync request skipping, interval sync request failed to be fulfilled by Vehicle, REQUEST_TO_SYNC_COOLDOWN:0:15:00; age_of_last_request_to_sync:0:03:45.002215
2021-12-30 09:35:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:35:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] sync request skipping, interval sync request failed to be fulfilled by Vehicle, REQUEST_TO_SYNC_COOLDOWN:0:15:00; age_of_last_request_to_sync:0:04:45.003764
2021-12-30 09:36:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] interval update skipping
2021-12-30 09:36:51 DEBUG (MainThread) [custom_components.ha_kia_hyundai.vehicle] sync request skipping, interval sync request failed to be fulfilled by Vehicle, REQUEST_TO_SYNC_COOLDOWN:0:15:00; age_of_last_request_to_sync:0:05:45.004660
2021-12-30 09:37:36 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139758756181808] 'UsHyundai' object has no attribute 'username'
dahlb commented 2 years ago

that's exactly what I needed, thank. found the error https://github.com/dahlb/kia_hyundai_api/commit/6687124931783c7391315c370a31c2f0248ae169 and updated in master https://github.com/dahlb/ha_kia_hyundai/commit/d77dc2255135f8ee66cd29388082bd00fb4463fc

twinkie0101 commented 2 years ago

looks like it's working, thanks for quick responses and updates!