Remove DirectLease from your config and try again.
will do that and revert…be back shortly
Same problem after HA update. I am on version 2025.1.0
to confirm, it’s been fine on all 2025.1.x versions till now…it was only OS update that broke things and if i wind back to OS 14.2 its working as expected
Ok, give me 10 mins, I have the same problem so I’m assuming a datasource isn’t responding.
If you remove morrisons does it work?
I’ve just seen that there feed is no longer available (https://www.morrisons.com/fuel-prices/fuel.json)
checking…
after removing Morrisons and restarting HA, all now appears to be good…
I’ve also added back in DirectLease and all still working after a further restart…are we good to leave that one in there
Thanks for such a speedy repsonse
No problem, I’ve just updated the python module to remove Morrisons (this will be in the release notes once my tests finish on the integration) as all their fuel stations are now owned by another company instead. I think Motor Fuel Group if I remember correctly which also provides a data feed.
To prevent further issues, I’ve added some more exception handling too so that it only logs exceptions on data parsing issues rather than stopping the whole integration from working.
Trying this integration now, but it seems I’m running into two problems, one of which I don’t know if it’s a problem yet, but it might be.
-
After configuring the integration, it doesn’t register any entities. But I’ve told it to register entities for the 5 cheapest locations. Location has also been registered successfully, afaict.
-
The sources are confusing. I don’t know which one to pick without internal knowledge of the integration. Could you rename them to the corresponding countries? Or just let the user add countries only, while the integration handles whatever sources are applicable. Don’t make me think.
I was looking for the Dutch source, but I have no idea which one that is. So I just added all of them, except the ones that are definitely not Dutch.
And still, problem (1) remains. I would expect it to register those 5 entities regardless of whether any results are found. Is that not the case then?
Thanks for your feedback,
You should leave the integration configuration options as default to start off with for the cheapest sensors because it does require underlying knowledge of the data sources and how they expose fuel prices data. You can find the keys needed to go into these fields under the sensor attribute available_fuels
.
The integration will also configure data sources based on your home country automatically if you leave that field blank.
Unfortunately I can’t win both ways, there are just as many users who want to be able to control what specific data sources they want to use as there are who would rather leave the integration to sort itself out. I won’t be changing this, but I am happy to accept a PR.
EDIT: Hit the reply button before I was finished, sorry!
Also worth noting that DirectLease is problematic, see the pinned issue in the repo (and messages in this thread) for more info.
Kiwi here It works here In NEW Zealand will play nite after work…
Version 2025.1.0 is working for me.
When upgrading to 2025.1.1 => “Failed to set up”
This error originated from a custom integration.
Logger: pyfuelprices
Source: custom_components/fuel_prices/__init__.py:72
integration: Fuel Prices (documentation, issues)
First occurred: 11:46:38 (1 occurrences)
Last logged: 11:46:38
Source directlease is not valid for this application.
DirectLease can not be chosen from Data Source(s) anymore.
Another question would it be possible to display Km instead of Miles?
If you need to use DirectLease, rollback to a previous version. I will update the release notes to reflect this.
A lot of work will need to be done to allow both the integration and module to handle different units at the moment.
I’m not quite sure what this means exactly. The integration doesn’t provide any services or entities, and HACS only provides an update entity.
I did remove the sources to make the field empty and and left it to re-initialise before checking its entities.
Edit: It just now started saying “Unknown error occurred” when I try to change the configuration. I wanted to try a bigger radius, just to see if it would provide entities. Just my luck to get an error that even the integration itself doesn’t know what it is.
I used your description below and worked great, thanks so much! I have one question, how do i change from a pound symbol to a dollar symbol ($)?
I currently have the integration working great and have the cheapest 5 options within my radius set as variables. I then have those entities shown on the map dashboard along with the prices.
What I would really like to do is use my phone’s GPS coordinates instead of my fixed houses’. That was as I drive around town, those 5 cheapest locations update on the map automatically.
I have undulattice’s scripts all working and getting the same card (which works great and thank you for the help!) but am struggling figuring out how to do what I want. Any thoughts by anyone? I’m very new to templating/scripting/python.
What app do you use to find fuel prices currently?
@bbsports3 see this post here for something simple, it will provide all the nearest fuel stations as entity attributes for use in templates etc.