Trying to wrap my head around rule machine - washing machine "done" notification

@Angus_M I feel like I must just be missing something super obvious, but I don't see that. Can you show me a screenshot of where you see conditional actions?

In RM 4.0, this is how I handle Washer/Dryer notifications based on the Power usage dropping below a threshold (e.g. 3.0 Watts) for a certain period of time (e.g 32 seconds.) If the power level goes back up above the threshold within those 32 seconds, everything resets and waits for the power to drop below the threshold again.

You have to play around with the Power Threshold and the Delay Time to prevent false alarms for your particular washer and dryer.

5 Likes

@ogiewon I was trying to follow your example on RM4.0 Power level Washer and get the following error? Is there something else that I need to do?

2019-08-18 10:07:00.004 am errorjava.util.NoSuchElementException: Cannot pop() an empty List on line 5640 (delayedActs)

@leeonestop I have no idea what would cause that error. Maybe delete the rule and start over? It’s a fairly basic rule, nothing too fancy. It uses Private Boolean (for This Rule) to prevent the rule from constantly sending notifications.

I'm getting basically the same error, on a different line with the same Rule as in post 11


AND

When the washer first ended, I received 2 messages 5 seconds apart, then 1 min later got it again, then it stopped.

Any suggestions to how this can be optimized?

I actually tweaked my RM4 rule as follows to try to prevent multiple notifications.

Note the change in the ELSEIF section, where I moved the PB line to be first.

Updated version

3 Likes

I tested this by taking a bunch of screenshots whilst the meter was running.
Then wrote this one up and it worked last night. I realise all machines will have different programmed cycles/etc.

This is mine, mostly yours.
I changed the first trigger because the machine is using a small amount of energy while idle and I don't want to cut entirely the power (zooz zen15) - WAF...

I also added a way to measure the maximum power used by the wash machine, using a global variable and a connector to display it on my dashboard.

Btw, is my way to add the IF-THEN loop correct ? It works (I received my first notification after the wash was done) but your comment on this is welcome.



zooz%20washer%20Wmax%20ended

@PPz is this code working for you? I have a dryer and washer that goes through different cycle and the power is up and down and I get false readings but after looking at your rule It looks like it may stop the false readings changing the max power is that correct?

The code is working for me. I realy don't think the Wmax loop does anything on this because it records only (while washing) the max power used by my machine and nothing else.
Probably the difficulty for any rule is to define exactly the perfect trigger.

In my case, the initial rule ("power changed") is not acceptable because my Zooz monitors a very small amount of energy, so always changing.
In iddle mode, the power is all the same inferior to 2 watts, that was my first trigger to initiate the rule.
when the machine is washing, the power is always higher than 5 watts until the end.

But writing this, my wife loaded a machine and I received a notification after 5 minutes, that means I need to fine-tune this rule too (probably the delay - too short) :unamused:

Thanks for the reply. Yes I'm still refining.

Updated rule: added a 2 min delay to avoid false notification (idle while washing) and added an AND condition to avoid false max power (Zooz recorded 89866 Watts for a second !!)

@PPz Can I ask why you have two washer rule running? Are they not the same? Just Curious Thanks
Also did that delayed stop the false notifications?

I don't. I modified the app by changing the notification message (from english to french - WAF again) and playing it on a GM.
Btw, the added delay solved my problem. 2 minutes is enough in my case to avoid that a pause in the process triggered the notification.

Thanks for the reply and update.

Thanks mate that rule worked a treat!!

1 Like

Update: added a timer to know when the machine started and when it stopped.
Sometimes useful to remember if everything worked as expected...

1 Like

I've been trying to get a simplified version of this app running for me with no success. Using a zooz power switch and rule machine 4.0. What I want is when the machine is off for 5 minutes to send a notification to my phone. Wash. Machine is at about 4.5 W when switched on but not running.
Here's what I have, and apologies for not knowing how to produce the text version of these rules as you have:
Trigger: Power Lever of Zooz Power Sensor reports >=2.0.
Actions: If (Power level of Zooz Power Sensor is >=5.0 [false] Then
Delay 0:05:00,

End If

Sorry, after the 5 minute delay
Notify psh01: "Washer is Off"

Take a look at my Washing Machine notification above...