Energy Dashboard: Add Oil-Usage in addition to Gas

Wouldnā€™t it be better to instead of adding oil, wood, pellets, heat, etc separately, to just add a generic ā€œadd energy typeā€ option where you can choose your own energy type, unit and logo?

For example, I donā€™t have gas or oil. Iā€™m connected to city heating, so hot water flows into my house into a heat exchanger that provides house heating and hot tap water. The amount of heat consumed is counted in GJ by the energy meter. So I would need an energy category ā€œheatā€ with unit ā€œGJā€.

7 Likes

First of all, the Dashboard is great !
I think it makes sense to add Oil.
For my situation, to add oil to the dashboard will be fantastic !

BR

2 Likes

@Istria1704s post would be the best solution.

1 Like

Daily consumption translated to kWh for Gas iin the energy dashboard would be awesome - anyone know how to do this from the oilfox fillLevelQuantity sensor? Should be doable with a template sensorā€¦?

For the heating system I have itā€™s using paraffin. I am monitoring the watts itā€™s drawing, so when it goes over a certain value I can tell when itā€™s ā€œfiringā€ Vs when itā€™s just on.

What I would like to do though is have a flow meter on the fuel pipe itā€™s self.

Has any one done this with esphome or would be aware of such item I could put on the fuel line to measure that flow and hook up to esphome

Iā€™ve seen a mix of ultrasonic or more mechanical based devices for measuring flow in a pipe but nothing really suited to this, eg low flow rate or suitable to be emersed in oil.

Thanks in advance folks!

Huhu
Thatā€™s not quite right. Your OilFox provider can adjust the measurement interval. Every six hours is the lowest setting. This means there are four measuring points per day.

hmā€¦ thanks :slight_smile:
This can only be set by the provider itself?
Not within the app? Or if yes - where can this be found?

I donā€™t really use any provider - I just bought them (used)ā€¦ so they do not come from any provider / supplier.

Iā€™m doing the same with an ultrasonic sensor. Would you please give more information on ā€œhow do you gather measurements throughout the day and submits the values once a dayā€??

How comes ???

How did you do that? Energy dashboard doesnā€™t have volumes as you mentioned above.
Did you create a template sensor ??? Would you please also share the yaml for this ??

Hi,

As to not go off-topic in this thread, Iā€™ve decribed my solution over here.

It would still be very nice if we were able to add oil in liters and this poll definitely has my vote!

Hello,

exactly looking for the same.
I triedsomething similar to get set up yesterday with a template and sensor.
However, the conversion to kwh looks strange to me and I am not sure if I am calulating correctly. For our oil tank, I believe we cannot install an extra distance meter. But when I can calculate manually every day by writing down burner hours and multiply with my consumption per hour (eg. 2.4 l/h) then I thought I can do that also automated in home assistant. Maybe it would be easier if there was a generic option for energy where you can pick measurment in liters. So yes I vote for this, too. First I thought I can just export values to my existing excel spreadsheet but seems that is even more complicatedā€¦ :wink:

Hi,
if you know your burner uses exactly 2.4L (equals ~24kwh) per hour itā€™s running, you might be able to install a vibration or acoustic sensor on your burner.
Thus passing the time the burner has been running to HA, multiply by 24 to get your consumption in kwh, or multiply by 2.4 to get your consumption in liters.

You will be off a little bit (because the 2.4L is probably an estimation which fluctuates). Over time the discrepancy will get bigger, but to determine your consumption it should be close enough. Just make sure you do not trust these values to determine how much oil is left in the tank though, since the error will increase over time.

Dear Assembly,

Thank you for your response and valuable information.
The problem I had from start with the energy dashboard was that I could not save anything since burner hours werenā€™t allow (sensor.vicareā€¦) then I tried the approach to create my own sensor with all of the help from different posts here. Once I had one really properly configured I was able to save the energy dashboard and then got all the options for water, gas etc. to set up a energy dashboard. So I added gas with the same sensor. I feel like I am doing something duplicate and can also see that my attempts still show up as sensors (just greyed out - need to find out how to get rid of my tests).
However, thanks for your calculation. I must have been lost somehow and thought 9,8 kWH are 1 liter - so I need to check my ā€˜calculationā€™.

