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]