pantherale0 / ha-fuelprices

A generic and extensible integration with pyfuelprices to retrieve local (or remote) fuel price data.
MIT License
19 stars 2 forks source link

Australia WA Fuel Watch - Tomorrow Price #21

Closed alwyntn closed 3 weeks ago

alwyntn commented 3 months ago

Checklist

Is your feature request related to a problem? Please describe.

It is not a problem.

Describe the solution you'd like

Daily at around 2:30pm WA local time, fuelwatch WA will update tomorrow fuel price. Would be nice if can retrieve the price feed too.

Describe alternatives you've considered

Unable to think of anything

Additional context

nil

pantherale0 commented 1 month ago

Very difficult for me to implement due to the timezone difference. For me, 2:30pm in WA is around 7:30am and I'm not usually up at this time. I will work on this as soon as I can, but no guarantees

pantherale0 commented 3 weeks ago

I've taken a look at this, and actually I think the data should already be there under the entity attributes. for Fuel Watch it will be:

props.data.product.priceTomorrow

EDIT: Checked, there is a bug because it doesn't show all the fuels, but it is there.

pantherale0 commented 3 weeks ago

Implemented a new key for this in 2024.10.0.

fuel_details.<FUEL_CODE>.priceTomorrow

If priceTomorrow is not available, that is because it is not available in the API.