Closed Jab2870 closed 4 months ago
an additional advantage here is that the state is stored in HA history so the price of fuel can be tracked over time
Will work on this for the next version, I agree, this would be much more helpful
Small preview of what is to come. Need to write up some docs though first.
Home Assistant will actually capture the states into the long term statistics table in the backend so I found out a little while ago.
This looks great @pantherale0 . Thanks. have 2 queries:
Hi,
So, downloaded the latest version and it's working great, thanks very much. 1 small thing is that the units are wrong. If you would prefer, I can open a new issue for it, but given it is a result of this I thought I'd ask here first.
This should be pence, not pounds.
Discussed here, it's not a simple swap to pence as this integration supports other countries / currencies where the format varies.
https://github.com/pantherale0/ha-fuelprices/issues/13#issuecomment-2171913170
Ok, no problem. thanks for the quick response
Checklist
Is your feature request related to a problem? Please describe.
The home assistant map card allows for map marker text to display an entities state rather than an entities name. Currently, a map simply shows an abbreviation of a fuel station's name, which is not hugely helpful:
It would be much more helpful do display a fuel price, as demo'd here: https://www.home-assistant.io/blog/2023/10/04/release-202310/#map-entity-marker-options
Describe the solution you'd like
I would like the ability to set an entity's state to be the fuel price.
Describe alternatives you've considered
Could probably do it with template sensors, although that would mean having 2 entities for each fuel station - something I'd prefer to avoid.
Additional context
I suspect this would take the form of a selection during setup whereby a user selects the sort of fuel they would like to display as the entity's state. E10 or B7 for instance