In the house there is a fridge, freezer and fridge freezer with smart plugs that show how much power they are using. One of my dashboards shows the power used (among other things). They all switch on and off periodically as can be seen here:

It occurred to me that if they stop switching on or off, there is a problem. If an appliance doesn’t switch on, it means that there is a problem with the power - maybe the plug has been pulled out, or it has stopped working. If however it doesn’t turn off, that indicates another problem - maybe the door has been left open. So I thought about how to detect both situations. You could just have automations that trigger when an appliance has been on (or off) for a certain time, but I decided it would be nice to see what was going on graphically. So I created some template sensors that showed the power integral:




