Automation whenever my car enters a fuel station

Hello there,

I have an Golf 8 and I’m using “Volkswagen We Connect”, whenever I need to fill up my car I need to enter my odometer.

I currently have an automation, that sends an push notification to my phone with my current odometer, when I enter a specific gas station (currently an manually created zone).

Do you have any ideas, how I could automate it even more for like every gas station - without creating manually zones?

You could try GitHub - custom-components/places: Component to integrate with OpenStreetMap Reverse Geocode (places) and have a look at the place_category attribute. I don’t know if there is a category for gas stations, but if it exists, you could use that.

This looks very promising.

I found the place_type “fuel”, gonna test it later.

Thanks!

What information can you get from We Connect? If it can tell you the fuel level in your fuel tank, you could simply trigger an automation when the level increases. This would be much more robust than triggering on location. And what if you stop in a gas station to grab something to drink or use the restroom without filling your tank?

1 Like

The problem with We Connect is, that it only fetch data like every 5 minutes (not sure tho, can’t find anything in the docs).

I could try to force update the data, when I’m at a fuel station, but honestly I will just trigger it on location and if I have < 200km range left.

But still I will test the tank increasing automation out :slight_smile:

Isn’t the GPS location, the odometer, and the fuel level all coming from We Connect, and all coming in at the same ~5 minute interval?

I use the GPS from my Phone and the odometer doesnt need to be perfect.

Do whatever works for you, but I’m not sure why it matters for the fuel level method if the data only updates every 5 minutes. Trigger on fuel level state, have a template condition of {{ trigger.to_state.state | float > trigger.from_state.state | float }}

That just seems way easier and way more robust than any other method.