[_CODE_] Power Event Device - PED V0.2

EOL, unsupported.

Requirement:
UPnP [tt]urn:micasaverde-com:serviceId:EnergyMetering1[/tt] device, that meters a single appliance.

Events provided:
Device is on
Device is off

Variables provided:

[ul][li][tt]DeviceState[/tt]: 0 (off), 1 (on)[/li]
[li][tt]HighWattageTimestamp[/tt]: Last time when wattage was above [tt]Threshold[/tt].[/li][/ul]

Configuration variables:

[ul][li][tt]EnergyMeteringDeviceID[/tt]: Device to monitor.[/li]
[li][tt]Threshold[/tt]: [tt]DeviceState[/tt] is 1 (on) if last sampled wattage is above [tt]Threshold[/tt], [tt]DeviceState[/tt] is 0 (off) if all sampled wattages within the last [tt]OffDelay[/tt] seconds are below [tt]Threshold[/tt].[/li]
[li][tt]SamplingInterval[/tt]: Interval in seconds between readings from device with device ID [tt]EnergyMeteringDeviceID[/tt].[/li]
[li][tt]OffDelay[/tt]: Wait [tt]OffDelay[/tt] seconds before changing [tt]DeviceState[/tt] to 0 (off).[/li][/ul]

Installation:
[tt]http://wiki.micasaverde.com/index.php/Install_LUUP_Plugins[/tt]

Example 1:
Play an announcement, when the dryer has finished.

Implementation:

[ul][li]Install PED and configure its variables.[/li]
[li]Create a new scene ‘Dryer has finished’ with event “PED - Device is on or off - Which mode: Off” and put the SAD code ([tt]http://wiki.micasaverde.com/index.php/Squeezebox#SAD_-_Squeezebox_Server_Announcement_Device[/tt]) into the Luup tab.[/li][/ul]

Example 2:
Send an email, when the dryer has finished.

Implementation:

[ul][li]Install PED and configure its variables.[/li]
[li]Install SND and configure its variables.[/li]
[li]Create a new scene ‘Dryer has finished’ with event “PED - Device is on or off - Which mode: Off” and put
[tt]luup.call_action( “urn:upnp-ap15e-com:serviceId:SND1”, “SendMail”, { subject = ‘Dryer has finished’, body = ‘Dryer has finished’ }, )[/tt]
into the Luup tab (adjust [tt][/tt] accordingly).[/li][/ul]

History:
V0.1 inital release
V0.2 support for UI5

Useful tools:
Use the dataMine or the GDL/GDP plugin to examine the power signature of your appliance and to find out which PED configuration settings fit your appliance.

Further reading:
[tt]http://www.media.mit.edu/resenv/classes/MAS961/readings/PowerSignatureAnalysis.pdf[/tt]

Download:
[tt]https://docs.google.com/open?id=0Bz4omZm4gYcsNGFlY2M4NmMtNmI2Yy00ZTYxLWI4ZGEtMTllOTMwYmVjZTgz[/tt]

I’m not finding where to download the PED plugin

Good! I did not dare to ask ;D … But seeing as I’m not alone having difficulties finding the code… :slight_smile: :slight_smile:

I am really looking forward on using this one, lots of uses!

PED V0.1 is available.

I simply love it! :slight_smile:

I have had it running since yesterday, and it is a keeper for sure. Now I’m going to use it also on heavy loads, such as electric floor heating, to save the relays by switching off when heating is in its off period.

One question; the poll time, is that the poll time at the actual energy sensing device (independent of what its poll setting is), or is it poll of some internal power variable of vera?

Cheers,
Micael

PED doesn’t poll the physical [tt]EnergyMetering[/tt] device, but reads its UPnP variable [tt]Watts[/tt] with frequency 1/[tt]SamplingInterval[/tt] Hz.

I’ve decided against [tt]luup.variable_watch[/tt]ing the variable [tt]Watts[/tt] in order to lessen the burden on Vera’s CPU (especially when using multiple instances of the PED plugin).

so this can be adjusted to not only trigger another event when the device is turned on but when the device uses a certain amount of power. For instance, when I’m setting the mode on my dryer it won’t trigger the scene unless it’s drawing enough power to turn the barrel, correct?
And using the data logging is simply to determine what level of per consumption we need to specify, only to avoid a lengthy trial and error process?

I’ve been looking for some way to turn on the ventilation fan in the laundry room only when the dryer is running. I think this is it.

Sent from my SPH-D710 using Tapatalk

Please upgrade to PED V0.2 for compatibility with UI5.

Has anyone seen an Energy monitoring device for Dryers here in the US? I really like @Ap15e’s example and want to implement it to improve WAF… ;D

Where can I download the PED v2.0 pouting for vera. I can’t find it anywhere.

Pipoa

The plug-in is not available anymore.