-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fordpass_fuel > 100% #468
Comments
FYI, that's an issue with Ford. I worked with a developer creating an Android version of a more detailed version of FordPass and found the same issue. If you want to, use this but change the last number to the size of your tank in gals: sensor.fordpass_fuel / 103 * 36 |
Do you have that information? |
Just came across this and sorry for adding another off topic comment. Ditto on this and for mostly the same reasons. If there's any more info on this app project, I'd love to see it. Ford killing off a lot of features in FordPass for my vehicle (C-Max Energi) basically directed me here and got me on the path for trying to build my own dashboard with all the extra info available from the API. But I'm more used to web based stuff and is where that focus went. Android app development is well outside my wheelhouse. |
Should this be in the current beta @SquidBytes? |
It is not if self.sensor == "fuel":
fuel_level = self.data.get("fuelLevel", {}).get("value")
if fuel_level is not None:
return round(fuel_level) From what I know - the data from the vehicle reports similar to this "fuelLevel": {
"updateTime": "xxxx-xx-xxTxx:xx:xxZ",
"oemCorrelationId": "xxxx",
"value": 69.21759 It could be capped at 100%, but as a data nerd I default to displaying what is reported by the vehicle |
Does something like this work? Sorry I don't know the correct syntax but the logic is if greater than 100 just report 100 and if not then report the value given
|
I just created a helper using this, the number 36 is fo the tank size in
gals.
{{states('sensor.fordpass_fuel') | float /103 * 36}}
…On 2024-05-09 20:40, mclever wrote:
Does something like this work? Sorry I don't know the correct syntax
but the logic is if greater than 100 just report 100 and if not then
report the value given
if self.sensor == "fuel":
fuel_level = self.data.get("fuelLevel", {}).get("value")
if fuel_level is not None:
if fuel_level is > 100
return 100
else
return round(fuel_level)
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you commented.Message ID:
***@***.***>
Links:
------
[1]
#468 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/BE4QBILTFVHBPHZIPAQPGK3ZBQJQHAVCNFSM6AAAAABBP3PHBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGY2TGMJQGI
--
NULL
|
@mclever I think the best solution is to do a helper or template sensor which was suggested by @BobMac57 (thank you for that!). When modifying the As @BobMac57 said, you can do the exact conversion for you vehicle using your tank size. |
Filled up today and noticed the fordpass_fuel showed 103%. May want to cap that at 100%.
Thank you for this integration!!
The text was updated successfully, but these errors were encountered: