Help with project for Firewood Calculation

According to this, I cant merge the two lines created. I have to do it manually.

Nevermind, I will get over it :smiley:

Now, I want to have a trend sensor sampling the kitchen thermometer. I want to detect if the fireplace is warming the house or not. The purpose of this is to automatically turn off the “fireplace boolean”, so HA will know that the fireplace is off.
To elaborate, we usually feed some firewood before we go to bed, so the fireplace will stay on for a couple of hours. That means that the fireplace will turn off at sometime at night, so I cant really press a button in HA to change the state of the fireplace. It has to be automatically done.
So, I thought a trend sensor would do the job.
The problem is that the kitchen thermometer is having ups and downs:
20
How would I correctly configure the trend sensor? Or is maybe another way to know if the fireplace is on, or off? At this point, I would like to mention, that wiring the fireplace with temp sensors, is a no-go for now. Maybe in the future.

Sorry somehow missed your other question. I would spool all the data together until I get one line, then output with comma separated values.

As for trend, you’d want to build the sensor just like the bottom example. You need to choose a gradient that you want to use. So, how many degrees is this going to drop over an hour? Take that number divide it by 3600 (number of seconds in an hour) and use that as the gradient. Then set your samples to the number of hours you want to use *3600.

I fixed the trend, and it looks like it is working properly. Thank you for the info. It just needs some tweaking.

Now another problem I have is with the statistics sensor.

- platform: statistics
  entity_id: sensor.kitchen_temperature
  name: stat_kitchen
  max_age:
    hours: 20

The max value of the statistics sensor says it is 18.5 degrees:

While the thermometer says the max was 19.6:
20

What is wrong here?

it’s probably related to your sample size. I haven’t fully dove into that component ever, so i’d just have to consult the docs

1 Like

I am using this project for over a month now and it looks like it works fine. I am not sure if it is completed yet, but time will tel.
I have a tablet near the fireplace, where I enter the weight of the firewood, and I have this button to add to the total firewood used for the day.
The problem is that sometimes this button is pressed twice accidentally and adds more firewood than it was supposed to add. Is there any solution to that? Maybe an undo button, or something like to make sure it wont add more than once per time?
For now, I have to enter the states and edit the value manually.

Use the button-card with the confirmation option. Press once, confirm yes.

1 Like

What? I 've never seen this before! Thank you once again!
Is the confirmation option new(ish), or am I just blind?

Pretty sure it’s new. Last few versions or so.