myTselection / Carbu_com

Actual fuel prices (super, diesel, lpg) per gasstation supported for Belgium, France, Luxembourg, Spain, Netherlands, Germany, Italy and US! Home Assistant custom component HACS integration for BE/FR/LU based on carbu.com and mazout.com site to compare and save on your actual fuel oil/heating oil (mazout) and fuel (diesel, super and lpg) purchases.
MIT License
23 stars 6 forks source link

Showing a Fuelstation +30km away as the locale cheapest #19

Closed BelgianGuyWithALaser closed 1 year ago

BelgianGuyWithALaser commented 1 year ago

Hi,

I've set this up for my current hometown (3650) and then it works perfect. yet for our new town (3960 Bree) it shows a fuelstation +30km away as the "cheapest local" Bree fuel here is the Carbu link for the Bocken NV station so you can see the adress : https://carbu.com/belgie/index.php/station/vrijlibre/maasmechelen/3630/2216

Would there be any way to add a check that if it's + xx km's away (free to setup or so I suppose) it will not show up in the integration.

Kind regards,

Jordy

myTselection commented 1 year ago

I see different towns exist with postal code 3960. If only country and postal code are provided during setup, the first match will be selected (which would probably be 'Beek' for 3960). So you may try to remove the integration and set it up again with a 'Town' 'Bree'. I hope that would resolve this for you.

BelgianGuyWithALaser commented 1 year ago

sadly this does not resolve it. the postcode 3960 beek falls under "Bree" , that's how it's done here in Belgium (limburg) atleast. so that's still my town/commune. still doesn't explain the +30km difference to Maasmechelen. ( postalcode 3630 ) Also if that would have been an issue, my regular hometown one should also get different value's since under the postalcode of 3650 we have 5 towns (all under 3-5km from each other)

I've removed the integration, and added it with the town set to bree but then I get nothing at all as sensors. Bree fuel2

BelgianGuyWithALaser commented 1 year ago

Nvm, a force restart of my HA pulled in value's now. but the Bocken one should never popped up in my opinion. I guess it's because of their pricing somehow? everything is it 0,00. So a distance check might still be a good option?

myTselection commented 1 year ago

true

myTselection commented 1 year ago

Analysed, but difficult to fully block. Yet, the setup flow has been updated in R4.0 to allow easy selection of the desired town if one postal code matches multiple towns. So this situation should probably no longer occur that easily. If some town has no gas station, the closest available will be used. Will be closed for now.