itchannel / fordpass-ha

Fordpass integration for Home Assistant
301 stars 53 forks source link

Fuel level shows negative number after car off #37

Closed emile-bodin closed 3 years ago

emile-bodin commented 3 years ago

Hi ,

Great integration. I am testing it and found that when the car is turned off, the fuel level drops to a negative number.

IMG_20201127_180724

Initially is thought it was because the sensors became unavailable, but after calling the fordpass.refresh_status or refreshing via the ford app the status remains like that.

After the car is started it show a correct value.

petheridge commented 3 years ago

@emile-bodin Does the fuel gauge in your FordPass App reflect an empty tank when your vehicle is off? -5% to 105% is the range the vehicle reports. It's odd that it's actively reporting empty when off. I have not had this issue.

emile-bodin commented 3 years ago

I am using 2 separate apps, "FordPass" and "FordPass Pro" I the first one there is no fuel information at all, in the pro version the fuel status is "Information not available"

So it seems its somthing that the ford api sends when the car is off.

Might be an idea to "remember" last fuel state, instead of reporting the "information not available" state

itchannel commented 3 years ago

Could you please provide me the following information because as @petheridge says I also don't have this issue and the car returns the correct fuel amount with the engine off.

Out of interest does your car have an analog fuel gauge on the cluster rather than the new digital ones?

emile-bodin commented 3 years ago

There were a bunch of communication issues, after applying the code change to reflect Europe and a sync via HA when my car was turned on and the fuel % was shown correctly, and most importantly it stayed ;)

I have upgraded to the newest release and readded the integration (after deleting the tokes) and resynced the status with the car turned on.

Have not seen the issues again. I think the ticket can be closed.

Thanks!

itchannel commented 3 years ago

Glad to hear it's working for you 👍

Banzarykey commented 3 years ago

I seem to bet getting this same issue with 1.10

fuelLevel: -5.217408 distanceToEmpty: 246.8 status: CURRENT timestamp: '12-15-2020 13:17:10' unit_of_measurement: '%' friendly_name: fordpass_fuel icon: 'mdi:gas-station'