Open commputethis opened 1 week ago
The value is directly passed from the fordpass API, I don't believe there is any calculation done by the integration:
if self.sensor == "fuel":
fuel_level = self.data.get("fuelLevel", {}).get("value")
if fuel_level is not None:
return round(fuel_level)
battery_soc = self.data.get("xevBatteryStateOfCharge", {}).get("value")
if battery_soc is not None:
return round(battery_soc)
return None
That's what I assumed, but didn't want to assume. Thanks
I wasn't sure how to title this. Is this integration calculating the fuel remaining percentage or is it just pulling it from Ford? I am assuming it is pulling it from Ford, but wanted to ask to see. Mine is showing 103%. I filled up and have driven about 10 miles. If it is pulling from Ford, then there probably isn't much that can be done. If it is being calculated by the integration, then there seems to be an issue and maybe assumptions made with the fuel tank size. Anyway, I figured it was worth asking the question.