Page 1 of 1

plugwise usage on washingmachine/create trigger

Posted: Mon Apr 04, 2016 2:05 pm
by jeroentje
Hi,
I am using a plugwise device inbetween the power socket of my washing machine.
What I was trying to achieve, was to see when my washing machine was done doing its laundry program.
I managed to create a trigger to alert me in case the power usage dropped below a value, but it seems that power usage will drop also during the course of the program. This results in 4 or 5 alerts during the runtime of the washing machine.
Power usage when machine is off is 0watt, and when a timer is set it will use a few watts. I thought best to do was to set a variable in case the power usage went to > 0 watt, and then polling to see if the powerusage went to 0 again if the specific variable was set.
Does anyone have a example of such a trigger/event for domotiga?
So far I am unable to get to a working setup.

Thanks!
Jeroen

Re: plugwise usage on washingmachine/create trigger

Posted: Mon Apr 04, 2016 6:42 pm
by Phaeton
I have homeseer but use an approach you might use. Whenever my machines uses less than x watt I set a timer. The timer stops and resets whenever the watt becomes more than x. When the timer reaches y minutes it sends a push message.

It cost me three rounds to determine the closest y possible. But, this for me was the best approach since my washing machine has different washing routines depending on load, degrees etc.

With the timer solution it always works out fine with a minimal delay

Re: plugwise usage on washingmachine/create trigger

Posted: Tue Apr 05, 2016 10:06 am
by olof
Phaeton wrote:I have homeseer but use an approach you might use. Whenever my machines uses less than x watt I set a timer. The timer stops and resets whenever the watt becomes more than x. When the timer reaches y minutes it sends a push message.

It cost me three rounds to determine the closest y possible. But, this for me was the best approach since my washing machine has different washing routines depending on load, degrees etc.

With the timer solution it always works out fine with a minimal delay
Hi Harry,

Could I persuade you to share more details on how you set the events in Homeseer? It looks like a very practical way of solving this pesky problem of monitoring the washing machine.

thanks in advance
Olof

Re: plugwise usage on washingmachine/create trigger

Posted: Tue Apr 05, 2016 11:37 am
by raymonvdm
I have created a couple of events

Waschmachine is going to work

IF Zolder Wasmachine Notify changes and becomes ON
Send an email with subject [Wasmachine] Starting

Wascmachine is klaar notify

IF The event will automatically trigger every 2m, 0s
AND IF Zolder Wasmachine Status has been Off for at least 30m, 0s
AND IF Zolder Wasmachine Notify has a value equal to On
AND IF Zolder Wasmachine has a value equal to 300
Then Send an Email to raymon@
with the subject [Wasmachine] Ik ben klaar

Message: Het lijkt erop dat de wasmachine klaar is en nog niet LEEG!!
Then Set Device Zolder Wasmachine Notify to Off

Wasmachine is not running

IF Zolder Wasmachine was set and has a value that is less than 400
Then Set Device Zolder Wasmachine Status to Off

Wasmachine is running

IF Zolder Wasmachine was set and has a value that is greater than 400
Then Set Device Zolder Wasmachine Status to On
Then Set Device Zolder Wasmachine Notify to On


Device "Zolder Wasmachine" is the actual plugwise plug
Device "Zolder Wasmachine notify" is a vitual device to be able to notify
Device "Zolder wasmachine status" is a virtual device to use in the event for a status

Re: plugwise usage on washingmachine/create trigger

Posted: Tue Apr 05, 2016 3:16 pm
by jeroentje
Hi Raymond,

Thanks for the explanation. Sounds like a good approach.
In Domotiga however, I am unable to find how to set a delay and recheck if a device is still using > x watts.
I create a event with a trigger, possibly conditions and actions.
I was thinking of using the lastchanged value, but as the sticks update this value will be updated from time to time..

Re: plugwise usage on washingmachine/create trigger

Posted: Tue Apr 05, 2016 6:31 pm
by olof
Hi Raymond,

Thanks!
Olof

Re: plugwise usage on washingmachine/create trigger

Posted: Tue Apr 05, 2016 9:43 pm
by raymonvdm
jeroentje wrote:Hi Raymond,

Thanks for the explanation. Sounds like a good approach.
In Domotiga however, I am unable to find how to set a delay and recheck if a device is still using > x watts.
I create a event with a trigger, possibly conditions and actions.
I was thinking of using the lastchanged value, but as the sticks update this value will be updated from time to time..

Code: Select all


Time Now triggers
Time Now triggers utilize cron, and entries therefore comply with crontab entries

Image

For a trigger that happens every 5 minutes:

Code: Select all


*/5 * * * *

*/5 means the minute count needs to be divisible by 5


Re: plugwise usage on washingmachine/create trigger

Posted: Thu Apr 07, 2016 2:17 pm
by jeroentje
Thanks Raymond! will try that out!

Re: plugwise usage on washingmachine/create trigger

Posted: Mon Apr 18, 2016 3:32 pm
by jeroentje
Not working yet. I tried setting it up, but don't seem to be able to fully understand the way how to get it working.
I upgraded my domotiga, since I was running an old version without the time.now trigger. I have that now, but don't really see where to start.
If you have some time left, maybe you can explain some more on how to set it up.

Re: plugwise usage on washingmachine/create trigger

Posted: Fri Apr 22, 2016 10:45 am
by jeroentje
Let me explain what I have now.

I created a event 'washing in use"
trigger : if device status of wasmachine value 2 is higher than 20watt
action : set value 4 of device wasmachine to ON

second event : "check washing done"
trigger : if value 4 of device wasmachine is ON AND power is lower than 4 watts
action : notify me

This however notifies me several time during a cycle since the machine's power will go low a few times.

What am i missing? I know how to use cron, but don't really get the event working that checks if value power usage stays low.

Lines from my database
events table :
*************************** 8. row ***************************
id: 9
enabled: -1
name: 2wassen check uit
log: 0
firstrun: 2016-03-25 21:52:46
lastrun: 2016-04-14 21:45:58
comments:
trigger_id: 8
condition1_id: 4
operand:
condition2_id: 0
rerunenabled: -1
rerunvalue: 10
reruntype: gb.Minute
category_id: 0
*************************** 9. row ***************************
id: 10
enabled: 0
name: wasmachine niet in gebruik
log: 0
firstrun: NULL
lastrun: NULL
comments:
trigger_id: 9
condition1_id: 1
operand:
condition2_id: 0
rerunenabled: 0
rerunvalue: 3
reruntype: gb.Minute
category_id: 0

trigger table :

| 8 | als we aan het wassen zijn | 3 | | 144 | 4 | = | on | NULL |
| 9 | was stroom lager 30 | 3 | stroomgebruik hoger dan 30w | 144 | 2 | < | 40 | NULL |

actions :

| 18 | wasmachine staat aan naar status | 1 | | 144 | 4 | on | NULL | NULL |
| 19 | Was klaar | 5 | | echo "De was is klaar" | notifyscript | NULL | NULL | NULL | N



Thanks!