Closed freshfieldx closed 1 year ago
I wonder if this should have been 3.0.0_Beta?
The support for rear seat heaters is there, it just sounds like it's having issues with the entities being created. Right now we're checking the "vehicle_config" section of the Tesla API for "rear_seat_heaters" which I assumed is returning 0 if the vehicle doesn't have them, and something other than 0 if it does.
If you're able to turn on debugging for teslajsonpy and share the "vehicle_config" section of when we make a get request to the vehicle_data endpoint, that would help us. Unfortunately there's. no official Tesla API documentation so everything is sort of trial and error, and the Tesla API changes frequently.
I can confirm that I can see all 5 heated seats (including rear) with the V3 integration.
Can you show us what you have visible on your device tab?
I can see the three rear seats, and should be able to control them (M3LR), but their states are all 'unavailable'.
Everything is unavailable. Something majorly broke with this update.
Try waking up the car and see if they come online. For me it took a bit.
I also believe this issue here is the same: https://github.com/alandtse/tesla/issues/293#issuecomment-1289134291
This issue is still present for me, after a couple of days of the car being in use, online, etc.
If it's any use for debugging, I do have heated rear seats, I don't have a heated steering wheel (2020 model M3 LR).
There for a day or 2 but now the rear seats have disappeared (unresponsive). Is it mistaking 3rd row seats for 2nd row?
So my rear seats were missing (2019 M3 SR+). I forced the car awake and restarted and they appeared.
Tl;dr version: there’s a climate object where the rear heaters appear, but they don’t if the car is asleep.
The first call for vehicle_id part didn’t have the correct information:
2022-11-18 01:13:56.500 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":[{"id":1492931442798456,"user_id":xxxxxxx,"vehicle_id":xxxxxxx,"vin":"xxxxxxxxx","display_name":"Teslora","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"access_type":"OWNER","tokens":["797fd8c3f04fbd29","4d8a92b0b1acf72c"],"state":"online","in_service":false,"id_s":"1492931442798456","calendar_enabled":true,"api_version":42,"backseat_token":null,"backseat_token_updated_at":null,"vehicle_config":{"aux_park_lamps":"NaBase","badge_version":0,"can_accept_navigation_requests":true,"can_actuate_trunks":true,"car_special_type":"base","car_type":"model3","charge_port_type":"US","dashcam_clip_save_supported":true,"default_charge_to_max":false,"driver_assist":"TeslaAP3","ece_restrictions":false,"efficiency_package":"Default","eu_vehicle":false,"exterior_color":"PearlWhite","exterior_trim":"Chrome","exterior_trim_override":"","has_air_suspension":false,"has_ludicrous_mode":false,"has_seat_cooling":false,"headlamp_type":"Premium","interior_trim_type":"Black","key_version":2,"motorized_charge_port":true,"paint_color_override":"20,20,20,0.01,0.04","performance_package":"BasePlus","plg":false,"pws":false,"rear_drive_unit":"PM216MOSFET","rear_seat_heaters":1,"rear_seat_type":0,"rhd":false,"roof_color":"RoofColorGlass","seat_type":null,"spoiler_type":"None","sun_roof_installed":null,"supports_qr_pairing":false,"third_row_seats":"None","timestamp":1668751945592,"trim_badging":"50","use_range_badging":true,"utc_offset":-14400,"webcam_supported":false,"wheel_type":"Stiletto19"},"command_signing":"off"}],"count":1} 2022-11-18 01:13:56.501 DEBUG (MainThread) [teslajsonpy.controller] 36239: Changing car_online from {} to True 2022-11-18 01:13:56.501 DEBUG (MainThread) [teslajsonpy.controller] 36239: Resetting last_wake_up_time to: 1668752037 2022-11-18 01:13:56.501 DEBUG (MainThread) [teslajsonpy.controller] 36239: Resetting last_parked_timestamp to: 1668752034 shift_state None 2022-11-18 01:13:56.501 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 1:24:11 2022-11-18 01:13:56.502 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/1492931442798456/vehicle_data {}
That was the only call to teslajson.py when the car was asleep.
When I woke it up and restarted I got the above log message, and then it connected twice more:
2022-11-18 01:13:57.406 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":1492931442798456,"user_id":xxxxxxx,"vehicle_id":xxxxxxxx,"vin":"xxxxxxx","display_name":"Teslora","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"access_type":"OWNER","tokens":["797fd8c3f04fbd29","4d8a92b0b1acf72c"],"state":"online","in_service":false,"id_s":"1492931442798456","calendar_enabled":true,"api_version":42,"backseat_token":null,"backseat_token_updated_at":null,"charge_state":{"battery_heater_on":false,"battery_level":90,"battery_range":198.92,"charge_amps":32,"charge_current_request":32,"charge_current_request_max":32,"charge_enable_request":true,"charge_energy_added":18.54,"charge_limit_soc":90,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":90,"charge_miles_added_ideal":84.5,"charge_miles_added_rated":84.5,"charge_port_cold_weather_mode":false,"charge_port_color":"
Same here - I noticed the sensor for the Sentry mode to be missing - reloading the integration when the car was online solved that. Not sure if that's something that can be cached sensibly instead of reading from the Tesla API at that moment...
I can't see this mentioned already, but the heated rear seats are missing in 3.0.0