I have created a template sensor that represents a dishwasher. I’m basing it on checking the power draw and turning the template sensor on or off based on that. However part of the cycle includes a dry where the power goes low for 10 minutes and then fires up again. The result of this is that automations are falsely registering a second turn on. I’d like it to be smart and only “turn off” of power is low for greater than 10 minutes.
What is the best way to set this up? Open to any idea on how to solve this, programming or otherwise.
@m0wlheld The issue is that this happens twice. I’d like to catch it immediately after the second draw. Would not this solution also trigger on restart of HA?
I just realised I have the variable component installed. I can track the power draw so that real off is the second drop, when the variable is 2. This will also make for simple automations too by using a condition check on the variable.
Appreciate the different approaches from @m0wlheld and @eifinger, there is more than one way to do things with HA.