evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.6k stars 670 forks source link

Tesla BLE Module keeps Car awake after reaching cars SOC Limit in PV Mode #14952

Closed Frahmi12 closed 3 months ago

Frahmi12 commented 3 months ago

Describe the bug

Hello, I have two Tesla Model Ys and two Tesla TWC3s. The control runs via the new function of the BLE Proxy. If one Vehicles has reached its Car Charging Limit in PV Mode, then EVCC continues to send Charging Currents to the BLE proxy and keeps the Car awake: [tesla ] TRACE 2024/07/21 12:32:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps

and wakes up the Vehicle via Web API Proxy: [tesla] TRACE 2024/07/21 12:15:42 POST https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/wake_up

On the EVCC homepage, the Charging Process is shown as complete and also that the vehicle SOC limit has been reached. I have the same behavior when the vehicle has no Charging Limit set and it has reached 100%.

When I charge in fast Mode, EVCC sends wake up and Charge Start Commands

[tesla ] TRACE 2024/07/21 12:59:43 POST https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/wake_up 

[tesla ] TRACE 2024/07/21 12:55:39 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/charge_start

NOTE: I have made some places unrecognizable in the Log File and the Config.

Steps to reproduce

  1. Charging the car in PV Mode and reaching the car charging limit
  2. EVCC continues to send control commands and keeps the vehicle awake

Workaround: Set charging control from PV to Stop. Only then does EVCC stop.

EVCC_Test_Ladelimit-erreicht

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: trace
levels:
  cache: trace

# unique installation id
plant: *****

interval: 30s # control cycle interval

vehicles:
  - name: Marwin
    type: template
    template: tesla
    title: Marwin
    accessToken: *****
    refreshToken: *****
    vin: *****
    capacity: 60
    commandProxy: http://192.168.178.121:8080

  - name: Pia
    type: template
    template: tesla
    title: Pia
    accessToken: *****
    refreshToken: *****
    vin: *****
    capacity: 60
    commandProxy: http://192.168.178.121:8080

chargers:
  - type: template
    template: twc3
    host: 192.168.178.70
    name: wallbox_marwin

  - type: template
    template: twc3
    host: 192.168.178.71
    name: wallbox_pia

loadpoints:
  - title: LP Marwin
    charger: wallbox_marwin
    mode: pv
    phases: 3
    mincurrent: 1
    maxcurrent: 16

  - title: LP Pia
    charger: wallbox_pia
    mode: pv
    phases: 3
    mincurrent: 1
    maxcurrent: 16

mqtt:
  broker: 192.168.178.110:1883
  topic: evcc
  user: *****
  password: *****

tariffs:
  grid:
    type: tibber
    token: ""
    homeid: ""
  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.1183 # [currency]/kWh

sponsortoken: *****

Log details

