This custom template above creates a sensor that returns true as soon as the power from my washing machine goes under 3 W witch indicates that the laundry is done.
I would like to extend the template so the condition is true after 60 seconds.
Some times the washing machine goes under the threshold for a minute or so witch gives false positives.
Any suggestions are welcome since I cannot find this info in the jinja2 docs.
I use something simliar for motion sensors in my house, where I want something to happen, but only if the sensor has been off for a full minute. I then use the delayed sensor in my automations.