Open aswdo opened 8 months ago
Will need some debug logs of the vehicle info to figure this out:
Here is the logic for EU today:
entry_engine_type = None
if entry["type"] == "GN":
entry_engine_type = ENGINE_TYPES.ICE
elif entry["type"] == "EV":
entry_engine_type = ENGINE_TYPES.EV
elif entry["type"] == "PHEV":
entry_engine_type = ENGINE_TYPES.PHEV
elif entry["type"] == "HV":
entry_engine_type = ENGINE_TYPES.HEV
I am interested to see what "type" your car is reporting in the debug logs.
Sorry for asking: how to generate and find the requested debug log information in Docker/homeassistant?
What I did so far:
added in configuration.yaml:
loggers:
logs:
hyundai_kia_connect_api: debug
- did a restart
Unfortunately I couldn‘t find „entry_engine_type“
Thanks Achim
Von: cdnninja @.> Gesendet: Friday, November 24, 2023 4:43:28 PM An: Hyundai-Kia-Connect/kia_uvo @.> Cc: aswdo @.>; Author @.> Betreff: Re: [Hyundai-Kia-Connect/kia_uvo] Two EVs in one Bluelink Account: second EV not recognized as EV but fossil car (Issue #758)
Will need some debug logs of the vehicle info to figure this out:
Here is the logic for EU today:
for entry in response["resMsg"]["vehicles"]: entry_engine_type = None if entry["type"] == "GN": entry_engine_type = ENGINE_TYPES.ICE elif entry["type"] == "EV": entry_engine_type = ENGINE_TYPES.EV elif entry["type"] == "PHEV": entry_engine_type = ENGINE_TYPES.PHEV elif entry["type"] == "HV": entry_engine_type = ENGINE_TYPES.HEV
I am interested to see what "type" your car is reporting in the debug logs.
— Reply to this email directly, view it on GitHubhttps://github.com/Hyundai-Kia-Connect/kia_uvo/issues/758#issuecomment-1825839350, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYBAVSV7V25S44QL4ZP5O3YGC6CBAVCNFSM6AAAAAA7Y6S7PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVHAZTSMZVGA. You are receiving this because you authored the thread.Message ID: @.***>
You did the right steps. Now go into settings> system>logs> go to the bottom and click load full logs. If you can't find it in that in a different tab restart the kia integration. You should see the API logs dumping responses from the servers. One of the early login ones should have that "type" It won't be entry_engine_type. That is our name for it.
It also may be in the "data" sensor's attributes. Not sure though.
Sorry to bother you again. No entry_engine_type found in the logs. What I found, is the following:
Logger: hyundai_kia_connect_api.KiaUvoApiEU Source: /usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py:335 First occurred: 21:12:17 (3 occurrences) Last logged: 21:23:34
Failed to parse driving info. Possible reasons: - incompatible vehicle (ICE) - new API format - API outage Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 330, in update_vehicle_with_cached_state state = self._get_driving_info(token, vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1065, in _get_driving_info drivingInfoItem["totalPwrCsp"]
KeyError: 'totalPwrCsp'
Not sure what you mean by „data“ sensor‘s attributes…
Achim
________________________________
Von: cdnninja ***@***.***>
Gesendet: Friday, November 24, 2023 6:46:32 PM
An: Hyundai-Kia-Connect/kia_uvo ***@***.***>
Cc: aswdo ***@***.***>; Author ***@***.***>
Betreff: Re: [Hyundai-Kia-Connect/kia_uvo] Two EVs in one Bluelink Account: second EV not recognized as EV but fossil car (Issue #758)
It also may be in the "data" sensor's attributes. Not sure though.
—
Reply to this email directly, view it on GitHub<https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/758#issuecomment-1825956210>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJYBAVRTHHS7LLDOFQ2TUX3YGDMPRAVCNFSM6AAAAAA7Y6S7PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVHE2TMMRRGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
That power item is something that should be improved in latest release.
Data sensor is a sensor on the car device.
As mentioned the entry_device_type is our value not the api. You are looking for type. If can't can't it post the logs.
Hi, here the homeassistant.log file, tomorrow I will extract and send the protocol within homeassistant. Let‘s keep our fingers crossed that you identify something being helpful.
Achim
Von: cdnninja @.> Gesendet: Freitag, November 24, 2023 9:40 PM An: Hyundai-Kia-Connect/kia_uvo @.> Cc: aswdo @.>; Author @.> Betreff: Re: [Hyundai-Kia-Connect/kia_uvo] Two EVs in one Bluelink Account: second EV not recognized as EV but fossil car (Issue #758)
That power item is something that should be improved in latest release.
Data sensor is a sensor on the car device.
As mentioned the entry_device_type is our value not the api. You are looking for type. If can't can't it post the logs.
— Reply to this email directly, view it on GitHubhttps://github.com/Hyundai-Kia-Connect/kia_uvo/issues/758#issuecomment-1826071024, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYBAVQLOGECPFCHT4TJXODYGEA3HAVCNFSM6AAAAAA7Y6S7PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGA3TCMBSGQ. You are receiving this because you authored the thread.Message ID: @.***>
2023-11-24 21:00:13.298 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration goecharger which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.299 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration iphonedetect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.307 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration samsungtv_tizen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.316 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration gardena_smart_system which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.317 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration sonos_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.317 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration reolink_dev which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.320 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration shelly which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.322 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.323 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration kia_uvo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.324 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration mass which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.326 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration auto_backup which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.334 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration panasonic_cc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.338 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.340 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.341 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration samsungtv_smart which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.343 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration dwd_weather which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:13.344 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration kia_uvo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-24 21:00:22.629 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Kona12VBatterie' failed to setup triggers and has been disabled: Unknown device '76b80120d00bb4c0b03758303f0890e3' 2023-11-24 21:00:22.689 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Button Licht aus' failed to setup triggers and has been disabled: Unknown device 'bf1a44e1e4024377a51df9b28ef4e460' 2023-11-24 21:00:22.855 ERROR (MainThread) [homeassistant.components.script] Script with alias 'Nano_delay_60_off' failed to setup actions and has been disabled: Unknown device 'f46d522920c34d18e7a628028a18e75f' 2023-11-24 21:00:22.868 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Button Licht an' failed to setup triggers and has been disabled: Unknown device 'bf1a44e1e4024377a51df9b28ef4e460' 2023-11-24 21:00:22.889 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'IOS_Auto_Auf' failed to setup actions and has been disabled: Unknown device '1bff6565e5d45574a033c37c3d6fcfb2' 2023-11-24 21:00:22.896 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'IOS_Nano_Aus' failed to setup actions and has been disabled: Unknown device 'f46d522920c34d18e7a628028a18e75f' 2023-11-24 21:00:22.979 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'IOS_Auto_Zu' failed to setup actions and has been disabled: Unknown device '1bff6565e5d45574a033c37c3d6fcfb2' 2023-11-24 21:00:23.138 ERROR (MainThread) [homeassistant.components.script] Script with alias 'IOS_Nano' failed to setup actions and has been disabled: Unknown device 'f46d522920c34d18e7a628028a18e75f' 2023-11-24 21:00:23.857 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Get Device ID request: https://prd.eu-ccapi.hyundai.com:8080/api/v1/spa/notifications/register {'ccsp-service-id': '6d477c38-3ca4-4cf3-9557-2a1929a94654', 'ccsp-application-id': '014d2225-8495-4735-812d-2616334fd15d', 'Stamp': 'dGpcIp3dP0dLfkNRUItk/sCdmouaEMW4JAlLv76lGxrWLqMbn3rSYiqePinAhdM=', 'Content-Type': 'application/json;charset=UTF-8', 'Host': 'prd.eu-ccapi.hyundai.com:8080', 'Connection': 'Keep-Alive', 'Accept-Encoding': 'gzip', 'User-Agent': 'okhttp/3.12.0'} {'pushRegId': '7a14ff9817bea873cfbc31f81b43ff2eb7c65656e0fee7b9a4e6349e256225b5', 'pushType': 'GCM', 'uuid': '1fd25e20-a598-4016-85b8-e35527dd2c34'} 2023-11-24 21:00:24.257 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Get Device ID response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'deviceId': '1ee89748-1eef-4eea-bbda-fd644c555aca'}, 'msgId': '00a02242-4d2f-4cee-b4f1-edad13bb011b'} 2023-11-24 21:00:24.257 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Get cookies request: https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/authorize?response_type=code&state=test&client_id=6d477c38-3ca4-4cf3-9557-2a1929a94654&redirect_uri=https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/redirect&lang=de 2023-11-24 21:00:24.292 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.11/site-packages/tzlocal/unix.py:193: UserWarning: Can not find any timezone configuration, defaulting to UTC. warnings.warn("Can not find any timezone configuration, defaulting to UTC.")
2023-11-24 21:00:24.386 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Get cookies response: {'account': 'ZjI4ZjU0ZjMtMDI2Mi00NjNjLWJlZDAtODg5ODI5NTlhMGM0.ab7e5a7090922449aa3206e465e096d3f05c802e', 'TS0155b981': '01cbaa6f704403913b42348bbde9a5d338280c6f131336907a3f40c8f7abfe69fd34aef61dc12cd455acef34354f985df75cbfb1c1fdcece34a056a48025fc8ed0ad50a2e7'} 2023-11-24 21:00:24.647 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Sign In Response: {'errId': 'f5443cae-9656-4efd-8aa6-f8be59c48e5b', 'errCode': '4003', 'errMsg': 'Invalid values'} 2023-11-24 21:00:24.647 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_authorization_code_with_redirect_url failed 2023-11-24 21:00:24.832 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - IntegrationInfo Response: {'userId': 'f28f54f3-0262-463c-bed0-88982959a0c4', 'serviceId': '6d477c38-3ca4-4cf3-9557-2a1929a94654', 'serviceName': 'Bluelink'} 2023-11-24 21:00:25.271 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - LoginForm https://eu-account.hyundai.com/auth/realms/euhyundaiidm/protocol/openid-connect/auth?client_id=64621b96-0f0d-11ec-82a8-0242ac130003&scope=openid%20profile%20email%20phone&response_type=code&hkid_session_reset=true&redirect_uri=https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/integration/redirect/login&ui_locales=de&state=6d477c38-3ca4-4cf3-9557-2a1929a94654:f28f54f3-0262-463c-bed0-88982959a0c4 - Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2023-11-24 21:00:25.493 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - LoginFormSubmit https://eu-account.hyundai.com/auth/realms/euhyundaiidm/login-actions/authenticate?session_code=E-SkHChMEj7AzIamsJ3hCA0oZI4eIP9Ap--s9MF5oXI&execution=f09c7a3a-cb33-4625-b9f1-13fd5d3f3cfa&client_id=64621b96-0f0d-11ec-82a8-0242ac130003&tab_id=4x4pQ2eniaI - Response 302 - {'Date': 'Fri, 24 Nov 2023 21:00:25 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'Cache-Control': 'no-store, must-revalidate, max-age=0', 'Set-Cookie': 'KEYCLOAK_LOCALE=en; Version=1; Path=/auth/realms/euhyundaiidm/; HttpOnly, KC_RESTART=; Version=1; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Max-Age=0; Path=/auth/realms/euhyundaiidm/; HttpOnly, KEYCLOAK_IDENTITY=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIwMmM0ODM3My1mYWFiLTQ1YzItODRhNC0xMGFiY2I0YjA0MDMifQ.eyJleHAiOjE3MDYwNDM2MjUsImlhdCI6MTcwMDg1OTYyNSwianRpIjoiOTkxNTU4MjktMDc5OC00Y2M2LThmMDktMGNkMzExYWZiZGUzIiwiaXNzIjoiaHR0cHM6Ly9ldS1hY2NvdW50Lmh5dW5kYWkuY29tL2F1dGgvcmVhbG1zL2V1aHl1bmRhaWlkbSIsInN1YiI6IjU3MDc4NTk3LTUyMGUtNGRlNy04ZmJiLTU4OTdhM2ZhMDZjMSIsInR5cCI6IlNlcmlhbGl6ZWQtSUQiLCJzZXNzaW9uX3N0YXRlIjoiMjBlMzI4ZDAtNWQxNC00OTIyLWIxYzQtMWYzM2IwMzg4ZWFiIiwic2lkIjoiMjBlMzI4ZDAtNWQxNC00OTIyLWIxYzQtMWYzM2IwMzg4ZWFiIiwic3RhdGVfY2hlY2tlciI6IjJRRnhxLUtfTzI4b1ZBamNlTzlzTG5zWkx4TTVaM0tXV3I2UV9kU0dUVDgifQ.sjvAcr5vGDPh1JqG1lF1ZsscFq-traEzCDQBbYT6R_M; Version=1; Expires=Tue, 23-Jan-2024 21:00:25 GMT; Max-Age=5184000; Path=/auth/realms/euhyundaiidm/; SameSite=None; Secure; HttpOnly, KEYCLOAK_IDENTITY_LEGACY=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIwMmM0ODM3My1mYWFiLTQ1YzItODRhNC0xMGFiY2I0YjA0MDMifQ.eyJleHAiOjE3MDYwNDM2MjUsImlhdCI6MTcwMDg1OTYyNSwianRpIjoiOTkxNTU4MjktMDc5OC00Y2M2LThmMDktMGNkMzExYWZiZGUzIiwiaXNzIjoiaHR0cHM6Ly9ldS1hY2NvdW50Lmh5dW5kYWkuY29tL2F1dGgvcmVhbG1zL2V1aHl1bmRhaWlkbSIsInN1YiI6IjU3MDc4NTk3LTUyMGUtNGRlNy04ZmJiLTU4OTdhM2ZhMDZjMSIsInR5cCI6IlNlcmlhbGl6ZWQtSUQiLCJzZXNzaW9uX3N0YXRlIjoiMjBlMzI4ZDAtNWQxNC00OTIyLWIxYzQtMWYzM2IwMzg4ZWFiIiwic2lkIjoiMjBlMzI4ZDAtNWQxNC00OTIyLWIxYzQtMWYzM2IwMzg4ZWFiIiwic3RhdGVfY2hlY2tlciI6IjJRRnhxLUtfTzI4b1ZBamNlTzlzTG5zWkx4TTVaM0tXV3I2UV9kU0dUVDgifQ.sjvAcr5vGDPh1JqG1lF1ZsscFq-traEzCDQBbYT6R_M; Version=1; Expires=Tue, 23-Jan-2024 21:00:25 GMT; Max-Age=5184000; Path=/auth/realms/euhyundaiidm/; HttpOnly, KEYCLOAK_SESSION=euhyundaiidm/57078597-520e-4de7-8fbb-5897a3fa06c1/20e328d0-5d14-4922-b1c4-1f33b0388eab; Version=1; Expires=Tue, 23-Jan-2024 21:00:25 GMT; Max-Age=5184000; Path=/auth/realms/euhyundaiidm/; SameSite=None; Secure, KEYCLOAK_SESSION_LEGACY=euhyundaiidm/57078597-520e-4de7-8fbb-5897a3fa06c1/20e328d0-5d14-4922-b1c4-1f33b0388eab; Version=1; Expires=Tue, 23-Jan-2024 21:00:25 GMT; Max-Age=5184000; Path=/auth/realms/euhyundaiidm/, KEYCLOAK_REMEMBER_ME=username:acunda%40web.de; Version=1; Expires=Sat, 23-Nov-2024 21:00:25 GMT; Max-Age=31536000; Path=/auth/realms/euhyundaiidm/; HttpOnly', 'P3P': 'CP="This is not a P3P policy!"', 'X-XSS-Protection': '1; mode=block', 'Location': 'https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/integration/redirect/login?state=6d477c38-3ca4-4cf3-9557-2a1929a94654%3Af28f54f3-0262-463c-bed0-88982959a0c4&session_state=20e328d0-5d14-4922-b1c4-1f33b0388eab&code=4f1ed3f8-56b1-4800-97f7-297d6207b0ed.20e328d0-5d14-4922-b1c4-1f33b0388eab.a8210a50-39e0-463a-a595-bb31c94242df', 'X-Frame-Options': 'SAMEORIGIN', 'Referrer-Policy': 'no-referrer', 'Content-Security-Policy': "frame-src 'self'; frame-ancestors 'self'; object-src 'none';", 'X-Robots-Tag': 'none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Content-Type-Options': 'nosniff'} 2023-11-24 21:00:25.721 DEBUG (SyncWorker_6) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - Redirect User Id https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/integration/redirect/login?state=6d477c38-3ca4-4cf3-9557-2a1929a94654%3Af28f54f3-0262-463c-bed0-88982959a0c4&session_state=20e328d0-5d14-4922-b1c4-1f33b0388eab&code=4f1ed3f8-56b1-4800-97f7-297d6207b0ed.20e328d0-5d14-4922-b1c4-1f33b0388eab.a8210a50-39e0-463a-a595-bb31c94242df - Response https://prd.eu-ccapi.hyundai.com:8080/web/v1/user/integration/auth?&locale=en - <!doctype html>
Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 330, in update_vehicle_with_cached_state state = self._get_driving_info(token, vehicle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1065, in _get_driving_info drivingInfoItem["totalPwrCsp"]
KeyError: 'totalPwrCsp'
2023-11-24 21:00:27.288 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_cached_vehicle_status response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'vehicleStatusInfo': {'vehicleLocation': {'coord': {'lat': 49.541414, 'lon': 8.65045, 'alt': 0, 'type': 0}, 'head': 0, 'speed': {'value': 0, 'unit': 0}, 'accuracy': {'hdop': 0, 'pdop': 0}, 'time': '20231124203211'}, 'vehicleStatus': {'airCtrlOn': False, 'engine': False, 'doorLock': True, 'doorOpen': {'frontLeft': 0, 'frontRight': 0, 'backLeft': 0, 'backRight': 0}, 'trunkOpen': False, 'airTemp': {'value': '02H', 'unit': 0, 'hvacTempType': 1}, 'defrost': False, 'acc': False, 'evStatus': {'batteryCharge': False, 'batteryStatus': 82, 'batteryPlugin': 0, 'remainTime2': {'etc1': {'value': 72, 'unit': 1}, 'etc2': {'value': 165, 'unit': 1}, 'etc3': {'value': 40, 'unit': 1}, 'atc': {'value': 40, 'unit': 1}}, 'drvDistance': [{'rangeByFuel': {'evModeRange': {'value': 421, 'unit': 1}, 'totalAvailableRange': {'value': 421, 'unit': 1}}, 'type': 2}], 'reservChargeInfos': {'reservChargeInfo': {'reservChargeInfoDetail': {'reservInfo': {'day': [0], 'time': {'time': '0950', 'timeSection': 0}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '12H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'offpeakPowerInfo': {'offPeakPowerTime1': {'starttime': {'time': '1200', 'timeSection': 0}, 'endtime': {'time': '1200', 'timeSection': 0}}, 'offPeakPowerFlag': 0}, 'reserveChargeInfo2': {'reservChargeInfoDetail': {'reservInfo': {'day': [9], 'time': {'time': '1200', 'timeSection': 0}}, 'reservChargeSet': False, 'reservFatcSet': {'defrost': False, 'airTemp': {'value': '12H', 'unit': 0, 'hvacTempType': 1}, 'airCtrl': 0, 'heating1': 0}}}, 'reservFlag': 0, 'ect': {'start': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}, 'end': {'day': 9, 'time': {'time': '1200', 'timeSection': 0}}}, 'targetSOClist': [{'targetSOClevel': 100, 'dte': {'rangeByFuel': {'evModeRange': {'value': 511, 'unit': 1}, 'totalAvailableRange': {'value': 511, 'unit': 1}}, 'type': 2}, 'plugType': 0}, {'targetSOClevel': 90, 'dte': {'rangeByFuel': {'evModeRange': {'value': 462, 'unit': 1}, 'totalAvailableRange': {'value': 462, 'unit': 1}}, 'type': 2}, 'plugType': 1}]}}, 'ign3': True, 'hoodOpen': False, 'transCond': True, 'steerWheelHeat': 2, 'sideBackWindowHeat': 0, 'tirePressureLamp': {'tirePressureLampAll': 0, 'tirePressureLampFL': 0, 'tirePressureLampFR': 0, 'tirePressureLampRL': 0, 'tirePressureLampRR': 0}, 'battery': {'batSoc': 65, 'batState': 0}, 'sleepModeCheck': False, 'time': '20231124203210', 'remoteWaitingTimeAlert': {'remoteControlAvailable': 1, 'remoteControlWaitingTime': 168, 'elapsedTime': '08:39:50'}, 'systemCutOffAlert': 0, 'tailLampStatus': 0, 'hazardStatus': 0}, 'odometer': {'value': 20448.8, 'unit': 1}}}, 'msgId': '04d11164-6aca-43af-be12-84c2faf87e02'}
2023-11-24 21:00:27.288 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - last_updated_at - before 20231124203210
2023-11-24 21:00:27.288 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - last_updated_at - after 2023-11-24 20:32:10+01:00
2023-11-24 21:00:27.304 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - last_updated_at - before 20231124203211
2023-11-24 21:00:27.304 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - last_updated_at - after 2023-11-24 20:32:11+01:00
2023-11-24 21:00:27.391 INFO (SyncWorker_9) [fritzconnection] Unable to retrieve resource 'http://192.168.178.22:49000/igddesc.xml' from the device.
2023-11-24 21:00:27.599 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info responseAlltime {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 359381, 'motorPwrCsp': 280809, 'climatePwrCsp': 25803, 'eDPwrCsp': 48290, 'batteryMgPwrCsp': 0, 'regenPwr': 183971, 'calculativeOdo': 3069}, {'drivingPeriod': 1, 'totalPwrCsp': 4329, 'motorPwrCsp': 3383, 'climatePwrCsp': 310, 'eDPwrCsp': 581, 'batteryMgPwrCsp': 0, 'regenPwr': 2216, 'calculativeOdo': 36.975903614457835}], 'drivingInfoDetail': [{'drivingPeriod': 1, 'drivingDate': '202311', 'totalPwrCsp': 17829, 'motorPwrCsp': 8752, 'climatePwrCsp': 3502, 'eDPwrCsp': 5450, 'batteryMgPwrCsp': 0, 'regenPwr': 6015, 'calculativeOdo': 83}, {'drivingPeriod': 1, 'drivingDate': '202310', 'totalPwrCsp': 122848, 'motorPwrCsp': 93111, 'climatePwrCsp': 10132, 'eDPwrCsp': 18280, 'batteryMgPwrCsp': 0, 'regenPwr': 58396, 'calculativeOdo': 954}, {'drivingPeriod': 1, 'drivingDate': '202309', 'totalPwrCsp': 191665, 'motorPwrCsp': 158199, 'climatePwrCsp': 10908, 'eDPwrCsp': 20430, 'batteryMgPwrCsp': 0, 'regenPwr': 103249, 'calculativeOdo': 1768}, {'drivingPeriod': 1, 'drivingDate': '202308', 'totalPwrCsp': 27039, 'motorPwrCsp': 20747, 'climatePwrCsp': 1261, 'eDPwrCsp': 4130, 'batteryMgPwrCsp': 0, 'regenPwr': 16311, 'calculativeOdo': 264}]}, 'msgId': 'b897aa58-cae7-4582-a958-9067fa1dbc1b'}
2023-11-24 21:00:27.746 DEBUG (SyncWorker_1) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_driving_info response30d {'retCode': 'S', 'resCode': '0000', 'resMsg': {'drivingInfo': [{'drivingPeriod': 0, 'totalPwrCsp': 37688, 'motorPwrCsp': 23150, 'climatePwrCsp': 5913, 'eDPwrCsp': 8500, 'batteryMgPwrCsp': 0, 'regenPwr': 14184, 'calculativeOdo': 242}, {'drivingPeriod': 1, 'totalPwrCsp': 1713, 'motorPwrCsp': 1052, 'climatePwrCsp': 268, 'eDPwrCsp': 386, 'batteryMgPwrCsp': 0, 'regenPwr': 644, 'calculativeOdo': 11}, {'drivingPeriod': 2, 'totalPwrCsp': 1781, 'motorPwrCsp': 355, 'climatePwrCsp': 426, 'eDPwrCsp': 1000, 'batteryMgPwrCsp': 0, 'regenPwr': 181, 'calculativeOdo': 1}], 'drivingInfoDetail': [{'drivingPeriod': 0, 'drivingDate': '20231124', 'totalPwrCsp': 1781, 'motorPwrCsp': 355, 'climatePwrCsp': 426, 'eDPwrCsp': 1000, 'batteryMgPwrCsp': 0, 'regenPwr': 181, 'calculativeOdo': 1}, {'drivingPeriod': 0, 'drivingDate': '20231123', 'totalPwrCsp': 271, 'motorPwrCsp': 13, 'climatePwrCsp': 58, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 0, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231121', 'totalPwrCsp': 890, 'motorPwrCsp': 24, 'climatePwrCsp': 66, 'eDPwrCsp': 800, 'batteryMgPwrCsp': 0, 'regenPwr': 0, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231120', 'totalPwrCsp': 239, 'motorPwrCsp': 23, 'climatePwrCsp': 16, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 11, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231119', 'totalPwrCsp': 1541, 'motorPwrCsp': 827, 'climatePwrCsp': 314, 'eDPwrCsp': 400, 'batteryMgPwrCsp': 0, 'regenPwr': 597, 'calculativeOdo': 10}, {'drivingPeriod': 0, 'drivingDate': '20231118', 'totalPwrCsp': 570, 'motorPwrCsp': 135, 'climatePwrCsp': 135, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 203, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231117', 'totalPwrCsp': 515, 'motorPwrCsp': 133, 'climatePwrCsp': 182, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 216, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231115', 'totalPwrCsp': 968, 'motorPwrCsp': 450, 'climatePwrCsp': 318, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 548, 'calculativeOdo': 4}, {'drivingPeriod': 0, 'drivingDate': '20231114', 'totalPwrCsp': 5415, 'motorPwrCsp': 4554, 'climatePwrCsp': 461, 'eDPwrCsp': 400, 'batteryMgPwrCsp': 0, 'regenPwr': 1725, 'calculativeOdo': 47}, {'drivingPeriod': 0, 'drivingDate': '20231113', 'totalPwrCsp': 1791, 'motorPwrCsp': 764, 'climatePwrCsp': 577, 'eDPwrCsp': 450, 'batteryMgPwrCsp': 0, 'regenPwr': 836, 'calculativeOdo': 9}, {'drivingPeriod': 0, 'drivingDate': '20231112', 'totalPwrCsp': 167, 'motorPwrCsp': 34, 'climatePwrCsp': 33, 'eDPwrCsp': 100, 'batteryMgPwrCsp': 0, 'regenPwr': 39, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231111', 'totalPwrCsp': 194, 'motorPwrCsp': 19, 'climatePwrCsp': 75, 'eDPwrCsp': 100, 'batteryMgPwrCsp': 0, 'regenPwr': 26, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231110', 'totalPwrCsp': 668, 'motorPwrCsp': 226, 'climatePwrCsp': 142, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 282, 'calculativeOdo': 2}, {'drivingPeriod': 0, 'drivingDate': '20231109', 'totalPwrCsp': 660, 'motorPwrCsp': 231, 'climatePwrCsp': 229, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 395, 'calculativeOdo': 2}, {'drivingPeriod': 0, 'drivingDate': '20231107', 'totalPwrCsp': 1726, 'motorPwrCsp': 905, 'climatePwrCsp': 396, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 896, 'calculativeOdo': 8}, {'drivingPeriod': 0, 'drivingDate': '20231105', 'totalPwrCsp': 175, 'motorPwrCsp': 37, 'climatePwrCsp': 38, 'eDPwrCsp': 100, 'batteryMgPwrCsp': 0, 'regenPwr': 35, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231103', 'totalPwrCsp': 258, 'motorPwrCsp': 22, 'climatePwrCsp': 36, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 25, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231031', 'totalPwrCsp': 458, 'motorPwrCsp': 118, 'climatePwrCsp': 140, 'eDPwrCsp': 200, 'batteryMgPwrCsp': 0, 'regenPwr': 190, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231030', 'totalPwrCsp': 10607, 'motorPwrCsp': 8434, 'climatePwrCsp': 1023, 'eDPwrCsp': 1150, 'batteryMgPwrCsp': 0, 'regenPwr': 4313, 'calculativeOdo': 96}, {'drivingPeriod': 0, 'drivingDate': '20231029', 'totalPwrCsp': 513, 'motorPwrCsp': 134, 'climatePwrCsp': 79, 'eDPwrCsp': 300, 'batteryMgPwrCsp': 0, 'regenPwr': 152, 'calculativeOdo': 0}, {'drivingPeriod': 0, 'drivingDate': '20231028', 'totalPwrCsp': 1134, 'motorPwrCsp': 688, 'climatePwrCsp': 206, 'eDPwrCsp': 240, 'batteryMgPwrCsp': 0, 'regenPwr': 733, 'calculativeOdo': 9}, {'drivingPeriod': 0, 'drivingDate': '20231027', 'totalPwrCsp': 7147, 'motorPwrCsp': 5024, 'climatePwrCsp': 963, 'eDPwrCsp': 1160, 'batteryMgPwrCsp': 0, 'regenPwr': 2781, 'calculativeOdo': 54}, {'drivingPeriod': 0, 'drivingDate': '20231026', 'totalPwrCsp': 2331, 'motorPwrCsp': 905, 'climatePwrCsp': 726, 'eDPwrCsp': 700, 'batteryMgPwrCsp': 0, 'regenPwr': 1063, 'calculativeOdo': 10}]}, 'msgId': '7724aa7f-93f6-438f-b127-2d1e7f33a560'}
2023-11-24 21:00:29.253 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'shelly' restore_state.RestoreStateData.async_get_instance is deprecated, and not intended to be called by custom components; Pleaserefactor your code to use RestoreEntity instead; restore_state.async_get(hass) can be used in the meantime at custom_components/shelly/__init__.py, line 395: data = await RestoreStateData.async_get_instance(self.hass), please report it to the author of the 'shelly' custom integration
2023-11-24 21:00:29.510 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 5.663 seconds (success: True)
2023-11-24 21:00:31.469 ERROR (MainThread) [homeassistant.components.mqtt.client] Failed to connect to MQTT server due to exception: [Errno 111] Connection refused
2023-11-24 21:00:44.296 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.kona_average_energy_consumption (Wh/km) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
Both data points show as EV in logs. Can you screenshot where it shows ICE?
There you are ….
Achim
Von: cdnninja @.> Gesendet: Freitag, November 24, 2023 10:47 PM An: Hyundai-Kia-Connect/kia_uvo @.> Cc: aswdo @.>; Author @.> Betreff: Re: [Hyundai-Kia-Connect/kia_uvo] Two EVs in one Bluelink Account: second EV not recognized as EV but fossil car (Issue #758)
Both data points show as EV in logs. Can you screenshot where it shows ICE?
— Reply to this email directly, view it on GitHubhttps://github.com/Hyundai-Kia-Connect/kia_uvo/issues/758#issuecomment-1826101425, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYBAVQ5DZFWSTB2HNOGPTLYGEIVDAVCNFSM6AAAAAA7Y6S7PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGEYDCNBSGU. You are receiving this because you authored the thread.Message ID: @.***>
Does look to show up.
Old car Kona is shown correctly. New car Kona2 does not show the EV attributes but fossil ones.
Von: cdnninja @.> Gesendet: Saturday, November 25, 2023 5:01:39 PM An: Hyundai-Kia-Connect/kia_uvo @.> Cc: aswdo @.>; Author @.> Betreff: Re: [Hyundai-Kia-Connect/kia_uvo] Two EVs in one Bluelink Account: second EV not recognized as EV but fossil car (Issue #758)
Does look to show up.
— Reply to this email directly, view it on GitHubhttps://github.com/Hyundai-Kia-Connect/kia_uvo/issues/758#issuecomment-1826364134, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYBAVXE35NVB4URID6C3JDYGII6HAVCNFSM6AAAAAA7Y6S7PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGM3DIMJTGQ. You are receiving this because you authored the thread.Message ID: @.***>
I still don't see a screenshot. I also need the integration version number. The number above is home assistant version not integration.
Hi,
attached 4 screenshots and the homeassistant-logfile. Couldn‘t find any information about the hyundai-kia-integration version (special Synology-docker-installation layout?) but can confirm always having updated to the newest version.
Sorry for having me as a non-professional user ;-)
Achim
Von: cdnninja @.> Gesendet: Sonntag, November 26, 2023 12:57 AM An: Hyundai-Kia-Connect/kia_uvo @.> Cc: aswdo @.>; Author @.> Betreff: Re: [Hyundai-Kia-Connect/kia_uvo] Two EVs in one Bluelink Account: second EV not recognized as EV but fossil car (Issue #758)
I still don't see a screenshot. I also need the integration version number. The number above is home assistant version not integration.
— Reply to this email directly, view it on GitHubhttps://github.com/Hyundai-Kia-Connect/kia_uvo/issues/758#issuecomment-1826445576, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYBAVTY3NPEKEK6Z4CMF6LYGKAVFAVCNFSM6AAAAAA7Y6S7PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGQ2DKNJXGY. You are receiving this because you authored the thread.Message ID: @.***>
I still don't see them. I don't think attaching by email works. Please confirm you see them in github.
I don't see a spot where it is showing as ICE. What I do see is you are missing sensors you would expect to see such as as charging levels?
Looks like the same issue as https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/440 and #760
Exactly! Kona2 ist integrated and displayed, but almost all EV-specific sensors are missing. So my assumption was that Kona2 is identified as ICE and not as EV. Sorry again for not being precisely enough 😞
Here another screenshot showing the ICE related sensors
Fuel status seems to be ICE- related.
What could be checked: as Ioniq 5/6 have nearly the same infotainment and sensors as the new Kona Elektro, why not treating Kona as it would be an Ioniq 5/6? Worth a try …..
We aren't treating them any different. We are displaying all data provided by the api in both cases. API looks to have changed.
Layout and functionality of the Bluelink App has changed for the new Kona. It is also different from Ioniq 5/6, so my approach wouldn't work.
This is probably the cause for the changed API and finally for missing sensors in your integration.
Thanks so far for your support! I will be patient and wait for new API adaptions .....
Someone with one of these new layouts needs to sniff the traffic and provide that for us to solve this.
Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Region and Brand of car Germany, 1st EV : Kona Electric 2020, 2nd EV: Kona Electric SX2 2023
Version of the integration newest 20231124
Describe the bug Integration works well for first EV (Kona 2020). After adding a second EV in Bluelink App, also in integration the new car popped up. Unfortunately the second car has been identified as fossil car although it is an EV too.
My assumption: as the new Kona Electric is pretty new it might not been listed as EV yet.
Debug logs if an error occurred
Outlined here: https://github.com/fuatakgun/kia_uvo/blob/master/README.md
To Reproduce
Expected behavior
Thanks for checking!
Screenshots If applicable, add screenshots to help explain your problem.
Additional context