cyr-ius / hass-audiconnect

Adds an audi connect integration to home assistant
MIT License
32 stars 4 forks source link

Start/Stop charger doesn't work for me #81

Open DutchKillerbee opened 4 months ago

DutchKillerbee commented 4 months ago

Describe the bug Start/Stop chargee doesn't work for me when calling service audiconnect.turn_on_action I tried various api levels but unfortunately no luck. Car is Audi Q3 45 tfsie. (should I tick the etron checkbox?)

Diagnostics file

2024-06-18 21:30:59.565 DEBUG (MainThread) [audiconnectpy.auth] TOKEN TYPE: mbb
2024-06-18 21:30:59.565 DEBUG (MainThread) [audiconnectpy.auth] Request - Header: {'Accept': 'application/json', 'Accept-Charset': 'utf-8', 'User-Agent': 'okhttp/3.11.0', 'X-App-Name': 'myAudi', 'X-App-Version': '4.24.2', 'Authorization': 'Bearer eyJraWQiOiJNQkIwMSIsImFsZyI6IlJTMjU2In0.eyJzY3AiOlsiZmFsIl0sInN1YiI6ImVKM0JWYzliN0RMeXZEbHNCb2NXbVlDdjdNTCIsInZlciI6IjEiLCJjb3IiOiJOTCIsImlzcyI6IlZXR01CQjAxREVMSVYxIiwiY250IjoiMDk4OWVhNWYtODg0MC00NTViLWE4ZTktNmU1ZjU1MDE0MmVkIiwiY2NoIjoiYXBwIiwidHlwIjoiQVQiLCJzeXMiOiJYSURfQVBQX0FVREkiLCJzdHlwIjoiVDIiLCJhdWQiOlsiaGEtNWEucHJkLmV1LnZ3Zy52d2F1dG9jbG91ZC5uZXQiLCJtYWwucHJkLmVjZS52d2ctY29ubmVjdC5jb20iLCJoYS01YS5wcmQubmFyLnZ3Zy52d2F1dG9jbG91ZC5uZXQiXSwidG50IjoiQXVkaSxERUZBVUxUIiwiZXhwIjoxNzE4NzQwMzI0LCJpYXQiOjE3MTg3MzY3MjQsInJ0LWlkIjoiOTdlMTFmNGItMzAxMS00NTQwLTgyMmMtOGZlZWFlYjc2OTEyIiwianRpIjoiZGI0OTY1OWItN2E0NC00MTYzLWJhMjEtZDc5ZTQ5NWE2YTg1In0.RSCK4-Yl4JYzVr7GiGcAYQwE9VSOPpwOKP0bXtj6j8b8oX7g4bDwcEDd0WMuR-34oe22a-K_yTDi3XEc5cPKH2MO8N04_d248TzkJ4FH6j3uRp7zsFPWh1jxFcDwfJhSErCSxgPnyjFjwFejuiPo9sD_6lJ3Zzl6BNSRQApRauZM2YfPxZ8fcGTeZZwsbs1slo0LfFZ0dgkEI4-k4gtz_Y1aIOE3gxNMLu7sOjPWJiI1ggABpdnbtyvtFIp778iTfV8pmVum0dH1VkUMJcPwRpKndiN01VQILa3ovF0B0T1ciDssJJwUpmsIs0g1No13a4aL7jJwyV8EdHNiYkSTwQ', 'X-Client-ID': '0989ea5f-8840-455b-a8e9-6e5f550142ed', 'Content-Type': 'application/vnd.vwg.mbb.ChargerAction_v1_0_0+xml'}
2024-06-18 21:30:59.565 DEBUG (MainThread) [audiconnectpy.auth] Request: https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/batterycharge/v1/Audi/NL/vehicles/WAUZZZF35MXXXXXXX/charger/actions (POST) - <?xml version="1.0" encoding="UTF-8" ?><action><type>start</type></action>
2024-06-18 21:30:59.756 ERROR (MainThread) [custom_components.audiconnect.services] ('Service not found: %s -%s (%s)', 'https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/batterycharge/v1/Audi/NL/vehicles/WAUZZZF35MXXXXXXX/charger/actions', {'error': {'errorCode': 'batterycharge.bs.notacceptable', 'description': 'HTTP 406 Not Acceptable'}}, 406)
2024-06-18 21:31:15.412 DEBUG (MainThread) [audiconnectpy.auth] TOKEN TYPE: mbb
2024-06-18 21:31:15.412 DEBUG (MainThread) [audiconnectpy.auth] Request - Header: {'Accept': 'application/json', 'Accept-Charset': 'utf-8', 'User-Agent': 'okhttp/3.11.0', 'X-App-Name': 'myAudi', 'X-App-Version': '4.24.2', 'Authorization': 'Bearer eyJraWQiOiJNQkIwMSIsImFsZyI6IlJTMjU2In0.eyJzY3AiOlsiZmFsIl0sInN1YiI6ImVKM0JWYzliN0RMeXZEbHNCb2NXbVlDdjdNTCIsInZlciI6IjEiLCJjb3IiOiJOTCIsImlzcyI6IlZXR01CQjAxREVMSVYxIiwiY250IjoiMDk4OWVhNWYtODg0MC00NTViLWE4ZTktNmU1ZjU1MDE0MmVkIiwiY2NoIjoiYXBwIiwidHlwIjoiQVQiLCJzeXMiOiJYSURfQVBQX0FVREkiLCJzdHlwIjoiVDIiLCJhdWQiOlsiaGEtNWEucHJkLmV1LnZ3Zy52d2F1dG9jbG91ZC5uZXQiLCJtYWwucHJkLmVjZS52d2ctY29ubmVjdC5jb20iLCJoYS01YS5wcmQubmFyLnZ3Zy52d2F1dG9jbG91ZC5uZXQiXSwidG50IjoiQXVkaSxERUZBVUxUIiwiZXhwIjoxNzE4NzQwMzI0LCJpYXQiOjE3MTg3MzY3MjQsInJ0LWlkIjoiOTdlMTFmNGItMzAxMS00NTQwLTgyMmMtOGZlZWFlYjc2OTEyIiwianRpIjoiZGI0OTY1OWItN2E0NC00MTYzLWJhMjEtZDc5ZTQ5NWE2YTg1In0.RSCK4-Yl4JYzVr7GiGcAYQwE9VSOPpwOKP0bXtj6j8b8oX7g4bDwcEDd0WMuR-34oe22a-K_yTDi3XEc5cPKH2MO8N04_d248TzkJ4FH6j3uRp7zsFPWh1jxFcDwfJhSErCSxgPnyjFjwFejuiPo9sD_6lJ3Zzl6BNSRQApRauZM2YfPxZ8fcGTeZZwsbs1slo0LfFZ0dgkEI4-k4gtz_Y1aIOE3gxNMLu7sOjPWJiI1ggABpdnbtyvtFIp778iTfV8pmVum0dH1VkUMJcPwRpKndiN01VQILa3ovF0B0T1ciDssJJwUpmsIs0g1No13a4aL7jJwyV8EdHNiYkSTwQ', 'X-Client-ID': '0989ea5f-8840-455b-a8e9-6e5f550142ed', 'Content-Type': 'application/vnd.vwg.mbb.ChargerAction_v1_0_0+xml'}
2024-06-18 21:31:15.413 DEBUG (MainThread) [audiconnectpy.auth] Request: https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/batterycharge/v1/Audi/NL/vehicles/WAUZZZF35MXXXXXXX/charger/actions (POST) - <?xml version="1.0" encoding="UTF-8" ?><action><type>stop</type></action>
2024-06-18 21:31:15.617 ERROR (MainThread) [custom_components.audiconnect.services] ('Service not found: %s -%s (%s)', 'https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/batterycharge/v1/Audi/NL/vehicles/WAUZZZF35MXXXXXXX/charger/actions', {'error': {'errorCode': 'batterycharge.bs.notacceptable', 'description': 'HTTP 406 Not Acceptable'}}, 406)
2024-06-18 21:31:24.587 DEBUG (MainThread) [audiconnectpy.auth] TOKEN TYPE: idk
2024-06-18 21:31:24.587 DEBUG (MainThread) [audiconnectpy.auth] Request - Header: {'Accept': 'application/json', 'Accept-Charset': 'utf-8', 'User-Agent': "Android/4.24.2 (Build 800240338.root project 'onetouch-android'.ext.buildTime) Android/11", 'X-App-Name': 'myAudi', 'X-App-Version': '4.24.2', 'Authorization': 'Bearer eyJraWQiOiI0ODEyODgzZi05Y2FiLTQwMWMtYTI5OC0wZmEyMTA5Y2ViY2EiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiYWRiZGJlMy1jYWJjLTQxMDUtYjk5Zi04MWYxODgyOWI5YWUiLCJhdWQiOiJmNGQwOTM0Zi0zMmJmLTRjZTQtYjNjNC02OTlhNzA0OWFkMjZAYXBwc192dy1kaWxhYl9jb20iLCJzY3AiOiJwcm9maWxlIG5hbWUgYmFkZ2UgcGljdHVyZSBuaWNrbmFtZSBnYWxsZXJ5IGVtYWlsIGJpcnRoZGF0ZSBhZGRyZXNzIHBob25lIHZpbiBuYXRpb25hbGl0eSBwcm9mZXNzaW9uIG5hdGlvbmFsSWRlbnRpZmllciBiaXJ0aHBsYWNlIG9wZW5pZCBtYmIiLCJhYXQiOiJpZGVudGl0eWtpdCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkudndncm91cC5pbyIsImp0dCI6ImFjY2Vzc190b2tlbiIsImV4cCI6MTcxODc0MDMyNCwiaWF0IjoxNzE4NzM2NzI0LCJsZWUiOlsiQVVESSJdLCJqdGkiOiJiNTViMjY5MS1hZDAxLTQ0NDAtODRiZS02NDYxODJkZjk2ZTEifQ.g7bfvRE7OODmt8gTWA-XITJXvEBMbXW4Mk6fGUf9FoQBeYnO64MhEAm3G6fexcWKGafKWpTORjZbsv3etuiFX5cDN9BuqS1qpGOyPmMXFbjb8DRclGgAFvb38fOUTM6WUUQTG9C7V8IGBe_L39YVPSIxyDMwx-F6cIgaYDU62rHcJOp2BWiNxf1EPsRLW-CDx0lJayo-l5LiyWx4bhhws3TPxVDqC-IxtvNRlLYsjPMGmreB9Y3kz4-DoerOCkEYBHDoby6MsNT9nosn0kRNIsfGJo89dzBPFG7zrbJpgYZw8YMiAuo9PDwlrTCz63jHMFPaAACbDknyUPevui8QMVcjaHzx6bJHlZ77udeH8Y3CWIt2ghuFG7NY2-_t5vm2PC29GxbWfhcduQTTzuQbVb5kGy24ovOkLbwpFJf8fpKj9klQ1VNY0FOd9h_vWePPBAAzVcHT_ePbGjNPytkn0iJPFAiZwANDN2xgVCFDk5-YKQcgBgspmFQ0vZ2JZabyLQ6005AtVNY9QGtAj26yFOahar0t4ui49G1APmpG_LGjMXb__apRFrE8jOBk79LWVBpU3KRQgn12CrXKfjc4dRoOw636BZTb6DyEtz3v7tK5W0x2vcvP7bgkDlvL7RoIbrydFdQzNBgUKscewcAKS4RU4aZ89nXD4-zCjiaCaq4', 'X-Client-ID': '0989ea5f-8840-455b-a8e9-6e5f550142ed'}
2024-06-18 21:31:24.588 DEBUG (MainThread) [audiconnectpy.auth] Request: https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZF35MXXXXXXX/vehiclewakeup (POST) - None
2024-06-18 21:31:25.399 DEBUG (MainThread) [audiconnectpy.auth] Response - Headers: <CIMultiDictProxy('Date': 'Tue, 18 Jun 2024 19:31:25 GMT', 'Content-Type': 'application/json; charset=UTF-8', 'Content-Length': '86', 'Connection': 'keep-alive', 'Bff-Trace-Id': 'f8c7bc8a-b15f-4fa1-bdc7-7347866fe08a', 'Content-Encoding': 'gzip', 'Content-Security-Policy': "default-src 'self'", 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Vary': 'Accept-Encoding', 'Vcf-Remaining-Calls': '46', 'Vcf-Trace-Id': 'b3521e78-6304-45d2-83b4-1a30ae0c6a1d', 'X-Content-Type-Options': 'nosniff', 'X-Dns-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'DENY', 'X-Xss-Protection': '1; mode=block')>
2024-06-18 21:31:25.400 DEBUG (MainThread) [audiconnectpy.auth] Response: b'{"data":{"requestID":"7608e408-3cd6-4282-ac46-8553e805d62e"}}\n' (200)
2024-06-18 21:31:25.401 DEBUG (MainThread) [audiconnectpy.auth] ---------------------------------------------------------
2024-06-18 21:31:35.402 DEBUG (MainThread) [audiconnectpy.auth] TOKEN TYPE: idk
2024-06-18 21:31:35.402 DEBUG (MainThread) [audiconnectpy.auth] Request - Header: {'Accept': 'application/json', 'Accept-Charset': 'utf-8', 'User-Agent': "Android/4.24.2 (Build 800240338.root project 'onetouch-android'.ext.buildTime) Android/11", 'X-App-Name': 'myAudi', 'X-App-Version': '4.24.2', 'Authorization': 'Bearer eyJraWQiOiI0ODEyODgzZi05Y2FiLTQwMWMtYTI5OC0wZmEyMTA5Y2ViY2EiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiYWRiZGJlMy1jYWJjLTQxMDUtYjk5Zi04MWYxODgyOWI5YWUiLCJhdWQiOiJmNGQwOTM0Zi0zMmJmLTRjZTQtYjNjNC02OTlhNzA0OWFkMjZAYXBwc192dy1kaWxhYl9jb20iLCJzY3AiOiJwcm9maWxlIG5hbWUgYmFkZ2UgcGljdHVyZSBuaWNrbmFtZSBnYWxsZXJ5IGVtYWlsIGJpcnRoZGF0ZSBhZGRyZXNzIHBob25lIHZpbiBuYXRpb25hbGl0eSBwcm9mZXNzaW9uIG5hdGlvbmFsSWRlbnRpZmllciBiaXJ0aHBsYWNlIG9wZW5pZCBtYmIiLCJhYXQiOiJpZGVudGl0eWtpdCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkudndncm91cC5pbyIsImp0dCI6ImFjY2Vzc190b2tlbiIsImV4cCI6MTcxODc0MDMyNCwiaWF0IjoxNzE4NzM2NzI0LCJsZWUiOlsiQVVESSJdLCJqdGkiOiJiNTViMjY5MS1hZDAxLTQ0NDAtODRiZS02NDYxODJkZjk2ZTEifQ.g7bfvRE7OODmt8gTWA-XITJXvEBMbXW4Mk6fGUf9FoQBeYnO64MhEAm3G6fexcWKGafKWpTORjZbsv3etuiFX5cDN9BuqS1qpGOyPmMXFbjb8DRclGgAFvb38fOUTM6WUUQTG9C7V8IGBe_L39YVPSIxyDMwx-F6cIgaYDU62rHcJOp2BWiNxf1EPsRLW-CDx0lJayo-l5LiyWx4bhhws3TPxVDqC-IxtvNRlLYsjPMGmreB9Y3kz4-DoerOCkEYBHDoby6MsNT9nosn0kRNIsfGJo89dzBPFG7zrbJpgYZw8YMiAuo9PDwlrTCz63jHMFPaAACbDknyUPevui8QMVcjaHzx6bJHlZ77udeH8Y3CWIt2ghuFG7NY2-_t5vm2PC29GxbWfhcduQTTzuQbVb5kGy24ovOkLbwpFJf8fpKj9klQ1VNY0FOd9h_vWePPBAAzVcHT_ePbGjNPytkn0iJPFAiZwANDN2xgVCFDk5-YKQcgBgspmFQ0vZ2JZabyLQ6005AtVNY9QGtAj26yFOahar0t4ui49G1APmpG_LGjMXb__apRFrE8jOBk79LWVBpU3KRQgn12CrXKfjc4dRoOw636BZTb6DyEtz3v7tK5W0x2vcvP7bgkDlvL7RoIbrydFdQzNBgUKscewcAKS4RU4aZ89nXD4-zCjiaCaq4', 'X-Client-ID': '0989ea5f-8840-455b-a8e9-6e5f550142ed'}
2024-06-18 21:31:35.403 DEBUG (MainThread) [audiconnectpy.auth] Request: https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZF35MXXXXXXX/pendingrequests (GET) - None
2024-06-18 21:31:35.483 DEBUG (MainThread) [audiconnectpy.auth] Response - Headers: <CIMultiDictProxy('Date': 'Tue, 18 Jun 2024 19:31:35 GMT', 'Content-Type': 'application/json; charset=UTF-8', 'Content-Length': '362', 'Connection': 'keep-alive', 'Bff-Trace-Id': '662c7979-0673-4d30-aa2f-55f548802f70', 'Content-Encoding': 'gzip', 'Content-Security-Policy': "default-src 'self'", 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Vary': 'Accept-Encoding', 'X-Content-Type-Options': 'nosniff', 'X-Dns-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'DENY', 'X-Xss-Protection': '1; mode=block')>
2024-06-18 21:31:35.484 DEBUG (MainThread) [audiconnectpy.auth] Response: b'{"data":[{"id":"7608e408-3cd6-4282-ac46-8553e805d62e","userId":"badbdbe3-cabc-4105-b99f-81f18829b9ae","vin":"WAUZZZF35MXXXXXXX","httpMethod":"POST","path":"/vehicles/WAUZZZF35MXXXXXXX/vehiclewakeup","capability":"vehicleWakeUp","operation":"wakeup","operationGroup":"vehicleWakeUp","body":"{\\"callback\\":\\"https://emea.bff.cariad.digital/vehicle/v1/vehicles/callbacks/WAUZZZF35MXXXXXXX/vehicleWakeUp/wakeup/POST\\"}","vcfRequestId":"2131382402","status":"in_progress","queuedOperation":null,"timestamp":"2024-06-18T19:31:25.395400915Z"}]}\n' (200)
2024-06-18 21:31:35.484 DEBUG (MainThread) [audiconnectpy.auth] ---------------------------------------------------------
2024-06-18 21:31:45.485 DEBUG (MainThread) [audiconnectpy.auth] TOKEN TYPE: idk
2024-06-18 21:31:45.486 DEBUG (MainThread) [audiconnectpy.auth] Request - Header: {'Accept': 'application/json', 'Accept-Charset': 'utf-8', 'User-Agent': "Android/4.24.2 (Build 800240338.root project 'onetouch-android'.ext.buildTime) Android/11", 'X-App-Name': 'myAudi', 'X-App-Version': '4.24.2', 'Authorization': 'Bearer eyJraWQiOiI0ODEyODgzZi05Y2FiLTQwMWMtYTI5OC0wZmEyMTA5Y2ViY2EiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiYWRiZGJlMy1jYWJjLTQxMDUtYjk5Zi04MWYxODgyOWI5YWUiLCJhdWQiOiJmNGQwOTM0Zi0zMmJmLTRjZTQtYjNjNC02OTlhNzA0OWFkMjZAYXBwc192dy1kaWxhYl9jb20iLCJzY3AiOiJwcm9maWxlIG5hbWUgYmFkZ2UgcGljdHVyZSBuaWNrbmFtZSBnYWxsZXJ5IGVtYWlsIGJpcnRoZGF0ZSBhZGRyZXNzIHBob25lIHZpbiBuYXRpb25hbGl0eSBwcm9mZXNzaW9uIG5hdGlvbmFsSWRlbnRpZmllciBiaXJ0aHBsYWNlIG9wZW5pZCBtYmIiLCJhYXQiOiJpZGVudGl0eWtpdCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkudndncm91cC5pbyIsImp0dCI6ImFjY2Vzc190b2tlbiIsImV4cCI6MTcxODc0MDMyNCwiaWF0IjoxNzE4NzM2NzI0LCJsZWUiOlsiQVVESSJdLCJqdGkiOiJiNTViMjY5MS1hZDAxLTQ0NDAtODRiZS02NDYxODJkZjk2ZTEifQ.g7bfvRE7OODmt8gTWA-XITJXvEBMbXW4Mk6fGUf9FoQBeYnO64MhEAm3G6fexcWKGafKWpTORjZbsv3etuiFX5cDN9BuqS1qpGOyPmMXFbjb8DRclGgAFvb38fOUTM6WUUQTG9C7V8IGBe_L39YVPSIxyDMwx-F6cIgaYDU62rHcJOp2BWiNxf1EPsRLW-CDx0lJayo-l5LiyWx4bhhws3TPxVDqC-IxtvNRlLYsjPMGmreB9Y3kz4-DoerOCkEYBHDoby6MsNT9nosn0kRNIsfGJo89dzBPFG7zrbJpgYZw8YMiAuo9PDwlrTCz63jHMFPaAACbDknyUPevui8QMVcjaHzx6bJHlZ77udeH8Y3CWIt2ghuFG7NY2-_t5vm2PC29GxbWfhcduQTTzuQbVb5kGy24ovOkLbwpFJf8fpKj9klQ1VNY0FOd9h_vWePPBAAzVcHT_ePbGjNPytkn0iJPFAiZwANDN2xgVCFDk5-YKQcgBgspmFQ0vZ2JZabyLQ6005AtVNY9QGtAj26yFOahar0t4ui49G1APmpG_LGjMXb__apRFrE8jOBk79LWVBpU3KRQgn12CrXKfjc4dRoOw636BZTb6DyEtz3v7tK5W0x2vcvP7bgkDlvL7RoIbrydFdQzNBgUKscewcAKS4RU4aZ89nXD4-zCjiaCaq4', 'X-Client-ID': '0989ea5f-8840-455b-a8e9-6e5f550142ed'}
2024-06-18 21:31:45.486 DEBUG (MainThread) [audiconnectpy.auth] Request: https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZF35MXXXXXXX/pendingrequests (GET) - None
2024-06-18 21:31:45.520 DEBUG (MainThread) [audiconnectpy.auth] Response - Headers: <CIMultiDictProxy('Date': 'Tue, 18 Jun 2024 19:31:45 GMT', 'Content-Type': 'application/json; charset=UTF-8', 'Content-Length': '362', 'Connection': 'keep-alive', 'Bff-Trace-Id': '934de17d-501f-490e-8d2d-515b63cffa12', 'Content-Encoding': 'gzip', 'Content-Security-Policy': "default-src 'self'", 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Vary': 'Accept-Encoding', 'X-Content-Type-Options': 'nosniff', 'X-Dns-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'DENY', 'X-Xss-Protection': '1; mode=block')>
2024-06-18 21:31:45.520 DEBUG (MainThread) [audiconnectpy.auth] Response: b'{"data":[{"id":"7608e408-3cd6-4282-ac46-8553e805d62e","userId":"badbdbe3-cabc-4105-b99f-81f18829b9ae","vin":"WAUZZZF35MXXXXXXX","httpMethod":"POST","path":"/vehicles/WAUZZZF35MXXXXXXX/vehiclewakeup","capability":"vehicleWakeUp","operation":"wakeup","operationGroup":"vehicleWakeUp","body":"{\\"callback\\":\\"https://emea.bff.cariad.digital/vehicle/v1/vehicles/callbacks/WAUZZZF35MXXXXXXX/vehicleWakeUp/wakeup/POST\\"}","vcfRequestId":"2131382402","status":"in_progress","queuedOperation":null,"timestamp":"2024-06-18T19:31:25.395400915Z"}]}\n' (200)
2024-06-18 21:31:45.520 DEBUG (MainThread) [audiconnectpy.auth] ---------------------------------------------------------

Additional context during refresh I get this error:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 723, in async_trigger
    return await self.action_script.async_run(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1769, in async_run
    return await asyncio.shield(create_eager_task(run.async_run()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/audiconnect/services.py", line 50, in async_refresh_data
    await coordinator.async_request_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 262, in async_request_refresh
    await self._debounced_refresh.async_call()
  File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 114, in async_call
    await task
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
    update_callback()
  File "/config/custom_components/audiconnect/entity.py", line 68, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1061, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1006, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 237, in state
    if self.latitude is not None and self.longitude is not None:
       ^^^^^^^^^^^^^
  File "/config/custom_components/audiconnect/device_tracker.py", line 42, in latitude
    return self.vehicle.position.latitude
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'latitude'
github-actions[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.