[tesla ] TRACE 2024/07/21 12:08:38 GET https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/region
[tesla ] TRACE 2024/07/21 12:08:38 GET https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/region
[tesla ] TRACE 2024/07/21 12:08:38 {"response":{"region":"eu","fleet_api_base_url":"https://fleet-api.prd.eu.vn.cloud.tesla.com"}}
[tesla ] TRACE 2024/07/21 12:08:38 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles
[tesla ] TRACE 2024/07/21 12:08:38 {"response":{"region":"eu","fleet_api_base_url":"https://fleet-api.prd.eu.vn.cloud.tesla.com"}}
[tesla ] TRACE 2024/07/21 12:08:38 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles
[tesla ] TRACE 2024/07/21 12:08:39 {"response":[{"id":929897188276506,"vehicle_id":1689317659746843,"vin":"VIN2","color":null,"access_type":"DRIVER","display_name":"","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929897188276506","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"share_type_s":"ADD_DRIVER_EXTERNAL","ble_autopair_enrolled":false},{"id":929888627657081,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","display_name":"Bob 1","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}],"pagination":{"previous":null,"next":null,"current":1,"per_page":2,"count":2,"pages":1},"count":2}
[tesla ] TRACE 2024/07/21 12:08:39 {"response":[{"id":929897188276506,"vehicle_id":1689317659746843,"vin":"VIN2","color":null,"access_type":"DRIVER","display_name":"","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929897188276506","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"share_type_s":"ADD_DRIVER_EXTERNAL","ble_autopair_enrolled":false},{"id":929888627657081,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","display_name":"Bob 1","option_codes":null,"granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}],"pagination":{"previous":null,"next":null,"current":1,"per_page":2,"count":2,"pages":1},"count":2}
[tesla ] TRACE 2024/07/21 12:08:41 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/vehicle_data
[tesla ] TRACE 2024/07/21 12:08:41 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN2/vehicle_data
[tesla ] TRACE 2024/07/21 12:08:41 {"response":{"id":929897188276506,"user_id":192756558904,"vehicle_id":1689317659746843,"vin":"VIN2","color":null,"access_type":"DRIVER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929897188276506","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"share_type_s":"ADD_DRIVER_EXTERNAL","ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":76,"battery_range":194.32,"charge_amps":16,"charge_current_request":16,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":8.22,"charge_limit_soc":100,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":36.0,"charge_miles_added_rated":36.0,"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":236.09,"fast_charger_brand":"\u003cinvalid\u003e","fast_charger_present":false,"fast_charger_type":"\u003cinvalid\u003e","ideal_battery_range":194.32,"max_range_charge_counter":49,"minutes_to_full_charge":0,"not_enough_power_to_heat":null,"off_peak_charging_enabled":false,"off_peak_charging_times":"all_week","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_departure_time":1718334900,"scheduled_departure_time_minutes":315,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1721556520632,"trip_charging":false,"usable_battery_level":76,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":true,"auto_seat_climate_right":false,"auto_steering_wheel_heat":true,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"On","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":20.0,"fan_status":6,"hvac_auto_request":"On","inside_temp":20.4,"is_auto_conditioning_on":true,"is_climate_on":true,"is_front_defroster_on":false,"is_preconditioning":false,"is_rear_defroster_on":false,"left_temp_direction":-344,"max_avail_temp":28.0,"min_avail_temp":15.0,"outside_temp":30.0,"passenger_temp_setting":20.0,"remote_heater_control_enabled":true,"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":1721556520632,"wiper_blade_heater":false},"drive_state":{"active_route_latitude":54.388256,"active_route_longitude":10.368424,"active_route_traffic_minutes_delay":0.0,"power":1,"shift_state":"P","speed":0,"timestamp":1721556520632},"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":1721556520632},"parked_accessory":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"PearlWhite","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":1721556520632,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_config":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"PearlWhite","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":1721556520632,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":76,"autopark_state_v2":"unavailable","calendar_supported":true,"car_version":"2024.20.7 dc8f9fa8b4ea","center_display_state":3,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,24cbc7f","fp_window":0,"ft":0,"is_user_present":true,"locked":false,"media_info":{"a2dp_source_name":"A53 von Pia","audio_volume":0.0,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Playing","now_playing_album":"","now_playing_artist":"Gleich *NEU*: Glockenbach \u0026 Declan J Donovan","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"13","now_playing_station":"DAB R.SH","now_playing_title":"Better Days"},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":5934.16849,"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,"software_update":{"download_perc":50,"expected_duration_sec":3300,"install_perc":10,"status":"available","version":"2024.20.9"},"speed_limit_mode":{"active":false,"current_limit_mph":85.0,"max_limit_mph":120,"min_limit_mph":50.0,"pin_code_set":false},"timestamp":1721556520631,"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":null,"tpms_last_seen_pressure_time_fr":null,"tpms_last_seen_pressure_time_rl":null,"tpms_last_seen_pressure_time_rr":null,"tpms_pressure_fl":3.0,"tpms_pressure_fr":3.0,"tpms_pressure_rl":3.025,"tpms_pressure_rr":3.0,"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":null,"vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
[tesla ] TRACE 2024/07/21 12:08:45 {"response":{"id":929888627657081,"user_id":192756558904,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":82,"battery_range":206.99,"charge_amps":9,"charge_current_request":9,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":4.84,"charge_limit_soc":82,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":21.0,"charge_miles_added_rated":21.0,"charge_port_cold_weather_mode":false,"charge_port_color":"\u003cinvalid\u003e","charge_port_door_open":true,"charge_port_latch":"Engaged","charge_rate":0.0,"charger_actual_current":0,"charger_phases":2,"charger_pilot_current":16,"charger_power":0,"charger_voltage":2,"charging_state":"Complete","conn_charge_cable":"IEC","est_battery_range":188.61,"fast_charger_brand":"Tesla","fast_charger_present":false,"fast_charger_type":"ACSingleWireCAN","ideal_battery_range":206.99,"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","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_charging_start_time_app":180,"scheduled_departure_time":1718402400,"scheduled_departure_time_minutes":0,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1721556525363,"trip_charging":false,"usable_battery_level":82,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":true,"auto_seat_climate_right":true,"auto_steering_wheel_heat":true,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"Off","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":20.0,"fan_status":0,"hvac_auto_request":"On","inside_temp":47.1,"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":29.0,"passenger_temp_setting":20.0,"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":1721556525363,"wiper_blade_heater":false},"drive_state":{"power":0,"shift_state":null,"speed":null,"timestamp":1721556525363},"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":1721556525363},"parked_accessory":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"MidnightCherryRed","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":"43,0,9,0.7,0.04","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":1721556525363,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_config":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"MidnightCherryRed","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":"43,0,9,0.7,0.04","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":1721556525363,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":76,"autopark_state_v2":"unavailable","calendar_supported":true,"car_version":"2024.20.9 1a02147be9af","center_display_state":0,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,24cbc7f","fp_window":0,"ft":0,"is_user_present":false,"locked":true,"media_info":{"audio_volume":2.6667,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Stopped","now_playing_album":"","now_playing_artist":"","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"8","now_playing_station":"Kein Gerät verbunden","now_playing_title":""},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":4048.187528,"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,"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},"timestamp":1721556525363,"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":1721482651,"tpms_last_seen_pressure_time_fr":1721482651,"tpms_last_seen_pressure_time_rl":1721482621,"tpms_last_seen_pressure_time_rr":1721482651,"tpms_pressure_fl":3.15,"tpms_pressure_fr":3.125,"tpms_pressure_rl":3.125,"tpms_pressure_rr":3.1,"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":"Bob 1","vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
[tesla ] TRACE 2024/07/21 12:08:45 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/vehicle_data
[tesla ] TRACE 2024/07/21 12:08:54 {"response":null,"error":"{\"error\": \"timeout\"}","error_description":"","txid":"f0fcedb28a8399ea665e6d22b309fd11"}
[tesla ] TRACE 2024/07/21 12:08:54 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN2/vehicle_data
[tesla ] TRACE 2024/07/21 12:08:54 {"response":{"id":929897188276506,"user_id":192756558904,"vehicle_id":1689317659746843,"vin":"VIN2","color":null,"access_type":"DRIVER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929897188276506","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"share_type_s":"ADD_DRIVER_EXTERNAL","ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":76,"battery_range":194.32,"charge_amps":16,"charge_current_request":16,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":8.22,"charge_limit_soc":100,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":36.0,"charge_miles_added_rated":36.0,"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":236.09,"fast_charger_brand":"\u003cinvalid\u003e","fast_charger_present":false,"fast_charger_type":"\u003cinvalid\u003e","ideal_battery_range":194.32,"max_range_charge_counter":49,"minutes_to_full_charge":0,"not_enough_power_to_heat":null,"off_peak_charging_enabled":false,"off_peak_charging_times":"all_week","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_departure_time":1718334900,"scheduled_departure_time_minutes":315,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1721556534017,"trip_charging":false,"usable_battery_level":76,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":true,"auto_seat_climate_right":false,"auto_steering_wheel_heat":true,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"On","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":20.0,"fan_status":6,"hvac_auto_request":"On","inside_temp":20.4,"is_auto_conditioning_on":true,"is_climate_on":true,"is_front_defroster_on":false,"is_preconditioning":false,"is_rear_defroster_on":false,"left_temp_direction":-345,"max_avail_temp":28.0,"min_avail_temp":15.0,"outside_temp":30.0,"passenger_temp_setting":20.0,"remote_heater_control_enabled":true,"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":1721556534017,"wiper_blade_heater":false},"drive_state":{"active_route_latitude":54.388256,"active_route_longitude":10.368424,"active_route_traffic_minutes_delay":0.0,"power":1,"shift_state":"P","speed":0,"timestamp":1721556534017},"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":1721556534017},"parked_accessory":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"PearlWhite","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":1721556534017,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_config":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"PearlWhite","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":1721556534017,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":76,"autopark_state_v2":"unavailable","calendar_supported":true,"car_version":"2024.20.7 dc8f9fa8b4ea","center_display_state":3,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,24cbc7f","fp_window":0,"ft":0,"is_user_present":true,"locked":false,"media_info":{"a2dp_source_name":"A53 von Pia","audio_volume":0.0,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Playing","now_playing_album":"","now_playing_artist":"Glockenbach \u0026 Declan J Donovan","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"13","now_playing_station":"DAB R.SH","now_playing_title":"Better Days"},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":5934.16849,"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,"software_update":{"download_perc":50,"expected_duration_sec":3300,"install_perc":10,"status":"available","version":"2024.20.9"},"speed_limit_mode":{"active":false,"current_limit_mph":85.0,"max_limit_mph":120,"min_limit_mph":50.0,"pin_code_set":false},"timestamp":1721556534017,"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":null,"tpms_last_seen_pressure_time_fr":null,"tpms_last_seen_pressure_time_rl":null,"tpms_last_seen_pressure_time_rr":null,"tpms_pressure_fl":3.0,"tpms_pressure_fr":3.0,"tpms_pressure_rl":3.025,"tpms_pressure_rr":3.0,"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":null,"vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
[tesla ] TRACE 2024/07/21 12:09:09 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/vehicle_data
[tesla ] TRACE 2024/07/21 12:09:11 {"response":{"id":929888627657081,"user_id":192756558904,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":82,"battery_range":206.99,"charge_amps":9,"charge_current_request":9,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":4.84,"charge_limit_soc":82,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":21.0,"charge_miles_added_rated":21.0,"charge_port_cold_weather_mode":false,"charge_port_color":"\u003cinvalid\u003e","charge_port_door_open":true,"charge_port_latch":"Engaged","charge_rate":0.0,"charger_actual_current":0,"charger_phases":2,"charger_pilot_current":16,"charger_power":0,"charger_voltage":2,"charging_state":"Complete","conn_charge_cable":"IEC","est_battery_range":188.61,"fast_charger_brand":"Tesla","fast_charger_present":false,"fast_charger_type":"ACSingleWireCAN","ideal_battery_range":206.99,"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","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_charging_start_time_app":180,"scheduled_departure_time":1718402400,"scheduled_departure_time_minutes":0,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1721556550931,"trip_charging":false,"usable_battery_level":82,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":true,"auto_seat_climate_right":true,"auto_steering_wheel_heat":true,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"Off","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":20.0,"fan_status":0,"hvac_auto_request":"On","inside_temp":47.2,"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":29.0,"passenger_temp_setting":20.0,"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":1721556550931,"wiper_blade_heater":false},"drive_state":{"power":0,"shift_state":null,"speed":null,"timestamp":1721556550931},"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":1721556550931},"parked_accessory":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"MidnightCherryRed","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":"43,0,9,0.7,0.04","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":1721556550931,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_config":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"MidnightCherryRed","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":"43,0,9,0.7,0.04","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":1721556550931,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":76,"autopark_state_v2":"unavailable","calendar_supported":true,"car_version":"2024.20.9 1a02147be9af","center_display_state":0,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,24cbc7f","fp_window":0,"ft":0,"is_user_present":false,"locked":true,"media_info":{"audio_volume":2.6667,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Stopped","now_playing_album":"","now_playing_artist":"","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"8","now_playing_station":"Kein Gerät verbunden","now_playing_title":""},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":4048.187528,"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,"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},"timestamp":1721556550931,"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":1721482651,"tpms_last_seen_pressure_time_fr":1721482651,"tpms_last_seen_pressure_time_rl":1721482621,"tpms_last_seen_pressure_time_rr":1721482651,"tpms_pressure_fl":3.15,"tpms_pressure_fr":3.125,"tpms_pressure_rl":3.125,"tpms_pressure_rr":3.1,"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":"Bob 1","vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
[tesla ] TRACE 2024/07/21 12:09:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:09:43 {"charging_amps": 5}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:09:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/charge_start
[tesla ] TRACE 2024/07/21 12:09:43 {"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"charge_start"}}
[tesla ] TRACE 2024/07/21 12:10:42 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:10:43 {"charging_amps": 11}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:11:42 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:11:42 {"charging_amps": 10}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:11:42 POST https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/wake_up
[tesla ] TRACE 2024/07/21 12:11:43 {"response":{"id":929888627657081,"user_id":192756558904,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
[tesla ] TRACE 2024/07/21 12:12:44 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:12:44 {"charging_amps": 7}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:13:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:13:43 {"charging_amps": 11}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:13:43 POST https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/wake_up
[tesla ] TRACE 2024/07/21 12:14:44 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:14:44 {"charging_amps": 12}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:15:42 POST https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/wake_up
[tesla ] TRACE 2024/07/21 12:15:44 {"response":{"id":929888627657081,"user_id":192756558904,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false}}
[tesla ] TRACE 2024/07/21 12:16:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:16:43 {"charging_amps": 13}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:18:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:18:43 {"charging_amps": 12}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:19:44 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:19:44 {"charging_amps": 11}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:21:44 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:21:44 {"charging_amps": 12}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:22:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:22:43 {"charging_amps": 13}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:24:03 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN2/vehicle_data
[tesla ] TRACE 2024/07/21 12:24:03 {"response":{"id":929897188276506,"user_id":192756558904,"vehicle_id":1689317659746843,"vin":"VIN2","color":null,"access_type":"DRIVER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929897188276506","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"share_type_s":"ADD_DRIVER_EXTERNAL","ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":76,"battery_range":193.8,"charge_amps":16,"charge_current_request":16,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":8.22,"charge_limit_soc":100,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":36.0,"charge_miles_added_rated":36.0,"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":235.45,"fast_charger_brand":"\u003cinvalid\u003e","fast_charger_present":false,"fast_charger_type":"\u003cinvalid\u003e","ideal_battery_range":193.8,"max_range_charge_counter":49,"minutes_to_full_charge":0,"not_enough_power_to_heat":null,"off_peak_charging_enabled":false,"off_peak_charging_times":"all_week","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_departure_time":1718334900,"scheduled_departure_time_minutes":315,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1721557442948,"trip_charging":false,"usable_battery_level":76,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":true,"auto_seat_climate_right":false,"auto_steering_wheel_heat":true,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"On","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":20.0,"fan_status":0,"hvac_auto_request":"On","inside_temp":32.0,"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":164,"max_avail_temp":28.0,"min_avail_temp":15.0,"outside_temp":30.0,"passenger_temp_setting":20.0,"remote_heater_control_enabled":false,"right_temp_direction":164,"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":1721557442948,"wiper_blade_heater":false},"drive_state":{"power":0,"shift_state":null,"speed":null,"timestamp":1721557442948},"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":1721557442948},"parked_accessory":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"PearlWhite","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":1721557442948,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_config":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"PearlWhite","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":1721557442948,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":76,"autopark_state_v2":"unavailable","calendar_supported":true,"car_version":"2024.20.7 dc8f9fa8b4ea","center_display_state":0,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,24cbc7f","fp_window":0,"ft":0,"is_user_present":false,"locked":true,"media_info":{"a2dp_source_name":"A53 von Pia","audio_volume":0.0,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Playing","now_playing_album":"","now_playing_artist":"Gleich: twocolors","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"13","now_playing_station":"DAB R.SH","now_playing_title":"Heavy Metal Love"},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":5934.16849,"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,"software_update":{"download_perc":50,"expected_duration_sec":3300,"install_perc":10,"status":"available","version":"2024.20.9"},"speed_limit_mode":{"active":false,"current_limit_mph":85.0,"max_limit_mph":120,"min_limit_mph":50.0,"pin_code_set":false},"timestamp":1721557442948,"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":1721557049,"tpms_last_seen_pressure_time_fr":1721557019,"tpms_last_seen_pressure_time_rl":1721557019,"tpms_last_seen_pressure_time_rr":1721557020,"tpms_pressure_fl":2.95,"tpms_pressure_fr":2.975,"tpms_pressure_rl":2.975,"tpms_pressure_rr":3.0,"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":null,"vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
[tesla ] TRACE 2024/07/21 12:24:15 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/vehicle_data
[tesla ] TRACE 2024/07/21 12:24:24 {"response":null,"error":"{\"error\": \"timeout\"}","error_description":"","txid":"702cc0d3d92560d02a56fff988e3f668"}
[tesla ] TRACE 2024/07/21 12:24:34 GET https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/vehicle_data
[tesla ] TRACE 2024/07/21 12:24:37 {"response":{"id":929888627657081,"user_id":192756558904,"vehicle_id":1689309250130552,"vin":"VIN1","color":null,"access_type":"OWNER","granular_access":{"hide_private":false},"tokens":null,"state":"online","in_service":false,"id_s":"929888627657081","calendar_enabled":true,"api_version":76,"backseat_token":null,"backseat_token_updated_at":null,"ble_autopair_enrolled":false,"charge_state":{"battery_heater_on":false,"battery_level":82,"battery_range":206.99,"charge_amps":13,"charge_current_request":13,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":4.72,"charge_limit_soc":82,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":80,"charge_miles_added_ideal":20.5,"charge_miles_added_rated":20.5,"charge_port_cold_weather_mode":false,"charge_port_color":"\u003cinvalid\u003e","charge_port_door_open":true,"charge_port_latch":"Engaged","charge_rate":0.0,"charger_actual_current":0,"charger_phases":2,"charger_pilot_current":16,"charger_power":0,"charger_voltage":2,"charging_state":"Complete","conn_charge_cable":"IEC","est_battery_range":188.61,"fast_charger_brand":"Tesla","fast_charger_present":false,"fast_charger_type":"ACSingleWireCAN","ideal_battery_range":206.99,"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","off_peak_hours_end_time":360,"preconditioning_enabled":false,"preconditioning_times":"all_week","scheduled_charging_mode":"Off","scheduled_charging_pending":false,"scheduled_charging_start_time":null,"scheduled_charging_start_time_app":180,"scheduled_departure_time":1718402400,"scheduled_departure_time_minutes":0,"supercharger_session_trip_planner":false,"time_to_full_charge":0.0,"timestamp":1721557477584,"trip_charging":false,"usable_battery_level":82,"user_charge_enable_request":null},"climate_state":{"allow_cabin_overheat_protection":true,"auto_seat_climate_left":true,"auto_seat_climate_right":true,"auto_steering_wheel_heat":true,"battery_heater":false,"battery_heater_no_power":null,"bioweapon_mode":false,"cabin_overheat_protection":"Off","cabin_overheat_protection_actively_cooling":false,"climate_keeper_mode":"off","cop_activation_temperature":"High","defrost_mode":0,"driver_temp_setting":20.0,"fan_status":0,"hvac_auto_request":"On","inside_temp":47.8,"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":29.5,"passenger_temp_setting":20.0,"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":1721557477584,"wiper_blade_heater":false},"drive_state":{"power":0,"shift_state":null,"speed":null,"timestamp":1721557477584},"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":1721557477584},"parked_accessory":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"MidnightCherryRed","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":"43,0,9,0.7,0.04","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":1721557477584,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_config":{"aux_park_lamps":"None","badge_version":1,"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":true,"dashcam_clip_save_supported":true,"default_charge_to_max":true,"driver_assist":"TeslaAP3","ece_restrictions":true,"efficiency_package":"MYRWDEU2022","eu_vehicle":true,"exterior_color":"MidnightCherryRed","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":"43,0,9,0.7,0.04","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":1721557477584,"trim_badging":"50","use_range_badging":true,"utc_offset":7200,"webcam_selfie_supported":true,"webcam_supported":false,"wheel_type":"Apollo19"},"vehicle_state":{"api_version":76,"autopark_state_v2":"unavailable","calendar_supported":true,"car_version":"2024.20.9 1a02147be9af","center_display_state":0,"dashcam_clip_save_available":true,"dashcam_state":"Recording","df":0,"dr":0,"fd_window":0,"feature_bitmask":"fbdffbff,24cbc7f","fp_window":0,"ft":0,"is_user_present":false,"locked":true,"media_info":{"audio_volume":2.6667,"audio_volume_increment":0.333333,"audio_volume_max":10.333333,"media_playback_status":"Stopped","now_playing_album":"","now_playing_artist":"","now_playing_duration":0,"now_playing_elapsed":0,"now_playing_source":"8","now_playing_station":"Kein Gerät verbunden","now_playing_title":""},"media_state":{"remote_control_enabled":true},"notifications_supported":true,"odometer":4048.187528,"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,"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},"timestamp":1721557477583,"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":1721482651,"tpms_last_seen_pressure_time_fr":1721482651,"tpms_last_seen_pressure_time_rl":1721482621,"tpms_last_seen_pressure_time_rr":1721482651,"tpms_pressure_fl":3.15,"tpms_pressure_fr":3.125,"tpms_pressure_rl":3.125,"tpms_pressure_rr":3.1,"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":"Bob 1","vehicle_self_test_progress":0,"vehicle_self_test_requested":false,"webcam_available":false}}}
[tesla ] TRACE 2024/07/21 12:27:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:27:43 {"charging_amps": 12}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:28:44 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:28:44 {"charging_amps": 6}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:31:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:31:43 {"charging_amps": 8}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}
[tesla ] TRACE 2024/07/21 12:32:43 POST http://192.168.178.121:8080/api/1/vehicles/VIN1/command/set_charging_amps
[tesla ] TRACE 2024/07/21 12:32:43 {"charging_amps": 7}
--
{"response":{"result":true,"reason":"The command was successfully received and will be processed shortly.","vin":"VIN1","command":"set_charging_amps"}}

What type of operating system are you running?

HomeAssistant Add-on

Version

0.128.3

andig commented 3 months ago

Did you try setting the limit in evcc instead of the vehicle? As long as the eallbox is enabled, evcc will update the power envelope.

/cc @maddimax seems this needs be handled by the proxy? Not sure how we did this with the http api.

Maddimax commented 3 months ago

The https://github.com/wimaha/TeslaBleHttpProxy proxy automatically tries to wake up the car any time a command fails. It does not use the mechanism you build to return errors about the wake state. The two options are to update the proxy, which (I think is not possible/means a rewrite) as it executes the requested commands async after it already ended the http request, or to change EVCC to not send power changes unless the vehicle is actually charging.

andig commented 3 months ago

We could change the TWC. But whats the logic? When not charging we still need to enable the charger at some point

andig commented 3 months ago

The https://github.com/wimaha/TeslaBleHttpProxy proxy automatically tries to wake up the car any time a command fails.

evcc over HTTP doesn‘t do this and handles wakeup in the loadpoint when it sees an api.ErrAsleep as appropriate. Seems this might be needed here, too?

Frahmi12 commented 3 months ago

Did you try setting the limit in evcc instead of the vehicle? As long as the eallbox is enabled, evcc will update the power envelope.

/cc @Maddimax seems this needs be handled by the proxy? Not sure how we did this with the http api.

I just tested it. Vehicle SOC limit to 100% and EVCC charging limit to 85%. Start Charging from 82% to 85% in PV Mode. EVCC charges up to 85% and stops charging. EVCC then does not send any further control commands.

What strikes me: When EVCC sets the charging limit, the LP1 log says: [lp-1 ] DEBUG 2024/07/21 13:30:42 limitSoc reached: 85.0% > 85%

This information is missing if the vehicle specifies the charging limit and therefore ends charging automatically. Although the WebGUI shows that the vehicle has reached the vehicle's charging limit and the charging process is complete, the above-mentioned note is missing in the log file.

The question for me is, why does EVCC continue to send control commands when it detects that the vehicle has reached the vehicle's charging limit? And why is this information missing from the LP1 log? Is there something wrong in the LP1 module?

LP1 Log - Charging Limit sets in EVCC

[lp-1  ] INFO 2024/07/21 13:28:42 stop charging <-
[lp-1  ] DEBUG 2024/07/21 13:28:43 !! session: chargedEnergy=2.2 > chargedEnergy=0.0
[lp-1  ] DEBUG 2024/07/21 13:28:43 !! session: start=0.000 stop=0.000 chargedEnergy=2.176
[lp-1  ] DEBUG 2024/07/21 13:28:43 soc estimated: 85.02% (vehicle: 85.00%)
[lp-1  ] DEBUG 2024/07/21 13:28:43 vehicle soc: 85%
[lp-1  ] DEBUG 2024/07/21 13:28:43 vehicle soc limit: 100%
[lp-1  ] DEBUG 2024/07/21 13:28:43 vehicle range: 346km
[lp-1  ] DEBUG 2024/07/21 13:28:43 limitSoc reached: 85.0% > 85%
[lp-1  ] DEBUG 2024/07/21 13:29:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 13:29:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 13:29:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 13:29:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 13:29:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 13:29:42 !! session: chargeRater.chargedEnergy=7.2 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 13:29:42 charger status: B
[lp-1  ] DEBUG 2024/07/21 13:29:42 limitSoc reached: 85.0% > 85%
[lp-1  ] DEBUG 2024/07/21 13:30:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 13:30:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 13:30:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 13:30:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 13:30:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 13:30:42 !! session: chargeRater.chargedEnergy=7.2 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 13:30:42 charger status: B
[lp-1  ] DEBUG 2024/07/21 13:30:42 limitSoc reached: 85.0% > 85%
[lp-1  ] DEBUG 2024/07/21 13:31:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 13:31:10 charge currents: [0.2 0 0.4]A

LP1 Log - Charging Limit sets in Car

[lp-1  ] INFO 2024/07/21 14:14:43 stop charging <-
[lp-1  ] DEBUG 2024/07/21 14:14:43 wake-up timer: start
[lp-1  ] DEBUG 2024/07/21 14:14:43 !! session: chargedEnergy=5.0 > chargedEnergy=2.2
[lp-1  ] DEBUG 2024/07/21 14:14:43 !! session: start=0.000 stop=0.000 chargedEnergy=5.018
[lp-1  ] DEBUG 2024/07/21 14:14:43 vehicle status: B
[lp-1  ] DEBUG 2024/07/21 14:14:43 vehicle soc: 90%
[lp-1  ] DEBUG 2024/07/21 14:14:43 vehicle soc limit: 90%
[lp-1  ] DEBUG 2024/07/21 14:14:43 vehicle range: 365km
[lp-1  ] DEBUG 2024/07/21 14:14:43 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:14:43 pv charge current: 8.52A = 0A + 8.52A (-5882W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:15:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:15:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:15:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:15:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:15:45 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:15:45 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:15:45 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:15:45 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:15:45 pv charge current: 6.66A = 0A + 6.66A (-4595W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:15:45 max charge current: 6A
[lp-1  ] DEBUG 2024/07/21 14:16:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:16:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:16:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:16:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:16:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:16:42 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:16:42 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:16:42 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:16:42 pv charge current: 9.51A = 0A + 9.51A (-6563W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:16:43 max charge current: 9A
[lp-1  ] DEBUG 2024/07/21 14:16:43 wake-up vehicle, attempts left: 4
[lp-1  ] DEBUG 2024/07/21 14:17:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:17:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:17:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:17:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:17:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:17:42 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:17:42 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:17:42 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:17:42 pv charge current: 9.91A = 0A + 9.91A (-6839W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:18:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:18:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:18:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:18:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:18:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:18:42 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:18:42 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:18:43 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:18:43 pv charge current: 9.54A = 0A + 9.54A (-6580W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:18:43 wake-up vehicle, attempts left: 2
[lp-1  ] DEBUG 2024/07/21 14:19:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:19:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:19:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:19:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:19:43 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:19:43 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:19:43 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:19:43 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:19:43 pv charge current: 9.76A = 0A + 9.76A (-6735W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:20:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:20:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:20:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:20:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:20:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:20:42 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:20:43 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:20:43 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:20:43 pv charge current: 9.79A = 0A + 9.79A (-6758W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:20:43 wake-up vehicle, attempts left: 0
[lp-1  ] DEBUG 2024/07/21 14:21:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:21:10 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:21:40 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:21:40 charge currents: [0.2 0 0.4]A
[lp-1  ] DEBUG 2024/07/21 14:21:42 charge voltages: [0 4 0]V
[lp-1  ] DEBUG 2024/07/21 14:21:42 !! session: chargeRater.chargedEnergy=10.1 - chargedAtStartup=5.1
[lp-1  ] DEBUG 2024/07/21 14:21:42 charger status: B
[lp-1  ] DEBUG 2024/07/21 14:21:42 !! active phases: 3p = min(3p measured 0p vehicle 3p physical 0p charger)
[lp-1  ] DEBUG 2024/07/21 14:21:42 pv charge current: 9.45A = 0A + 9.45A (-6518W @ 3p)
[lp-1  ] DEBUG 2024/07/21 14:22:10 charge power: 0W
[lp-1  ] DEBUG 2024/07/21 14:22:10 charge currents: [0.2 0 0.4]A
Maddimax commented 3 months ago

I set the vehicle max soc to 90% (in the tesla app) to stop charging, interestingly I now see evcc trying to restart the charge. From the log of my personal ble proxy:

Jul 21 15:03:00 raspberrypible bash[426]: Starting charge ...
Jul 21 15:03:04 raspberrypible bash[426]: WithCar Error: car could not execute command: complete

(This probably means that even with my proxy, evcc would then try to wake the car once it gets the errAsleep)

Maddimax commented 3 months ago

Even after adding "limitsoc:" to my custom vehicle definition, evcc is still trying to start charging.

andig commented 3 months ago

Was spräche dagegen, bei schlafendem Auto ErrAsleep zurück zu geben und das Wakeup evcc zu überlassen? So ist es bei Http auch. Der Wakeup auf Proxy-seite ist hier unerwartet.

Frahmi12 commented 3 months ago

Wenn ich das Log richtig verstehe, dann hat EVCC in meinem Fall selber das Fahrzeug über den Fleet API Dienst von Tesla geweckt. Dann würde das an der BLE HTTP Proxy Mechanik nichts ändern. [tesla] TRACE 2024/07/21 12:15:42 POST https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1/vehicles/VIN1/wake_up

Liegt das Problem nicht vielmehr darin, dass EVCC den Ladevorgang, obwohl er laut Web GUI beendet ist, wieder starten möchte und zusätzlich den Ladestrom kontinuierlich anpasst? Das dürfte ja nicht passieren, wenn EVCC den Ziel SOC des Fahrzeugs bereits kennt und auch den aktuellen SOC.

andig commented 2 months ago

Wenn der limit soc bekannt und erreicht ist sollte das nicht mehr passieren. Hilfreich wäre ein Log mit Tesla und custom charger auf trace.