skodaconnect / homeassistant-skodaconnect

Skoda Connect - A home assistant plugin to add integration with your car
Apache License 2.0
233 stars 28 forks source link

Pre-heater not working -> Could not fetch pre-heating, HTTP status code: 502 #75

Closed pmunck86 closed 3 years ago

pmunck86 commented 3 years ago

Describe the bug Hi,

I'm on 1.0.56 and the pre-heating function is not working for me. In Skoda App it's working and in 1.0.38 it was working too.

Latest working release 1.0.38

Debug logs 2021-09-25 03:01:10 INFO (MainThread) [skodaconnect.connection] Got HTTP 502 from server, this request might not be supported for this vehicle 2021-09-25 03:01:10 WARNING (MainThread) [skodaconnect.connection] Could not fetch pre-heating, HTTP status code: 502 2021-09-25 03:01:10 DEBUG (MainThread) [skodaconnect.vehicle] Could not fetch preheater data 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect] Finished fetching skodaconnect data in 2.963 seconds (success: True) 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of last_connected 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of parking_time 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combustion_range 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combined_range 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_speed 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_fuel_consumption 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_duration 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_length 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of outside_temperature 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of requests_remaining 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of request_results 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of distance 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of fuel_level 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection_distance 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection_distance 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect] Updating data from Skoda Connect 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/rs/v1/skoda/CZ/vehicles/TMBxxx/status" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/TMBxxx/tripdata/shortTerm?newest" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/cf/v1/skoda/CZ/vehicles/TMBxxx/position" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/vsr/v1/skoda/CZ/vehicles/TMBxxx/status" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/bs/cf/v1/skoda/CZ/vehicles/TMBxxx/position" returned with status code [200] 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/bs/vsr/v1/skoda/CZ/vehicles/TMBxxx/status" returned with status code [200] 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/TMBxxx/tripdata/shortTerm?newest" returned with status code [200] 2021-09-25 03:11:10 INFO (MainThread) [skodaconnect.connection] Got HTTP 502 from server, this request might not be supported for this vehicle 2021-09-25 03:11:10 WARNING (MainThread) [skodaconnect.connection] Could not fetch pre-heating, HTTP status code: 502 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.vehicle] Could not fetch preheater data 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect] Finished fetching skodaconnect data in 0.958 seconds (success: True) 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of last_connected 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of parking_time 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combustion_range 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combined_range 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_speed 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_fuel_consumption 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_duration 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_length 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of outside_temperature 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of requests_remaining 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of request_results 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of distance 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of fuel_level 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection_distance 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection_distance

Installation:

Farfar commented 3 years ago

Describe the bug Hi,

I'm on 1.0.56 and the pre-heating function is not working for me. In Skoda App it's working and in 1.0.38 it was working too.

Latest working release 1.0.38

Debug logs 2021-09-25 03:01:10 INFO (MainThread) [skodaconnect.connection] Got HTTP 502 from server, this request might not be supported for this vehicle 2021-09-25 03:01:10 WARNING (MainThread) [skodaconnect.connection] Could not fetch pre-heating, HTTP status code: 502 2021-09-25 03:01:10 DEBUG (MainThread) [skodaconnect.vehicle] Could not fetch preheater data 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect] Finished fetching skodaconnect data in 2.963 seconds (success: True) 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of last_connected 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of parking_time 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combustion_range 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combined_range 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_speed 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_fuel_consumption 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_duration 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_length 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of outside_temperature 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of requests_remaining 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of request_results 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of distance 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of fuel_level 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection_distance 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection 2021-09-25 03:01:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection_distance 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect] Updating data from Skoda Connect 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/rs/v1/skoda/CZ/vehicles/TMBxxx/status" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/TMBxxx/tripdata/shortTerm?newest" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/cf/v1/skoda/CZ/vehicles/TMBxxx/position" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/vsr/v1/skoda/CZ/vehicles/TMBxxx/status" 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/bs/cf/v1/skoda/CZ/vehicles/TMBxxx/position" returned with status code [200] 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/bs/vsr/v1/skoda/CZ/vehicles/TMBxxx/status" returned with status code [200] 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/TMBxxx/tripdata/shortTerm?newest" returned with status code [200] 2021-09-25 03:11:10 INFO (MainThread) [skodaconnect.connection] Got HTTP 502 from server, this request might not be supported for this vehicle 2021-09-25 03:11:10 WARNING (MainThread) [skodaconnect.connection] Could not fetch pre-heating, HTTP status code: 502 2021-09-25 03:11:10 DEBUG (MainThread) [skodaconnect.vehicle] Could not fetch preheater data 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect] Finished fetching skodaconnect data in 0.958 seconds (success: True) 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of last_connected 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of parking_time 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combustion_range 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combined_range 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_speed 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_fuel_consumption 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_duration 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_length 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of outside_temperature 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of requests_remaining 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of request_results 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of distance 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of fuel_level 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection_distance 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection 2021-09-25 03:11:10 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection_distance

Installation:

  • Home Assistant variant: Hass OS
  • Python version 3.9.7
  • Python library versions ["python3 -m pip list"]

If you downgrade to 1.0.38, does it still work? 502 is indication of server side problem

pmunck86 commented 3 years ago

Hi, sorry for delayed response. I was trying to get 1.0.38 working but had a hard time with it. So I re-installed 1.0.56 and now it's working. I don't get it, but it's fine now. Issue closed.

Farfar commented 3 years ago

Hi, sorry for delayed response. I was trying to get 1.0.38 working but had a hard time with it. So I re-installed 1.0.56 and now it's working. I don't get it, but it's fine now. Issue closed.

Thank you for replying. As I said, the error you had was indication of a server side problem so it was probably a temporary issue with the servers. Glad to hear it's working again 🙂