Hello,
I have a gas water heater and I wanna keep track of it (when it turns on) and how long it stays on.
I tried adding a vibration sensor but no luck,
Now i added a temperature sensor inside on the exaust. It was working like a charm until summer came.
I was using it to consider it on when it was above 37c. But I live in Rio de Janeiro and on summer we get mid 40´s (I forgot about that when I made the automation).
So here is my idea, I got a sonoff temperature sensor (sensor.water_heater_temperature) and I wanna compare the “update before last” temperature vs its temperature now (last update). And if the difference is grater than 10%, set it as on.
Is it possible? i can’t find where to get the update before last temperature.
Thanks