I have created an energy mettering sensor plugin, mainly because I haven’t found any one doing the job…
Work only on UI5, including latest beta 1.5.408.
I have written it taking care of (my own requirements…):
[ul][li]When the switch turn on, the connected equipment generates a high power usage during a few seconds before it enter sleep mode, for example my Denon amplifier consume more than 30W during this power on phase, then goes down to around 10W. So I need to ignore this initial event.[/li]
[li]Need of a different On->Off and Off->On threshold, useful for devices which has a overlap watts usage between sleep mode and on mode.
For example my Boston amplifier report 5-8W when off, 8-12W when on.[/li]
[li]Need for fast reactivity to events (goal: a very few seconds), to do this I use luup.watch on variables “Watts” and optionnaly variable “Status”.
For example when I switch off my TV, the evening, then slowly dimming up the room lights.[/li]
[li]Need to ignore an initial startup phase.
For example my washing machine run a couple of minutes to calculate the cycle time, then enter sleep mode if a deffered finish is requested.[/li][/ul]
So the sensor has the following configuration variables:
[ul][li]EnergyMeteringDeviceID[/li]
[li]WatchSwitchOn[/li]
[li]StartupSeconds[/li]
[li]ThresholdWattsLow[/li]
[li]ThresholdWattsHigh[/li][/ul]
EnergyMeteringDeviceID is the device to monitor.
WatchSwitchOn:
[ul][li]0 don’t watch “Status” variable[/li]
[li]1 watch “Status” variable[/li][/ul]
StartupSeconds:
[ul][li]number of seconds to ignore any report of change “Watts” variable[/li]
[li]if WatchSwitchOn is 1, ignore “Watts” change after the “Status” of the EnergyMeteringDeviceID has change from 0 to 1.[/li]
[li]if WatchSwitchOn is 0, ignore “Watts” change after the first “Watts” of the EnergyMeteringDeviceID has change from a value lower or equal to ThresholdWattsLow to a value higher or equal to ThresholdWattsHigh.[/li][/ul]
ThresholdWattsLow, ThresholdWattsHigh:
[ul][li]The two Watts thresholds, Watts lower or equal than the first one then the EMSensor is not tripped. Watts higher or equal to the second one then the EMSensor is tripped.[/li][/ul]
I do it for my own purposes but if there are some interests, I will be happy to share it :).
Jean-François