home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.17k stars 29.85k forks source link

Volvo on Call: Fuel and Fuel_2 seem to mix up every few days #7636

Closed timh77 closed 7 years ago

timh77 commented 7 years ago

Home Assistant release (hass --version): 0..44.2 Python release (python3 --version): 3.4.2 Component/platform: volvooncall Description of problem: Volvo on Call has two sensors, "sensor.XYZ_fuel" and "sensor.XYZ_fuel_2". Every now and then the values seem to mix up. In Currently "fuel" is the amount of fuel left and "fuel_2" is the per centage left. Yesterday it was the other way around. Could be that it's changing back in a few days again.

pic Yesterday the amount of fuel left was 56 liters. Then went up (but didn't go to the gas station) to 76 and now it's back to 63. All values are correct but liters and per centages are mixed up.

Expected: Consistent behavior Problem-relevant configuration.yaml entries and steps to reproduce: Just seems to happen every few days.

molobrakos commented 7 years ago

Ah, ok. Do you restart HA inbetween?

timh77 commented 7 years ago

Haven't restarted it since the 44.2 release. By the way, now it's back to liters again ;-)

molobrakos commented 7 years ago

Would you be able to test if this change fixes your problem? https://github.com/molobrakos/home-assistant/commit/3081853ee45aabf0ec3d9a160b54a46e6211198b

timh77 commented 7 years ago

Sure. Will make the changes later today and report back in a few days. Thanks!

timh77 commented 7 years ago

So far the values haven't been mixed up

molobrakos commented 7 years ago

Unless you haven't noticed any issues, I'll make a PR of this then.