Heating oil fuel gauge that is compatible

Where can I purchase a fuel gauge for a 275 gallon (I believe) oil tank that contains home heating oil? It’s in an inconvenient place and I have been, for years, waiting for something that is compatible with the home assistant however as of yet I’ve not seen anything that seems to work. I would buy a esphome device from someone personally if they could make it and make it work without too much hassle (like the RFID tag reader I got that is also listed on GitHub to build yourself.)
If someone could help me find a oil gauge that would be compatible that would be very helpful.

There are many pre-made tank level sensors but you might consider rolling your own.

Option ONE: Using a SR04 type ultrasonic or laser TOF/LIDAR devices to measure volume. These are a common starter project using Arduino, ESP8266, ESP32 and nRF devices. You measure how far from the top of the tank the current oil level is, and by process of subtraction from full and empty, you calculate how much is left.
Certain assumptions are made: your tank has parallel sides, or if not, the height of the oil level is proportional to the volume remaining.

Instructables website has many, many examples. This is the very first one a quick search found. Carefully check the pros and cons of each design shown. For instance, this one is rechargeable battery powered, but that issue has conveniently been ignored as to how to keep the battery charged. If you already have suitable power next to the tank for a pump, using it for a sensor board should be simple.

Do your research and come back with what you propose. You may rise to the challenge to design and build something, or you just might want to buy something that just works. Be acutely aware that your first choice may not be final - experience of hitting obstacles in your way will lead to redesign of your requirements, so go buy the cheapest ESP32, SR04 sensor and have a play before you lock yourself into the final design, and learn along the way.

Issues to consider:
How are you going to power it? Do you need power 24/7 or a simple solar panel to take a few measurements during daylight hours? Will a simple phone charger provide enough power? A power hungry ESP32 vs a BBC MicroBit board?
How to mount it to prevent rust and spiders from affecting it inside your tank lid?
Are the fumes from the oil going to degrade any plastic components?
ESPHome, Tasmota, MQTT, start from scratch, or modify an existing device? Tuya compatibility? Can a generic device be reflashed with your own code?
Do you already have any parts lying around you can repurpose? Old Raspberry Pi, ESP development board, parking sensors, cell phone chargers, long wire runs, etc?
Reliable communications to get your data into the HomeAssistant automation ecosystem. Wireless WIFi, BLE, LoRa, 433Mhz, hardwired RS485, etc.
How often do you need to check the level? Every second, every hour, every day, every week? Is consumption consistent, or intermittent?
Do you need to know to the thimbleful how much you have left? Is tank empty, one quarter full, half full, three quarter full, etc good enough measurement granularity? If so, a simple float switch with four levels is going to be easy to implement.
Parking sensors built into your car fender/bumper bar also can be sourced from your local car part breaker/wrecker that are designed for robust outdoor survival. Their range/distance of measurement may be good enough for your tank height. Read the data sheet carefully to ascertain suitability.

Option TWO: The old farmer’s ‘float connected to a piece of string hanging over the edge of the tank on a pulley’, monitored by a camera is another option.

Option THREE: You may be able to monitor volume consumed by a simple flow meter in-line with your tank outlet pipe. You would have to reset the starting point each refill of the tank. Each pulse measures a given volume of flow, and you just count the pulses and subtract them from the total tank volume to show what is left. You could locate this flow meter at point of consumption, not necessarily at the tank itself but at the other end of the supply pipe, thus saving on wiring, power and data transmission overheads. Be sure your flow sensor is rated for oil, not just water, and is of adequate diameter connection and suitable flow rate, as you will not have high flow rates and the readings will be mostly approximate if the consumption is start/stop. Add a safety isolation shutoff ball valve next to it in case it breaks in use, as often they are only plastic. This one was mains powered, and could have easily been powered off a phone charger instead. The discussion on how to wrangle the yaml code to get the correct sensor data will be edifying.

Some places to start for option ONE:

Some light reading, and you should be confident to build your own.

2 Likes

to recognize a dependence of which we are not conscious.

That is definitely one way and it looks like a great project.
I haven’t done it yet, but my tank has a float and an indicator at the top that I could automate off of quite easily. I was thinking about adding a simple clicky switch on an esp so when it gets down to a point, I just flip a binary and it tells me time to order.

A lot of simpler devices do exactly that, having four float switches at evenly spaced heights that give an empty, quarter full, half full, three quarter full indication. Four GPIO ports and all is well.

Sorta…

The weekend anxiety kicks in when you know it is somewhere between quarter full and empty, and you hope it will last till Monday when you can get a refill.

Sure you can always have the empty switch bumped up a little way, so you have the reserve tide you over, but I recall in my younger days going on a long trip in the jalopy and having to slowly roll into the refuelling station when I ignored the red light next to my fuel guage, hoping to make it to the next city on the smell of an oily rag.

1 Like

My point is do you really care if it’s 3/4 tank (200 gallons).
You only want to know when you are down to maybe 3 weeks, around 50 gallons when it’s time to order it. And burning 2 gallons a day is a LOT, so that’s a generous estimate. Regardless the burn rate is constant, I measure the time the burner is on and I know the state of my tank anyway based on that. A switch would be nice in case I’m not watching, it could hit me over the head that I need to action.

2 Likes

I geddit.
HomeAssistant urgent alert - you have two thimblefulls of heating oil left. Do you want me to reorder for you?

1 Like

For the premade ones:

Perhaps something as discussed in the thread below? I just bought the “Smart Oil Gauge” that is referenced, and it is working well, using the multiscraper integration (I avoided node red). Not 100% local, but perhaps sometime in the future?

My tank is 275gal

https://www.reddit.com/r/homeassistant/comments/10zv5p4/oil_tank_level_wifi_sensor_ha_integration/

I had to laugh when I visited the Smart Oil web page. The family that orders together sticks together? The guy on the beach really wants to worry about snow?
I suspect those web scrape yaml examples are getting a bit long in the tooth. Time to intercept those WiFi signals, using something like Wireshark.

1 Like