Hope I get this sorted. Thanks again and most likely I will come back with another question. For now I have to go into this config jungle again :smiley:

Hello assembly,
I can see now something more reasonable.

the Sensor that works if I am not completely mistaken is:

#Customize Yaml for Oil consumption
homeassistant:
customize: !include customize.yaml

sensor:

  • platform: history_stats
    name: Oil Burner Time Today
    unique_id: oil_burner_time_today
    entity_id: binary_sensor.vicare_burner_active
    state: ā€œonā€
    type: time
    start: ā€œ{{ today_at() }}ā€
    end: ā€œ{{ now() }}ā€

  • platform: history_stats
    name: Solar Warm Water
    unique_id: solar_warm_water_today
    entity_id: binary_sensor.vicare_solar_pump_active
    state: ā€œonā€
    type: time
    start: ā€œ{{ today_at() }}ā€
    end: ā€œ{{ now() }}ā€

template:

  • sensor:
    • name: Oil Power Today
      unique_id: oil_power_today
      state: ā€œ{{ states(ā€˜sensor.oil_burner_time_todayā€™) | float(0) * 2.4 }}ā€

But why is it just not possible to get this in Liters? and add this in the energy dashboard? Just because it starts with a kwh for setup.

Would there be any conversion or something available?
I am at the same time trying grafana and influx db - however the best results imo I get from the codes I found in various posts here.

nite n8 for todayā€¦

Lets continue in the topic I started earlier for this purpose, as to not go off-topic here :grinning:.
Iā€™ll be more than happy to help and will try to answer your questions tomorrow.

ok , sorry - and thank you

Hi CChris,
thank you for this example, i will also try to get this into work.
Let me ask basics, the first with ā€œsensorā€ is in the configuration yaml part of sensor.
Ok I think is correct.
but where to put the second with the utility meter?
Also just under the sensor in config?
Thanks
oliver

Hi,
The example Iā€™ve posted is obsolete now.
The Oilfox integration does provide some sensors for the Amount of used Oil and kWh by default for a couple of weeks / months now.

With these sensors, you can also use the integrated Helpers and create the utility meters without using the yaml configuration.

1 Like

I found the kWh but would like to have in liter.
Can you advice please, i did not found liter in the original oilfox

Hi, I feel the original ask here has got lost in the various specific solutions that people have put together.

I have done one too, for Watchman sensit to get oil per day (one reading a day) and then take a scrape from an oil price site to work out how much that oil would cost at todays prices, and Iā€™ve kludged it onto the Energy dashboard. It was difficult because as the OP said, only GAS is available!

My solution for Energy dashboard for oil (using ā€˜Gasā€™)

So Iā€™m left with something that works, but its labelled GAS consumption, not Oil consumption, and the units are shown as mĀ³ because GAS is prescriptive around what is allowed, and I chose that - in fact Iā€™m measuring kWh per day.

SO CAN WE GET BACK TO THE ORIGINAL ASK - ALLOW OTHER TYPES OF FUEL THAT ARE CONFIGURABLE ALONGSIDE GAS

2 Likes

I have built a diy oil sensor with ultra sonic, however with different temperatures there was a lot of variations. Also this was to critical for me to put an electronic device on top of the oil tank.

My oil heating device is using a fan for better efficency. I have put a Shelly 1PM in the elctronic line of the heater for measuring the electronic consumption.

I know the average oil usage per hour from last year.

With ā€œMeasureItā€ I have created a sensor who calculates the working hours of the heater. I have added some template sensors to calculate the current oil tank level and consumption.

I have added a ā€œtime * oil/h * 9,8kWā€ energy sensor and have put this into the energy dashboard. Now I can see the ā€œoil usageā€ as Gas in kWh.

image

image