alandtse / tesla

Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Apache License 2.0
592 stars 100 forks source link

Open cover for charger door not working #1041

Closed rock3r-swe closed 1 month ago

rock3r-swe commented 1 month ago

Is there an existing issue for this?

I have read about the Fleet API and understand I may need to use it

Version of the Tesla component

3.24.1

Version of the Tesla car software

2024.26.8

Model

Model Y

Current Behavior

Before the Open cover for charger door was working. I expect that clicking on the icon or using cover.open_cover shall open the cover door on my Tesla.

Expected Behavior

Stopped working. Not sure from when.

Debug logs

2024-09-10 18:34:32.695 DEBUG (MainThread) [custom_components.tesla_custom.cover] Opening cover: Charger door
2024-09-10 18:34:32.696 DEBUG (MainThread) [teslajsonpy.car] Sending command: CHARGE_PORT_DOOR_OPEN
2024-09-10 18:34:32.696 DEBUG (MainThread) [teslajsonpy.controller] 16956: Sending wake request with deadline of: 1725986132
2024-09-10 18:34:32.697 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:28
2024-09-10 18:34:32.698 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/wake_up {}
2024-09-10 18:34:32.970 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":930087024961184,"user_id":1689097377331612,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"offline","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
2024-09-10 18:34:34.972 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:26
2024-09-10 18:34:34.973 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956 {}
2024-09-10 18:34:35.192 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":930087024961184,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","display_name":"Night Fury","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"offline","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
2024-09-10 18:34:37.166 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:34:37.166 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 28 Interval 60
2024-09-10 18:34:37.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: Skipping update with state offline. Polling: True. Last update: 8869 ago. Last parked: 8869.523999929428 ago. Last wake up 16595 ago. 
2024-09-10 18:34:37.167 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-09-10 18:34:37.194 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:23
2024-09-10 18:34:37.195 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956 {}
2024-09-10 18:34:37.290 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":930087024961184,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","display_name":"Night Fury","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"offline","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
2024-09-10 18:34:38.501 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:34:38.502 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60
2024-09-10 18:34:38.502 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-09-10 18:34:39.292 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:21
2024-09-10 18:34:39.293 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956 {}
2024-09-10 18:34:39.395 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":930087024961184,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","display_name":"Night Fury","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"offline","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
2024-09-10 18:34:41.397 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:19
2024-09-10 18:34:41.398 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956 {}
2024-09-10 18:34:41.545 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":930087024961184,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","display_name":"Night Fury","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
2024-09-10 18:34:41.545 DEBUG (MainThread) [teslajsonpy.controller] 16956: Changing car_online from False to True
2024-09-10 18:34:41.546 DEBUG (MainThread) [teslajsonpy.controller] 16956: Resetting last_wake_up_time to: 1725986082
2024-09-10 18:34:41.546 DEBUG (MainThread) [teslajsonpy.controller] 16956: Wakeup took 8 seconds, state: online
2024-09-10 18:34:41.547 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:19
2024-09-10 18:34:41.548 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/command/charge_port_door_open {}
2024-09-10 18:34:41.645 DEBUG (MainThread) [teslajsonpy.connection] 403: {"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}
2024-09-10 18:34:43.199 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:17
2024-09-10 18:34:43.200 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/command/charge_port_door_open {}
2024-09-10 18:34:43.289 DEBUG (MainThread) [teslajsonpy.connection] 403: {"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}
2024-09-10 18:34:45.604 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:15
2024-09-10 18:34:45.605 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/command/charge_port_door_open {}
2024-09-10 18:34:45.691 DEBUG (MainThread) [teslajsonpy.connection] 403: {"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}
2024-09-10 18:34:47.165 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:34:47.166 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 38 Interval 60
2024-09-10 18:34:47.166 DEBUG (MainThread) [teslajsonpy.controller] 16956: offline. Polling policy: normal. Update state: normal. Since last park: 8879.523999929428. Since last wake up: 5. Idle interval: 600. shift_state: None sentry: False climate: False, charging: Disconnected 
2024-09-10 18:34:47.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: offline; Polling policy set to 'normal', trying to sleep; scan throttled to 660 seconds and will ignore updates for -8219 seconds
2024-09-10 18:34:47.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: Updating VEHICLE_DATA
2024-09-10 18:34:47.168 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:13
2024-09-10 18:34:47.172 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/vehicle_data?endpoints=charge_state%3Bclimate_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state%3Blocation_data {}
2024-09-10 18:34:47.450 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"id":930087024961184,"user_id":1689097377331612,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":61,"battery_range":177.91,"charge_amps":16,"charge_current_request":16,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":35.46,"charge_limit_soc":80,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":148.5,"charge_miles_added_rated":148.5,"charge_port_cold_weather_mode":false,"charge_port_color":"\u003cinvalid\u003e","charge_port_door_open":false,"charge_port_latch":"Engaged","charge_rate":0.0,"charger_actual_current":0,"charger_phases":null,"charger_pilot_current":16,"charger_power":0,"charger_voltage":2,"charging_state":"Disconnected","conn_charge_cable":"\u003cinvalid\u003e","est_battery_range":187.35,"fast_charger_brand":"\u003cinvalid\u003e","fast_charger_present":false,"fast_charger_type":"\u003cinvalid\u003e","ideal_battery_range":177.91,"max_range_charge_counter":0,"minutes_to_full_charge":0,"not_enough_power_to_heat":null,"off_peak_charging_enabled":false,"off_peak_charging_times":"all_week","preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_departure_time":null,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1725986085764,"trip_charging":false,"usable_battery_level":61,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":false,"auto_seat_climate_right":false,"auto_steering_wheel_heat":false,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"FanOnly","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":19.5,"fan_status":0,"hvac_auto_request":"On","inside_temp":23.9,"is_auto_conditioning_on":false,"is_climate_on":false,"is_front_defroster_on":false,"is_preconditioning":false,"is_rear_defroster_on":false,"left_temp_direction":0,"max_avail_temp":28.0,"min_avail_temp":15.0,"outside_temp":22.0,"passenger_temp_setting":19.5,"remote_heater_control_enabled":false,"right_temp_direction":0,"seat_heater_left":0,"seat_heater_rear_center":0,"seat_heater_rear_left":0,"seat_heater_rear_right":0,"seat_heater_right":0,"side_mirror_heaters":false,"steering_wheel_heat_level":0,"steering_wheel_heater":false,"supports_fan_only_cabin_overheat_protection":true,"timestamp":1725986085764,"wiper_blade_heater":false},"drive_state":{"gps_as_of":1725986086,"heading":278,"latitude":55.757365,"longitude":13.368666,"native_latitude":55.757365,"native_location_supported":1,"native_longitude":13.368666,"native_type":"wgs","power":0,"shift_state":null,"speed":null,"timestamp":1725986085764},"gui_settings":{"gui_24_hour_time":true,"gui_charge_rate_units":"kW","gui_distance_units":"km/hr","gui_range_display":"Rated","gui_temperature_units":"C","gui_tirepressure_units":"Bar","show_range_units":false,"timestamp":1725986085764},"vehicle_config":{"aux_park_lamps":"Eu","badge_version":0,"can_accept_navigation_requests":true,"can_actuate_trunks":true,"car_special_type":"base","car_type":"modely","charge_port_type":"CCS","cop_user_set_temp_supported":false,"dashcam_clip_save_supported":true,"default_charge_to_max":false,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MY2020","eu_vehicle":true,"exterior_color":"MidnightSilver","exterior_trim":"Black","exterior_trim_override":"","has_air_suspension":false,"has_ludicrous_mode":false,"has_seat_cooling":false,"headlamp_type":"Global","interior_trim_type":"Black2","key_version":2,"motorized_charge_port":true,"paint_color_override":"","performance_package":"Base","plg":true,"pws":true,"rear_drive_unit":"PM216MOSFET","rear_seat_heaters":1,"rear_seat_type":0,"rhd":false,"roof_color":"RoofColorGlass","seat_type":null,"sentry_preview_supported":false,"spoiler_type":"None","sun_roof_installed":null,"supports_qr_pairing":false,"third_row_seats":"None","timestamp":1725986085764,"trim_badging":"74d","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":true,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":79,"autopark_state_v2":"ready","autopark_style":"dead_man","calendar_supported":true,"car_version":"2024.26.8 7c528851cb24","center_display_state":0,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,65cbc7f","fp_window":0,"ft":0,"is_user_present":false,"last_autopark_error":"no_error","locked":true,"media_info":{"audio_volume":1.6667,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Playing","now_playing_album":"","now_playing_artist":"","now_playing_duration":188000,"now_playing_elapsed":95000,"now_playing_source":"Spotify","now_playing_station":"","now_playing_title":""},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":41049.020059,"parsed_calendar_supported":true,"pf":0,"pr":0,"rd_window":0,"remote_start":false,"remote_start_enabled":true,"remote_start_supported":true,"rp_window":0,"rt":0,"santa_mode":0,"sentry_mode":false,"sentry_mode_available":true,"service_mode":false,"service_mode_plus":false,"smart_summon_available":true,"software_update":{"download_perc":0,"expected_duration_sec":2700,"install_perc":1,"status":"","version":" "},"speed_limit_mode":{"active":false,"current_limit_mph":85.0,"max_limit_mph":120,"min_limit_mph":50.0,"pin_code_set":false},"summon_standby_mode_enabled":false,"timestamp":1725986085764,"tpms_hard_warning_fl":false,"tpms_hard_warning_fr":false,"tpms_hard_warning_rl":false,"tpms_hard_warning_rr":false,"tpms_last_seen_pressure_time_fl":1725976651,"tpms_last_seen_pressure_time_fr":1725976621,"tpms_last_seen_pressure_time_rl":1725976622,"tpms_last_seen_pressure_time_rr":1725976621,"tpms_pressure_fl":2.9,"tpms_pressure_fr":2.9,"tpms_pressure_rl":2.9,"tpms_pressure_rr":2.9,"tpms_rcp_front_value":2.9,"tpms_rcp_rear_value":2.9,"tpms_soft_warning_fl":false,"tpms_soft_warning_fr":false,"tpms_soft_warning_rl":false,"tpms_soft_warning_rr":false,"valet_mode":false,"valet_pin_needed":true,"vehicle_name":"Night Fury","vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
2024-09-10 18:34:47.451 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.286 seconds (success: True)
2024-09-10 18:34:47.463 DEBUG (MainThread) [custom_components.tesla_custom.select] Current setting for left is Off
2024-09-10 18:34:47.463 DEBUG (MainThread) [custom_components.tesla_custom.select] Current setting for right is Off
2024-09-10 18:34:47.464 DEBUG (MainThread) [custom_components.tesla_custom.select] Current setting for rear left is Off
2024-09-10 18:34:47.464 DEBUG (MainThread) [custom_components.tesla_custom.select] Current setting for rear center is Off
2024-09-10 18:34:47.464 DEBUG (MainThread) [custom_components.tesla_custom.select] Current setting for rear right is Off
2024-09-10 18:34:48.502 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:34:48.502 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 40 Interval 60
2024-09-10 18:34:48.502 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-09-10 18:34:50.593 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:10
2024-09-10 18:34:50.594 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/command/charge_port_door_open {}
2024-09-10 18:34:50.681 DEBUG (MainThread) [teslajsonpy.connection] 403: {"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}
2024-09-10 18:34:56.548 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:25:04
2024-09-10 18:34:56.549 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/vehicles/LRWYGCEK0MC116956/command/charge_port_door_open {}
2024-09-10 18:34:56.781 DEBUG (MainThread) [teslajsonpy.connection] 403: {"response":null,"error":"Tesla Vehicle Command Protocol required, please refer to the documentation here: https://developer.tesla.com/docs/fleet-api#2023-10-09-rest-api-vehicle-commands-endpoint-deprecation-warning","error_description":""}
2024-09-10 18:34:56.783 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2444205768] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/tesla_custom/cover.py", line 52, in async_open_cover
    await self._car.charge_port_door_open()
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/car.py", line 848, in charge_port_door_open
    data = await self._send_command("CHARGE_PORT_DOOR_OPEN")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/car.py", line 785, in _send_command
    raise ex
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/car.py", line 770, in _send_command
    data = await self._controller.api(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/controller.py", line 1349, in api
    return await self.__post_with_retries(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 418, in exc_check
    raise retry_exc.reraise()
          ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 185, in reraise
    raise self.last_attempt.result()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/controller.py", line 1390, in __post_with_retries
    return await self.__connection.post(command, method=method, data=data, url=url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/connection.py", line 166, in post
    return await self.__open(url, method=method, headers=self.head, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/teslajsonpy/connection.py", line 218, in __open
    raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
2024-09-10 18:34:57.166 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:34:57.166 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 48 Interval 60
2024-09-10 18:34:57.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: offline. Polling policy: normal. Update state: trying_to_sleep. Since last park: 8889.523999929428. Since last wake up: 15. Idle interval: 600. shift_state: None sentry: False climate: False, charging: Disconnected 
2024-09-10 18:34:57.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: offline; Polling policy set to 'normal', trying to sleep; scan throttled to 660 seconds and will ignore updates for 650 seconds
2024-09-10 18:34:57.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: Skipping update with state offline. Polling: True. Last update: 10 ago. Last parked: 8889.523999929428 ago. Last wake up 15 ago. 
2024-09-10 18:34:57.167 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.002 seconds (success: True)
2024-09-10 18:34:58.501 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:34:58.501 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 50 Interval 60
2024-09-10 18:34:58.502 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.001 seconds (success: True)
2024-09-10 18:35:07.165 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:35:07.166 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 58 Interval 60
2024-09-10 18:35:07.166 DEBUG (MainThread) [teslajsonpy.controller] 16956: offline. Polling policy: normal. Update state: trying_to_sleep. Since last park: 8899.523999929428. Since last wake up: 25. Idle interval: 600. shift_state: None sentry: False climate: False, charging: Disconnected 
2024-09-10 18:35:07.166 DEBUG (MainThread) [teslajsonpy.controller] 16956: offline; Polling policy set to 'normal', trying to sleep; scan throttled to 660 seconds and will ignore updates for 640 seconds
2024-09-10 18:35:07.167 DEBUG (MainThread) [teslajsonpy.controller] 16956: Skipping update with state offline. Polling: True. Last update: 20 ago. Last parked: 8899.523999929428 ago. Last wake up 25 ago. 
2024-09-10 18:35:07.167 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.002 seconds (success: True)
2024-09-10 18:35:08.501 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2024-09-10 18:35:08.501 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 60 Interval 60
2024-09-10 18:35:08.502 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 2:24:52
2024-09-10 18:35:08.503 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/products {}
2024-09-10 18:35:08.811 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":[{"id":930087024961184,"user_id":1689097377331612,"vehicle_id":1689093166316961,"vin":"LRWYGCEK0MC116956","color":null,"access_type":"OWNER","display_name":"Night Fury","option_codes":null,"cached_data":"EicKAgoAEgISABoCIgAqAhIAOgwInOqBtwYQwIX0sAHABgHQBgDgBgEaowEKAhIAmgICGgDiAgwInOqBtwYQgN+hnwHqAgIKAPICAPIJCAoCCgASABoAwAZQyAZQ0AYy2AZk6AYA8AYA/QZv6DFDhQezWjtDjQdv6DFDkAc9mAc9pQcK1w1CrQcAgBRDtQcAgBRDuAcCwAcQyAcA0AcA6AcA8AcA+AcAkAgAqAgBwAgAyAgQ0AgQoAkAqAkQwAkA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WzbZfhFgpt28ojZ36aYDBEpN2iuP/qap69ag5aiEaCFgtXxCPogckTz52aiSBU6vpa7DYXqtOjHmlbUVvDBrDyieTZywjY/gEvJKvtAg4m3DknW1bDAXKrEVgqj1r/pxIZGgwI9qCNtwYQgPLVywMiDAiD7/6tBhDAyPCcAaI4nwQSgAR0lvfX/qfPINye7Ob1oKEF39Y0ifboBMXev9Uw475n2sJiGCDe1My+FJe5REUPMUoGYEueJNCxlK91mFW/cW+ix9POzaH91nNifKOJKHwK1/dyehGNLcXMXScfIOa++BBVCOAhgKoMJ0Fhz7QkPayl1CUPBLOTWaKCtCJLVuz3xgzU5z8gAdBS/tF2qy73qngThNaPUfEkTF7a6WbIN93A1hzKj0wlZM8QADnFZ/P1T5d2+uKEg5gZ7lI9zYQEWCYf6ysuZkztC36OIcw9YpGeKjrrdTOOVfDKgtCoK3SqGNKUnVCjNkTDC/4X9XAdxEa2Ll67TWLQH5U513AjKKOK7hS8WVj58A+mtL43pqCNRI86ZKih5Qol8RmEYOXh77IYP7157T3d5x5LCPlzOXnFPSuUV6VIA7PvDlIDYJCZvkCZDNmNObty0VlXomriX3NP+JEHCQfZ66w3VUNPT5uxhZm/8F3bzj1Yx2nn0WkI7mAu8eFc69JadMc9qRVRRcTt1j+zxdIfFEiyKxl6atrQNlWIKy+c6/kKQKUWnktsVLU57nYdx5sgSlZQZ95zfuBTuF+Daq/S4uN2zrEOuC4E+yL9AuxAy8PWpMJTRqAotJ4JvyvM8hBb/xOAo3HBszrVwLEMV6Dy/rEheWmqwe5CFLsPjLdstfIueds4UdbM4BoMCPagjbcGEIDy1csDIgwIk/+yrgYQwNzJhQO4PgE=","mobile_access_disabled":false,"granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"930087024961184","calendar_enabled":true,"api_version":79,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"command_signing":"required","release_notes_supported":true}],"count":1}
2024-09-10 18:35:08.812 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.312 seconds (success: True)

Anything else?

No response

skipishere commented 1 month ago

In the error message it makes it clear you're not using the Fleet API and need to. Please read the documentation on setting it up and how to use it

rock3r-swe commented 1 month ago

The error is from when I click the charger door open icon in the Tesla Custom Integration page in Home Assistant. Not sure how I can change and use the Fleet API?

skipishere commented 1 month ago

Instructions are on the main readme here hopefully that should help you out

Edit: sorry the original link was to a YouTube short that I'd sent previously to my daughter 🤦‍♂️

alandtse commented 1 month ago

Perhaps we should add that to the attestation too.

rock3r-swe commented 1 month ago

Ok, will give it a try. I apologize for missing the instructions about the change from Tesla.

skipishere commented 1 month ago

Oh no, I hadn't realised that I'd somehow added the wrong link 🤦‍♂️

I'll fix that now