Hi guys, I saw this integration last week and immediately installed it. I use the directlease (Dutch) provider to give me the locations and prices 2 miles from my house. I noticed however that the prices don’t get updated automatically. Even a reload of the integration isn’t working. The prices only get updated after a HA reboot. Does anyone have a solution for this issue?
Basically, the poll interval has been set so low that they have probably blocked your connection, currently no way around this.
DirectLease will be temporarily removed in the next version because of this. However I have been trying to work with them to get something up and running. Not heard back now for a week or so.
Can run each of the 3 fuel associated actions within developer actions screen but I do need to reduce the length manually of the longtitude/latitude by 1 numeric and then put that numeric back in for it to work. Error is
This action requires field location, please enter a valid value for location
Then the following actions run individually without issue
Fuel Prices: Find fuel stations from location
Fuel Prices: Find fuel prices from location
Fuel Prices: force_update
When I try to run the final report I get the following error
Action script.find_fuel not found.
The syntax that makes up find_fuel is correctly set up in scripts.yaml.
Appreciate any further assistance with this. Many thanks.
Thanks for finding the missing apostrophe. I now am back getting the error
Failed to perform the action script/find_fuel. Template output exceeded maximum size of 262144 characters
Have rechecked that the syntax held in file set_fuel_prices.py matches what you provided in post 181. Sorry that I have to keep coming back to you on this.
Do you have the python script in the correct directory now?
Should be in python_scripts. You’ll need to reload python scripts from developer tools.
You should be able to find the python script in Developer Tools → Actions.
Script is called set_fuel_prices.
If that is showing up in the list, then try setting the max_results to 1 in the find_fuels script, reload scripts, and see if that returns the same error.
The file set_fuel_prices.py is in the directory python_scripts. I do not see the python script set_fuel_prices in the Action selection of Developer tools. I have the following available to me from this integration
Fuel Prices: Find fuel stations from location
Fuel Prices: Find fuel prices from location
Fuel Prices: force_update
Scripts: find_fuel
When I run the Scripts: find_fuel I get the error Failed to perform the action script/find_fuel. Template output exceeded maximum size of 262144 characters
Like I’ve said before, this is because the template is internally rendered when passing the data to the python script. There is a maximum buffer of 256kb in Home Assistant for this.
Lower the radius or limit the data that is being sent to the python script with
It’s still rendered internally to send the data from the template to the script… Otherwise the script would only ever see {{ data.fuels }} and not the actual value.