Closed Dankar82 closed 7 years ago
Please describe what you mean by "doesn't update". You moved your vehicle to a new position and HA still displays the old position?
After a restart HA doesnt show any gps position. I upgraded from 0.55.1 -> 0.56.1 and after that the device_tracker aka gps coordinates for my volvo doesnt show/update anymore. I downgraded again to 0.55.1 and everything is ok! So i think something broke between 0.55.1 and 0.56.1
I'm having the same issue on 0.56.2. No GPS update since yesterday. Odometer, fuel etc. seems to update.
Seeing this in the error log. Not sure if it relates though..
2017-10-25 07:52:42 WARNING (SyncWorker_15) [volvooncall] Failure when communcating with the server: 500 Server Error: Internal Server Error for url: https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxxxxxx/status 2017-10-25 07:52:42 WARNING (SyncWorker_15) [volvooncall] Could not query server: 500 Server Error: Internal Server Error for url: https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxxxxxx/status 2017-10-25 07:52:42 WARNING (SyncWorker_15) [homeassistant.components.volvooncall] Could not query server
I'm running 0.56.2 and I have no problem with this. Try turning on logging for the relevant components:
logger:
default: info
logs:
volvooncall: debug
homeassistant.components.device_tracker: debug
homeassistant.components.device_tracker.volvooncall: debug
homeassistant.components.volvooncall: debug
homeassistant.components.*.volvooncall: debug
I get this as output:
2017-10-25 17:14:28 INFO (MainThread) [homeassistant.setup] Setting up volvooncall 2017-10-25 17:14:28 DEBUG (SyncWorker_17) [volvooncall] User: <tleegaard@> 2017-10-25 17:14:28 INFO (SyncWorker_17) [homeassistant.components.volvooncall] Logging in to service 2017-10-25 17:14:28 INFO (SyncWorker_17) [volvooncall] Updating 2017-10-25 17:14:28 INFO (SyncWorker_17) [volvooncall] Querying vehicles 2017-10-25 17:14:28 DEBUG (SyncWorker_17) [volvooncall] Request for https://vocapi.wirelesscar.net/customerapi/rest/v3.0/customeraccounts 2017-10-25 17:14:28 INFO (MainThread) [homeassistant.setup] Setting up tts 2017-10-25 17:14:28 INFO (MainThread) [homeassistant.setup] Setting up conversation 2017-10-25 17:14:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=conversation, service=process> 2017-10-25 17:14:28 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds. 2017-10-25 17:14:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=conversation> 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Received { _username etc. removed_ } 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Account for <tleegaard@> received 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Request for https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicle-account-relations/xxx 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Received { _account etc. removed_ } 2017-10-25 17:14:29 INFO (MainThread) [homeassistant.setup] Setting up updater 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Request for https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/attributes 2017-10-25 17:14:29 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds. 2017-10-25 17:14:29 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater> 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Received {'engineCode': '3511CF9B', 'exteriorCode': '35111165', 'interiorCode': '3511101Q', 'tyreDimensionCode': '3511R502', 'tyreInflationPressureLightCode': None, 'tyreInflationPressureHeavyCode': None, 'gearboxCode': '3511DB03', 'fuelType': 'Diesel', 'fuelTankVolume': 70, 'grossWeight': None, 'modelYear': 2013, 'vehicleType': 'V70', 'vehicleTypeCode': '3511AA02', 'numberOfDoors': 5, 'country': {'iso2': 'DK'}, 'registrationNumber': 'xxx', 'carLocatorDistance': 1000, 'honkAndBlinkDistance': 500, 'bCallAssistanceNumber': '+4570215053', 'carLocatorSupported': True, 'honkAndBlinkSupported': True, 'honkAndBlinkVersionsSupported': ['honkAndOrBlink', 'honkAndBlink'], 'remoteHeaterSupported': True, 'unlockSupported': True, 'lockSupported': True, 'journalLogSupported': True, 'assistanceCallSupported': True, 'unlockTimeFrame': 120, 'verificationTimeFrame': 120, 'timeFullyAccessible': 4320, 'timePartiallyAccessible': 20160, 'subscriptionType': 'PREMIUM_2013', 'subscriptionStartDate': datetime.datetime(2013, 1, 18, 7, 34, 22, tzinfo=datetime.timezone.utc), 'subscriptionEndDate': datetime.datetime(2019, 1, 18, 7, 34, 22, tzinfo=datetime.timezone.utc), 'serverVersion': '4.11.46-voc-deployable', 'VIN': 'xxx', 'journalLogEnabled': True, 'highVoltageBatterySupported': False, 'overrideDelayChargingSupported': False, 'preclimatizationSupported': False, 'sendPOIToVehicleVersionsSupported': [], 'climatizationCalendarVersionsSupported': [], 'climatizationCalendarMaxTimers': 8, 'vehiclePlatform': '3511', 'vin': 'xxx', 'engineStartSupported': False, 'status.parkedIndoor.supported': False} 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Request for https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/status 2017-10-25 17:14:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.darksky 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Received {'averageFuelConsumption': 61.0, 'averageFuelConsumptionTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'averageSpeed': 78, 'averageSpeedTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'brakeFluid': 'Normal', 'brakeFluidTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'bulbFailures': [], 'bulbFailuresTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'carLocked': True, 'carLockedTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'distanceToEmpty': 150, 'distanceToEmptyTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'doors': {'tailgateOpen': False, 'rearRightDoorOpen': False, 'rearLeftDoorOpen': False, 'frontRightDoorOpen': False, 'frontLeftDoorOpen': False, 'hoodOpen': False, 'timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc)}, 'fuelAmount': 13, 'fuelAmountLevel': 18, 'fuelAmountLevelTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'fuelAmountTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'heater': {'timer1': {'time': '07:25', 'state': False}, 'timer2': {'time': '15:50', 'state': False}, 'timestamp': datetime.datetime(2017, 10, 25, 6, 39, 26, tzinfo=datetime.timezone.utc)}, 'odometer': 196901062, 'odometerTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'serviceWarningStatus': 'Normal', 'serviceWarningStatusTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'timeFullyAccessibleUntil': datetime.datetime(2017, 10, 28, 14, 57, 22, tzinfo=datetime.timezone.utc), 'timePartiallyAccessibleUntil': datetime.datetime(2017, 11, 8, 14, 57, 22, tzinfo=datetime.timezone.utc), 'tripMeter1': 895900, 'tripMeter1Timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'tripMeter2': 308400, 'tripMeter2Timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'washerFluidLevel': 'Normal', 'washerFluidLevelTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'windows': {'frontLeftWindowOpen': False, 'frontRightWindowOpen': False, 'timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'rearLeftWindowOpen': False, 'rearRightWindowOpen': False}} 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Request for https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/position 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] Received {'position': {'longitude': 8.230526733398438, 'latitude': 54.01039001464844, 'timestamp': datetime.datetime(2017, 10, 25, 14, 57, 30, tzinfo=datetime.timezone.utc), 'speed': None, 'heading': None}, 'calculatedPosition': {'longitude': None, 'latitude': None, 'timestamp': None, 'speed': None, 'heading': None}} 2017-10-25 17:14:29 DEBUG (SyncWorker_17) [volvooncall] State: {'https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/': {'engineCode': '3511CF9B', 'exteriorCode': '35111165', 'interiorCode': '3511101Q', 'tyreDimensionCode': '3511R502', 'tyreInflationPressureLightCode': None, 'tyreInflationPressureHeavyCode': None, 'gearboxCode': '3511DB03', 'fuelType': 'Diesel', 'fuelTankVolume': 70, 'grossWeight': None, 'modelYear': 2013, 'vehicleType': 'V70', 'vehicleTypeCode': '3511AA02', 'numberOfDoors': 5, 'country': {'iso2': 'DK'}, 'registrationNumber': 'xxx', 'carLocatorDistance': 1000, 'honkAndBlinkDistance': 500, 'bCallAssistanceNumber': '+4570215053', 'carLocatorSupported': True, 'honkAndBlinkSupported': True, 'honkAndBlinkVersionsSupported': ['honkAndOrBlink', 'honkAndBlink'], 'remoteHeaterSupported': True, 'unlockSupported': True, 'lockSupported': True, 'journalLogSupported': True, 'assistanceCallSupported': True, 'unlockTimeFrame': 120, 'verificationTimeFrame': 120, 'timeFullyAccessible': 4320, 'timePartiallyAccessible': 20160, 'subscriptionType': 'PREMIUM_2013', 'subscriptionStartDate': datetime.datetime(2013, 1, 18, 7, 34, 22, tzinfo=datetime.timezone.utc), 'subscriptionEndDate': datetime.datetime(2019, 1, 18, 7, 34, 22, tzinfo=datetime.timezone.utc), 'serverVersion': '4.11.46-voc-deployable', 'VIN': 'xxx', 'journalLogEnabled': True, 'highVoltageBatterySupported': False, 'overrideDelayChargingSupported': False, 'preclimatizationSupported': False, 'sendPOIToVehicleVersionsSupported': [], 'climatizationCalendarVersionsSupported': [], 'climatizationCalendarMaxTimers': 8, 'vehiclePlatform': '3511', 'vin': 'xxx', 'engineStartSupported': False, 'status.parkedIndoor.supported': False, 'averageFuelConsumption': 61.0, 'averageFuelConsumptionTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'averageSpeed': 78, 'averageSpeedTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'brakeFluid': 'Normal', 'brakeFluidTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'bulbFailures': [], 'bulbFailuresTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'carLocked': True, 'carLockedTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'distanceToEmpty': 150, 'distanceToEmptyTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'doors': {'tailgateOpen': False, 'rearRightDoorOpen': False, 'rearLeftDoorOpen': False, 'frontRightDoorOpen': False, 'frontLeftDoorOpen': False, 'hoodOpen': False, 'timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc)}, 'fuelAmount': 13, 'fuelAmountLevel': 18, 'fuelAmountLevelTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'fuelAmountTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'heater': {'timer1': {'time': '07:25', 'state': False}, 'timer2': {'time': '15:50', 'state': False}, 'timestamp': datetime.datetime(2017, 10, 25, 6, 39, 26, tzinfo=datetime.timezone.utc)}, 'odometer': 196901062, 'odometerTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'serviceWarningStatus': 'Normal', 'serviceWarningStatusTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'timeFullyAccessibleUntil': datetime.datetime(2017, 10, 28, 14, 57, 22, tzinfo=datetime.timezone.utc), 'timePartiallyAccessibleUntil': datetime.datetime(2017, 11, 8, 14, 57, 22, tzinfo=datetime.timezone.utc), 'tripMeter1': 895900, 'tripMeter1Timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'tripMeter2': 308400, 'tripMeter2Timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'washerFluidLevel': 'Normal', 'washerFluidLevelTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'windows': {'frontLeftWindowOpen': False, 'frontRightWindowOpen': False, 'timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'rearLeftWindowOpen': False, 'rearRightWindowOpen': False}, 'position': {'longitude': 8.230526733398438, 'latitude': 54.01039001464844, 'timestamp': datetime.datetime(2017, 10, 25, 14, 57, 30, tzinfo=datetime.timezone.utc), 'speed': None, 'heading': None}, 'calculatedPosition': {'longitude': None, 'latitude': None, 'timestamp': None, 'speed': None, 'heading': None}}}
And later on:
2017-10-25 17:33:49 DEBUG (SyncWorker_8) [volvooncall] State: {'https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/': {'engineCode': '3511CF9B', 'exteriorCode': '35111165', 'interiorCode': '3511101Q', 'tyreDimensionCode': '3511R502', 'tyreInflationPressureLightCode': None, 'tyreInflationPressureHeavyCode': None, 'gearboxCode': '3511DB03', 'fuelType': 'Diesel', 'fuelTankVolume': 70, 'grossWeight': None, 'modelYear': 2013, 'vehicleType': 'V70', 'vehicleTypeCode': '3511AA02', 'numberOfDoors': 5, 'country': {'iso2': 'DK'}, 'registrationNumber': 'AA59678', 'carLocatorDistance': 1000, 'honkAndBlinkDistance': 500, 'bCallAssistanceNumber': '+4570215053', 'carLocatorSupported': True, 'honkAndBlinkSupported': True, 'honkAndBlinkVersionsSupported': ['honkAndOrBlink', 'honkAndBlink'], 'remoteHeaterSupported': True, 'unlockSupported': True, 'lockSupported': True, 'journalLogSupported': True, 'assistanceCallSupported': True, 'unlockTimeFrame': 120, 'verificationTimeFrame': 120, 'timeFullyAccessible': 4320, 'timePartiallyAccessible': 20160, 'subscriptionType': 'PREMIUM_2013', 'subscriptionStartDate': datetime.datetime(2013, 1, 18, 7, 34, 22, tzinfo=datetime.timezone.utc), 'subscriptionEndDate': datetime.datetime(2019, 1, 18, 7, 34, 22, tzinfo=datetime.timezone.utc), 'serverVersion': '4.11.46-voc-deployable', 'VIN': 'xxx', 'journalLogEnabled': True, 'highVoltageBatterySupported': False, 'overrideDelayChargingSupported': False, 'preclimatizationSupported': False, 'sendPOIToVehicleVersionsSupported': [], 'climatizationCalendarVersionsSupported': [], 'climatizationCalendarMaxTimers': 8, 'vehiclePlatform': '3511', 'vin': 'xxx', 'engineStartSupported': False, 'status.parkedIndoor.supported': False, 'averageFuelConsumption': 61.0, 'averageFuelConsumptionTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'averageSpeed': 78, 'averageSpeedTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'brakeFluid': 'Normal', 'brakeFluidTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'bulbFailures': [], 'bulbFailuresTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'carLocked': True, 'carLockedTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'distanceToEmpty': 150, 'distanceToEmptyTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'doors': {'tailgateOpen': False, 'rearRightDoorOpen': False, 'rearLeftDoorOpen': False, 'frontRightDoorOpen': False, 'frontLeftDoorOpen': False, 'hoodOpen': False, 'timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc)}, 'fuelAmount': 13, 'fuelAmountLevel': 18, 'fuelAmountLevelTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'fuelAmountTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'heater': {'timer1': {'time': '07:25', 'state': False}, 'timer2': {'time': '15:50', 'state': False}, 'timestamp': datetime.datetime(2017, 10, 25, 6, 39, 26, tzinfo=datetime.timezone.utc)}, 'odometer': 196901062, 'odometerTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'serviceWarningStatus': 'Normal', 'serviceWarningStatusTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'timeFullyAccessibleUntil': datetime.datetime(2017, 10, 28, 14, 57, 22, tzinfo=datetime.timezone.utc), 'timePartiallyAccessibleUntil': datetime.datetime(2017, 11, 8, 14, 57, 22, tzinfo=datetime.timezone.utc), 'tripMeter1': 895900, 'tripMeter1Timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'tripMeter2': 308400, 'tripMeter2Timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'washerFluidLevel': 'Normal', 'washerFluidLevelTimestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'windows': {'frontLeftWindowOpen': False, 'frontRightWindowOpen': False, 'timestamp': datetime.datetime(2017, 10, 25, 14, 58, 30, tzinfo=datetime.timezone.utc), 'rearLeftWindowOpen': False, 'rearRightWindowOpen': False}, 'position': {'longitude': 8.230526733398438, 'latitude': 54.01039001464844, 'timestamp': datetime.datetime(2017, 10, 25, 14, 57, 30, tzinfo=datetime.timezone.utc), 'speed': None, 'heading': None}, 'calculatedPosition': {'longitude': None, 'latitude': None, 'timestamp': None, 'speed': None, 'heading': None}}}
(I changed the coordinates a bit for privacy)
This is the only error for now:
2017-10-25 17:45:05 WARNING (SyncWorker_6) [volvooncall] Failure when communcating with the server: 500 Server Error: Internal Server Error for url: https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/status 2017-10-25 17:45:05 WARNING (SyncWorker_6) [volvooncall] Could not query server: 500 Server Error: Internal Server Error for url: https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/status 2017-10-25 17:45:05 WARNING (SyncWorker_6) [homeassistant.components.volvooncall] Could not query server
Probably a regression caused by this fix: https://github.com/home-assistant/home-assistant/pull/9073/files
I suspect this is because the dev-id can have changed. Please, check known_devices.yaml
and set track: true
, that might be it.
I already had track set to true:
volvo_aa00000:
hide_if_away: false
icon: mdi:car
mac:
name: Volvo
picture:
track: true
vendor:
And no relevant device tracker at all at http://
/dev-state shows device_tracker.volvo_aa00000
, but state is home though the car is away. The state of sensor.aa00000_fuel_amount
etc. was updated when the car was parked this morning.
I experience the exact same problem... Gps status wont update, but everything else is fine. I tried to remove the tracker from known devices and se if it would appear again, but that it didnt. A downgrade to 0.55.1 and its all good. Could an update for example async be the problem... As i recall it went from 1.4.4 to 2.x?
I can see it, it turns out the position reported by my HA instance also is an old state. It doesn't seem to be related to https://github.com/home-assistant/home-assistant/pull/9073/files. The device_tracker doesn't seem to be initialized at all. Maybe something in core changed?
Yes, #9683 broke discovery functionality.
Thanks for helping resolve this!
Home Assistant release (
hass --version
): 0.56.2Python release (
python3 --version
): 3,5Component/platform: volvooncall
Description of problem: Volvooncall doesnt update the device_tracker component anymore. The other sensors is ok!
Expected: No errors in normal debug log, perhaps Volvo changed their api?
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info: