Today I have a 2 combination switches and 1 virtual switch to be able to detect if our washing machine is finished.
Consumption >50 W AND VSwitch Off => VSwitch On
Consumption <5 W AND VSwitch On => VSwitch Off
When machine is finished I have a scene trigger on VSwitch off that tells us in the Sonos speakers.
Do you think it would be possible to create a PLEG device that does this using one device?[/quote]
This seems to be so simple that I wonder if I’m missing something…
Inputs, Triggers WMOff - WM Consumption < 5
Conditions WMDone - WMOff
Actions
The condition WMDone will fire (be satisfied) when WMOff becomes true (meaning it was previously false). You can add a PLEG action for this or have your scene triggered by the PLEG condition WMDone being satisfied.
You need to find something else for this PLEG instance to do otherwise it’s a waste of the 2MB memory space.
I assume there is an advanced command for Sonos to Say a string. I have not followed Sonos details.
[hr]
If you use one PLEG in place of two combination switches you will save 2MB of Vera Memory.
But as @RexBeckett has indicated … once you have a PLEG device you can put other logic in there … to save memory.
Hi, i’ve been struggeling with this relatively simple scenario for a while now.
WMNotify: WMRunning; WMStop;
Does not work at all. I can see in the logs that VMRunning is beeing activated but VMNotify never seems to be activated when consuption goes below 4W.
When doing
WMNotify: Consumption < 4
It works… but I really need it to go above a certain conusuption (>50W) to be sure the machine is really in a running state. Othervice the scene gets triggered multiple times during washing machine startup.
Could it be some PLEG problem reading the same variable and looking at a condition like this “WMRunning; WMStop”. Should I introduce the NOW notation?
I can see in the logs that VMRunning is beeing activated
What about WMStop? Does that appear in the log? How often does the consumption variable get updated? We could probably help more if you post the report from your PLEG.
Thanks guys for pushing me in the right direction. My issue is that the washer from time to time takes a break during the cycle, bringing the consumption to 4W, the same consumption it has when the cycle is done. Checking for WMDone<5 doesnt only provided false alarms.
I have tried using the NOW variable to make sure the condition above is true for at least 5 minutes, which should indicate that the cycle is actually completed. But for the life of me I cannot get it right