Replies: 1 comment
-
I don't think your error exception is printing the whole stack trace. Other comment is the climate options is missing some core items like climate. Compare the options to your native app and try setup a basic set. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a small py program for polling data and sending them by mqtt to my fhem Smarthome. So far this works. Now I'm trying to implement the start of the climate control inside the car, but I'm not able to bring it to work.
FOllwing questions:
logging.basicConfig( filename='/home/pi/PollKIA_debug.log', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S' )
This is how I try to start my climate control:
` async def start_climate_control():
"""
Startet die Klimaanlage mit voreingestellten Parametern.
"""
logging.info("Klimaanlage wird gestartet...")
try:
vm.check_and_refresh_token()
vehicle = vm.get_vehicle(vin)
logging.info("Fahrzeugdaten: %s", object_to_dict(vehicle))
And then I get the following (shortened) problem:
2024-11-29 21:05:58 - DEBUG - hyundai_kia_connect_api - Get Refresh Token Response: {'access_token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6jzAPNu59KZPrMmv7Z0vnLHO-BQuklfVvnCKHQjjzT9MApsW4c4wS8cgHWZDYNpwHjHSVhxcpFx4txsow8w8OLlBEgffc1eH5HqE7p5-0qRpMhNtYZvU4utwH0wTtr8DauWYkRqpKarTum1STY772BEhxNAIiiWLpQh4Wbrc5n7VwbI7xA', 'token_type': 'Bearer', 'expires_in': 86400} 2024-11-29 21:05:58 - DEBUG - Starting new HTTPS connection (1): prd.eu-ccapi.kia.com:8080 2024-11-29 21:05:58 - DEBUG - https://prd.eu-ccapi.kia.com:8080 "GET /api/v1/spa/vehicles HTTP/11" 200 490 2024-11-29 21:05:58 - DEBUG - hyundai_kia_connect_api - Get Vehicles Response: {'retCode': 'S', 'resCode': '0000', 'resMsg': {'vehicles': [{'vin': 'KNAAE81324458', 'vehicleId': '8d24e-1bb3-4c7f-84238-2a23404e12', 'vehicleName': 'EV9', 'type': 'EV', 'tmuNum': '-', 'nickname': 'EV9', 'year': '2024', 'master': True, 'carShare': 1, 'regDate': '2024-11-16 08:51:27.517', 'personalFlag': '2', 'detailInfo': {'inColor': 'ABP', 'outColor': 'RBQ', 'saleCarmdlCd': 'DO', 'bodyType': '3', 'saleCarmdlEnNm': 'EV9'}, 'protocolType': 1, 'ccuCCS2ProtocolSupport': 1}]}, 'msgId': '597f6e40-ae8d-11ef-82af-2f952bb7c092'} 2024-11-29 21:05:58 - ERROR - Fehler beim Starten der Klimaanlage: 'K342242423424258'
Hope you can help me :-) Thanks in advance and greetings from Germany,
Timo
Beta Was this translation helpful? Give feedback.
All reactions