robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
304 stars 60 forks source link

[BUG] Force Refresh not supported? #535

Closed LeedsDBA closed 5 months ago

LeedsDBA commented 6 months ago

Before you post a new issue - you must first check the following (and check the boxes with an "X" below)

Environment

Describe the bug

I've got an automation which checks whether the car is locked, and if it's not, it sends out a notification. It's triggered by binary_sensor.doors_locked chaning to "on" for 5 mins, it also checks every 10mins. Often my partner will come in, bring in the kids/shopping/etc and then go back out 5 mins later and lock the car.

However, the status of the doors would still say unlocked because even after being locked, the state doesn't seem to refresh.

To get around this, i force a refresh after 10mins, then after 50mins, then every 2 hours (I know about the 15 refresh limit, so i shape around that)

However - that service doesn't seem to be there any longer, and the 'force refresh' doesn't seem to do anything? (or at least, it doesn't update the 'last_updated' if it does?)

I think i might have configured it in 'read-only' mode (mutable?), but i'm assuming that would be ok, because i'm not making any changes to the car (i.e. lock/unlock - which i can't do anyways) - but let me know if that's causing the issue and i can just reconfigure.

action from automation below so it makes sense (happy to share full thing):

  - service: counter.increment
    data: {}
    target:
      entity_id: counter.car_unlocked_alert_count
  - if:
      - alias: Refresh Golf data if 1st/5th call
        condition: or
        conditions:
          - condition: state
            entity_id: counter.car_unlocked_alert_count
            state: "1"
          - condition: state
            entity_id: counter.car_unlocked_alert_count
            state: "5"
    then:
      - service: switch.turn_on
        data: {}
        target:
          entity_id: switch.golf_force_data_refresh
      - wait_for_trigger:
          - platform: state
            entity_id:
              - switch.golf_force_data_refresh
            to: "off"
            for:
              hours: 0
              minutes: 0
              seconds: 30
        timeout:
          hours: 0
          minutes: 5
          seconds: 0
          milliseconds: 0
      - service: automation.trigger
        data:
          skip_condition: false
        target:
          entity_id: automation.car_check_locked

Steps to Reproduce

Using a golf TSI EVO R-Line, configure it and try to perform a force refresh, or call switch.golf_force_data_refresh

Expected behavior

Wakes up the car, performs a data refresh, and updates the last_updated value

Screenshots

image

Traceback/Error logs

Logs suggest Force Refresh is supported (certainly used to work before the VW changes came in). But notable, Mutable:True

2024-01-01 00:29:47.957 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Turning OFF refresh_data.
2024-01-01 00:29:47.959 DEBUG (MainThread) [volkswagencarnet.vw_connection] Going to call vehicle updates
2024-01-01 00:29:47.960 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v1/vehicles/MY-VIN/selectivestatus?jobs=access,fuelStatus,vehicleLights,vehicleHealthInspection,measurements,charging,climatisation,automation"
2024-01-01 00:29:47.961 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v2/vehicles"
2024-01-01 00:29:47.962 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v1/vehicles/MY-VIN/parkingposition"
2024-01-01 00:29:47.964 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v1/trips/MY-VIN/shortterm/last"
2024-01-01 00:29:48.604 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v1/vehicles/MY-VIN/parkingposition" returned with status code [200]
2024-01-01 00:29:48.709 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v2/vehicles" returned with status code [200]
2024-01-01 00:29:48.768 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v1/trips/MY-VIN/shortterm/last" returned with status code [200]
2024-01-01 00:29:48.822 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v1/vehicles/MY-VIN/selectivestatus?jobs=access,fuelStatus,vehicleLights,vehicleHealthInspection,measurements,charging,climatisation,automation" returned with status code [207]
2024-01-01 00:29:48.823 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service charging. (This is expected for several service/car combinations)
2024-01-01 00:29:48.823 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service climatisation. (This is expected for several service/car combinations)
2024-01-01 00:29:48.823 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service automation. (This is expected for several service/car combinations)
2024-01-01 00:29:48.825 DEBUG (MainThread) [volkswagencarnet.vw_connection] Getting API status updates
2024-01-01 00:29:48.825 DEBUG (MainThread) [custom_components.volkswagencarnet] Updating data from volkswagen WeConnect
2024-01-01 00:29:48.825 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] Setting up dashboard with config :{'mutable': True, 'spin': '8948', 'miles': False, 'scandinavian_miles': True}
2024-01-01 00:29:48.825 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Position is supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Door locked (DoorLock:door_locked) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Trunk locked (TrunkLock:trunk_locked) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Force data refresh is supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Window Heater (WindowHeater:window_heater) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Climatisation from battery (BatteryClimatisation:climatisation_without_external_power) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Electric Climatisation (ElectricClimatisation:electric_climatisation) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Auxiliary Climatisation (AuxiliaryClimatisation:auxiliary_climatisation) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Parking Heater Ventilation (PHeaterVentilation:pheater_ventilation) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Parking Heater Heating (PHeaterHeating:pheater_heating) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Charging (Charging:charging) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Departure Schedule 1 (DepartureTimer:departure_timer1) is not supported
2024-01-01 00:29:48.826 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Departure Schedule 2 (DepartureTimer:departure_timer2) is not supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Departure Schedule 3 (DepartureTimer:departure_timer3) is not supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Request results is supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Minimum charge level for departure timers (Sensor:schedule_min_charge_level) is not supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Heater source for departure timers (Sensor:schedule_heater_source) is not supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Odometer is supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Battery level (Sensor:battery_level) is not supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Adblue level (Sensor:adblue_level) is not supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Fuel level is supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Service inspection days is supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Service inspection distance is supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Oil inspection days is supported
2024-01-01 00:29:48.827 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Oil inspection distance is supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last connected (Sensor:last_connected) is not supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Parking time is supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Charging time left (Sensor:charging_time_left) is not supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Electric range (Sensor:electric_range) is not supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Combustion range is supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Combined range (Sensor:combined_range) is not supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Charger max ampere (Sensor:charge_max_ampere) is not supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Climatisation target temperature (Sensor:climatisation_target_temperature) is not supported
2024-01-01 00:29:48.828 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip average speed is supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip average electric engine consumption (Sensor:trip_last_average_electric_engine_consumption) is not supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip average fuel consumption is supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip duration is supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip length is supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip recuperation (Sensor:trip_last_recuperation) is not supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip average recuperation (Sensor:trip_last_average_recuperation) is not supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip average auxillary consumption (Sensor:trip_last_average_auxillary_consumption) is not supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip average auxillary consumer consumption (Sensor:trip_last_average_aux_consumer_consumption) is not supported
2024-01-01 00:29:48.829 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Last trip total electric consumption (Sensor:trip_last_total_electric_consumption) is not supported
2024-01-01 00:29:48.830 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Parking Heater heating/ventilation status (Sensor:pheater_status) is not supported
2024-01-01 00:29:48.830 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Parking Heater heating/ventilation duration (Sensor:pheater_duration) is not supported
2024-01-01 00:29:48.830 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Outside temperature (Sensor:outside_temperature) is not supported
2024-01-01 00:29:48.830 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Requests remaining is supported
2024-01-01 00:29:48.830 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN API vehicles is supported
2024-01-01 00:29:48.830 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN API capabilities is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN API trips is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN API selectivestatus is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN API parkingposition is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN API token is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN External power (BinarySensor:external_power) is not supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Energy flow (BinarySensor:energy_flow) is not supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Parking light is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Doors locked (BinarySensor:door_locked) is not supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Doors locked is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Door closed left front is supported
2024-01-01 00:29:48.831 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Door closed right front is supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Door closed left back is supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Door closed right back is supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Trunk locked (BinarySensor:trunk_locked) is not supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Trunk locked is supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Trunk closed is supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Hood closed is supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Charging cable connected (BinarySensor:charging_cable_connected) is not supported
2024-01-01 00:29:48.832 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Charging cable locked (BinarySensor:charging_cable_locked) is not supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Sunroof closed (BinarySensor:sunroof_closed) is not supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Roof cover closed (BinarySensor:roof_cover_closed) is not supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Windows closed is supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Window closed left front is supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Window closed left back is supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Window closed right front is supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Window closed right back is supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Vehicle Moving is supported
2024-01-01 00:29:48.833 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] MY-VIN Request in progress is supported
2024-01-01 00:29:48.834 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.874 seconds (success: True)
2024-01-01 00:29:48.834 DEBUG (MainThread) [custom_components.volkswagencarnet] Async update finished for MY-VIN (volkswagencarnet). Next update in 0:05:00.
2024-01-01 00:29:48.834 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of combustion_range
2024-01-01 00:29:48.835 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of combustion_range
2024-01-01 00:29:48.835 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Combustion range: state not changed ('55.5' == '55.5'), skipping update.
2024-01-01 00:29:48.835 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_selectivestatus_status
2024-01-01 00:29:48.836 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of service_inspection
2024-01-01 00:29:48.837 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of service_inspection
2024-01-01 00:29:48.837 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Service inspection days: state not changed ('-88' == '-88'), skipping update.
2024-01-01 00:29:48.837 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_trips_status
2024-01-01 00:29:48.838 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_average_speed
2024-01-01 00:29:48.839 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_average_speed
2024-01-01 00:29:48.839 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Last trip average speed: state not changed ('2.9' == '2.9'), skipping update.
2024-01-01 00:29:48.839 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_vehicles_status
2024-01-01 00:29:48.840 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_token_status
2024-01-01 00:29:48.844 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of oil_inspection
2024-01-01 00:29:48.844 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of oil_inspection
2024-01-01 00:29:48.844 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Oil inspection days: state not changed ('-88' == '-88'), skipping update.
2024-01-01 00:29:48.844 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of requests_remaining
2024-01-01 00:29:48.844 DEBUG (MainThread) [custom_components.volkswagencarnet] Restoring requests remaining to '-1'
2024-01-01 00:29:48.845 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of requests_remaining
2024-01-01 00:29:48.845 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of request_results
2024-01-01 00:29:48.846 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of request_results
2024-01-01 00:29:48.846 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Request results: state not changed ('Unknown' == 'Unknown'), skipping update.
2024-01-01 00:29:48.846 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of fuel_level
2024-01-01 00:29:48.846 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of fuel_level
2024-01-01 00:29:48.847 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Fuel level: state not changed ('88' == '88'), skipping update.
2024-01-01 00:29:48.847 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of distance
2024-01-01 00:29:48.848 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of distance
2024-01-01 00:29:48.848 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Odometer: state not changed ('6885.1' == '6885.1'), skipping update.
2024-01-01 00:29:48.849 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of oil_inspection_distance
2024-01-01 00:29:48.849 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of oil_inspection_distance
2024-01-01 00:29:48.849 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Oil inspection distance: state not changed ('-321.9' == '-321.9'), skipping update.
2024-01-01 00:29:48.850 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of service_inspection_distance
2024-01-01 00:29:48.850 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of service_inspection_distance
2024-01-01 00:29:48.850 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Service inspection distance: state not changed ('1174.8' == '1174.8'), skipping update.
2024-01-01 00:29:48.850 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_average_fuel_consumption
2024-01-01 00:29:48.851 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_average_fuel_consumption
2024-01-01 00:29:48.851 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Last trip average fuel consumption: state not changed ('8.4' == '8.4'), skipping update.
2024-01-01 00:29:48.851 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_capabilities_status
2024-01-01 00:29:48.852 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_length
2024-01-01 00:29:48.852 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_length
2024-01-01 00:29:48.854 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Last trip length: state not changed ('3.4' == '3.4'), skipping update.
2024-01-01 00:29:48.855 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_duration
2024-01-01 00:29:48.856 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_duration
2024-01-01 00:29:48.856 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Last trip duration: state not changed ('71' == '71'), skipping update.
2024-01-01 00:29:48.856 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_parkingposition_status
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of hood_closed
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of hood_closed
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Hood closed: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_locked_sensor
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_locked_sensor
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Doors locked: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.857 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of request_in_progress
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of request_in_progress
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Request in progress: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_right_back
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_right_back
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Door closed right back: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of windows_closed
2024-01-01 00:29:48.858 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of windows_closed
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Windows closed: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_right_front
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_right_front
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Window closed right front: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of trunk_closed
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of trunk_closed
2024-01-01 00:29:48.859 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Trunk closed: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of parking_light
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of parking_light
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Parking light: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_left_front
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_left_front
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Window closed left front: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of vehicle_moving
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of vehicle_moving
2024-01-01 00:29:48.860 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Vehicle Moving: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_left_back
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_left_back
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Window closed left back: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_right_front
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_right_front
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Door closed right front: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_right_back
2024-01-01 00:29:48.861 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_right_back
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Window closed right back: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_left_back
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_left_back
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Door closed left back: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of trunk_locked_sensor
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of trunk_locked_sensor
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Trunk locked: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_left_front
2024-01-01 00:29:48.862 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_left_front
2024-01-01 00:29:48.863 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Door closed left front: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.863 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of refresh_data
2024-01-01 00:29:48.863 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of refresh_data
2024-01-01 00:29:48.863 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Force data refresh: state not changed ('off' == 'off'), skipping update.
2024-01-01 00:29:48.869 DEBUG (MainThread) [custom_components.volkswagencarnet] Golf Position: state not changed ('not_home' == 'not_home'), skipping update.
2024-01-01 00:29:50.457 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Turning ON refresh_data.
2024-01-01 00:29:50.457 INFO (MainThread) [volkswagencarnet.vw_vehicle] Data refresh is not supported.
2024-01-01 00:29:50.458 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140096577070784] Data refresh is not supported.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 878, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/volkswagencarnet/switch.py", line 86, in async_turn_on
    await self.instrument.turn_on()
  File "/usr/local/lib/python3.11/site-packages/volkswagencarnet/vw_dashboard.py", line 471, in turn_on
    await self.vehicle.set_refresh()
  File "/usr/local/lib/python3.11/site-packages/volkswagencarnet/vw_vehicle.py", line 569, in set_refresh
    raise Exception("Data refresh is not supported.")
Exception: Data refresh is not supported.

https://github.com/robinostlund/volkswagencarnet/blob/248c59f3e89e7a4cf845c8c726142ec84705e6a1/volkswagencarnet/vw_vehicle.py#L562

Debug information - all JSON responses from logfile

Additional context

LeedsDBA commented 6 months ago

Is it because the statusreport_v1 is commented out?

https://github.com/robinostlund/volkswagencarnet/blob/248c59f3e89e7a4cf845c8c726142ec84705e6a1/volkswagencarnet/vw_vehicle.py#L74C1-L75C1

stickpin commented 6 months ago

@LeedsDBA Force refresh will be re-introduced in the next beta. I've already re-implemented it using new APIs: https://github.com/robinostlund/volkswagencarnet/pull/239

stickpin commented 5 months ago

Force refresh is available again as part of the v4.5.1 release: https://github.com/robinostlund/homeassistant-volkswagencarnet/releases/tag/v4.5.1