After trigger, wait until condition true for 5 minutes


#1

1) Give a description of the problem
I am having trouble with the design approach for a piston to let me know when the washing machine has completed it’s cycle. The logic I am trying to implement is as follows:

If
washing machine power goes above 200W (trigger = machine has started)
Then
wait until washing machine power stays 0W for 3 minutes (how?)
send notification

2) What is the expected behavior?
I’d like to get notification when the washing machine finishes it’s cycle. I am defining “finishes it’s cycle” to mean stays at 0 watts for X minutes after first hitting 200 watts.

3) What is happening/not happening?
I haven’t gotten far enough to proceed to an implementation that I think will work. I start with a trigger for “power goes above 200W” but am lost how to approach “and wait until power stays 0 for 3 minutes”.

Thanks for any help,

Todd


#2

This is what I’ve been using for a while… this structure anyway. You can modify it fit your application.


#3

Here’s mine that has been working for a while.

I have another piston that resets the variables


#4

Perfecto! Thanks!


#5

Thanks! Tried @eibyer’s solution and it worked great.

EDIT: Oops, I spoke too soon. I’m getting the “Laundry is done” notification every 3 minutes now. I can see a differences in what I have vs eibyer – my first condition doesn’t have the lightening bolt (condition isn’t subscribed to events). Will try to fix later and report back. Will also look at Eric’s solution.

Thanks again.


#6

no worries more options are better…


#7

note that all washing machines will give different wattage readings ( as will smart switches) may need to tweak


#8

I haven’t read the whole thing, so if I am saying something stupid here, my appoligies:)
I just saw you said
my first condition doesn’t have the lightening bolt (condition isn’t subscribed to events)
you might want to try RAISES to OR ABOVE to 50w (if you want to use that as a trigger)


#9

Thanks @ike2018. It’s strange - I tried that and didn’t get the lightening bolt, but when I imported from @eibyer it worked. I have screen shots of both to prove (to myself) that I wasn’t going crazy.

Going to try again tonight with the change.

My wife is extremely happy about my sudden interest in laundry!


#10

:joy::joy::joy::joy:

What was that saying again…oh yes…

"Working smarthome…Happy wife"