Same procedure as last year - 'mal wieder geht nichts mehr (die XXX sind korrekte Daten):
"2025-05-21T10:20:08.937259815Z Polestar_2_MQTT.py startet
2025-05-21T10:20:08.937425535Z ==========================
2025-05-21T10:20:08.937626698Z MQTT (Unknown): attempt 1 to reconnect… (waiting 1 seconds)
2025-05-21T10:20:09.939280087Z MQTT (Unknown): Reconnected successfully after 1.00 seconds!
2025-05-21T10:20:09.940576880Z ensure_valid_token()
2025-05-21T10:20:09.940667693Z get_token(), no refresh token available
2025-05-21T10:20:09.940694785Z get_path_token()
2025-05-21T10:20:09.947410820Z MQTT connected with result code ‚Success‘: polestar2/container/connected=online
2025-05-21T10:20:10.074553941Z code_verifier = E-_rUU4ePwczT_x6Z71v0hzWV7irj9ZBBh6bpOf9XXE
2025-05-21T10:20:10.074654180Z code_challenge = QCsxo56lC5nFrr8k6Y45rpejnAv3jqLQq1J-SA7HU5c
2025-05-21T10:20:10.074681920Z cookies = PF=IRTpHvGQQifrNqbQAiquefrx59jkivH5HlNZ7rUEdeIP; Path=/; Expires=Wed, 21-May-2025 11:20:10 GMT; Max-Age=3600; Secure; HttpOnly; SameSite=None, PF.PERSISTENT=gjP7qn20iO81Pk5Ccp9CBmB4y; Path=/; Expires=Tue, 19-Aug-2025 10:20:10 GMT; Max-Age=7776000; Secure; HttpOnly; SameSite=None
2025-05-21T10:20:10.074751308Z cookie = PF=IRTpHvGQQifrNqbQAiquefrx59jkivH5HlNZ7rUEdeIP
2025-05-21T10:20:10.074775474Z path_token = CVFQGpCxNq
2025-05-21T10:20:10.075215892Z perform_login()
2025-05-21T10:20:10.223000740Z max_age = 15780000
2025-05-21T10:20:10.223115849Z uid = NONE
2025-05-21T10:20:10.223143330Z code = J-VrkuhvXVzGtUkjp1uowpksFlkOrCPK4JhbFJyL
2025-05-21T10:20:10.223660210Z get_api_token()
2025-05-21T10:20:10.361021621Z access_token = eyJhbGciOiJSUzI1NiIsImtpZCI6InhyQnI5ajR…
2025-05-21T10:20:10.361110490Z refresh_token = s72NYRarK7JjZ7IOL09Bg4zwlV2ocRHvIgELG2b2t1
2025-05-21T10:20:10.361135193Z expires_in = 299 (seconds)
2025-05-21T10:20:10.424919657Z expiry_time = 2025-05-21 12:25:09 CEST+0200
2025-05-21T10:20:10.425500444Z get_car_data()
2025-05-21T10:20:11.458740338Z {
2025-05-21T10:20:11.458890150Z „vin“: „XXXXXXXXXXX“,
2025-05-21T10:20:11.458918483Z „internalVehicleIdentifier“: „XXXXXXX“,
2025-05-21T10:20:11.458943705Z „modelYear“: „2021“,
2025-05-21T10:20:11.458968149Z „hasPerformancePackage“: true,
2025-05-21T10:20:11.458990723Z „software“: {
2025-05-21T10:20:11.459012667Z „version“: „P03.04“,
2025-05-21T10:20:11.459035426Z „versionTimestamp“: „2025-03-21 17:45:22“
2025-05-21T10:20:11.459057851Z },
2025-05-21T10:20:11.459080018Z „registrationNo“: „XXXXXXXX“,
2025-05-21T10:20:11.459102610Z „factoryCompleteDate“: „XXXXXX“,
2025-05-21T10:20:11.459125295Z „registrationDate“: „XXXXX“,
2025-05-21T10:20:11.459148257Z „deliveryDate“: „XXXXXX“,
2025-05-21T10:20:11.459170183Z „currentPlannedDeliveryDate“: „XXXXX“
2025-05-21T10:20:11.459192479Z }
2025-05-21T10:20:11.460941264Z get_car_telemetry_data()
2025-05-21T10:20:11.744106167Z Error : ‚NoneType‘ object is not subscriptable
2025-05-21T10:20:11.744260312Z in line: 484
2025-05-21T10:20:11.744286979Z type : TypeError
2025-05-21T10:20:11.744332089Z message: ‚NoneType‘ object is not subscriptable
2025-05-21T10:20:11.744356070Z ************** Traceback ***************
2025-05-21T10:20:11.746036060Z Traceback (most recent call last):
2025-05-21T10:20:11.746114411Z File „/app/Polestar_2_MQTT.py“, line 575, in
2025-05-21T10:20:11.746141207Z main()
2025-05-21T10:20:11.746164243Z ~~~~^^
2025-05-21T10:20:11.746226039Z File „/app/Polestar_2_MQTT.py“, line 545, in main
2025-05-21T10:20:11.746250408Z car_telemetry_data = get_car_telemetry_data(POLESTAR_VIN, access_token)
2025-05-21T10:20:11.746272778Z File „/app/Polestar_2_MQTT.py“, line 484, in get_car_telemetry_data
2025-05-21T10:20:11.746294611Z return response.json()[‚data‘][‚carTelematics‘]
2025-05-21T10:20:11.746315389Z ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
2025-05-21T10:20:11.746336963Z TypeError: ‚NoneType‘ object is not subscriptable