plugwise usage on washingmachine/create trigger

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

plugwise usage on washingmachine/create trigger

Postby jeroentje » Mon Apr 04, 2016 1:05 pm

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
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: plugwise usage on washingmachine/create trigger

Postby Phaeton » Mon Apr 04, 2016 5:42 pm

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
groeten,
Harry
User avatar
Phaeton
Advanced Member
Advanced Member
 
Posts: 568
Joined: May 2010
Location: Wassenaar

Re: plugwise usage on washingmachine/create trigger

Postby olof » Tue Apr 05, 2016 9:06 am

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
olof
Member
Member
 
Posts: 281
Joined: August 2010
Location: Netherlands

Re: plugwise usage on washingmachine/create trigger

Postby raymonvdm » Tue Apr 05, 2016 10:37 am

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
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1145
Joined: December 2011

Re: plugwise usage on washingmachine/create trigger

Postby jeroentje » Tue Apr 05, 2016 2:16 pm

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..
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: plugwise usage on washingmachine/create trigger

Postby olof » Tue Apr 05, 2016 5:31 pm

Hi Raymond,

Thanks!
Olof
olof
Member
Member
 
Posts: 281
Joined: August 2010
Location: Netherlands

Re: plugwise usage on washingmachine/create trigger

Postby raymonvdm » Tue Apr 05, 2016 8:43 pm

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

Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1145
Joined: December 2011

Re: plugwise usage on washingmachine/create trigger

Postby jeroentje » Thu Apr 07, 2016 1:17 pm

Thanks Raymond! will try that out!
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: plugwise usage on washingmachine/create trigger

Postby jeroentje » Mon Apr 18, 2016 2:32 pm

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.
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: plugwise usage on washingmachine/create trigger

Postby jeroentje » Fri Apr 22, 2016 9:45 am

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!
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012


Return to DomotiGa Forum

Who is online

Users browsing this forum: No registered users and 1 guest