how to write automation
I want to count the number of times the boiler was heated based on the temperature of the tanks - I have created a counter
I have a temperature sensor that goes up to 85° during heating, (depending on the consumption of the house it then oscillates between 77 and 85 degrees) When it stops heating, the temperature gradually decreases as the tank cools down.
the delay there is to bridge the oscillation time until the temperature starts to drop. Unfortunately on reboot HA turns on the trigger and adds another one.
How to do such automation in HA?
the first solution after a forced restart added up on the counter
the second solution with the helper and history stats doesn’t work for me either, now I’m heating and the history stats sensor is already 2
this is the history of the sensor, usually the temperature exceeds 80°C but maybe 85°C is not always reached, it happens at different times, sometimes the tanks are heated at noon, other times they are added to the boiler in the evening and the tanks are not heated until after midnight. Usually the tanks cool down before flooding again, but sometimes they flood the very next day when they are still 60°C (this is a 2000l tank, the sensor is located at the top)