I’m prettynew with vera control, and I have a question that I hope might not be so complicated to solve.
I have an induction stove at home.
Since I installed vera, I noticed it consumes about 80W just by being iddle. Here the graph (vitro3).
So I installed a contactor controlled by vera so be able to shut it off when not in use.
The problem is sometimes we forget to turn it off, and I’d like to make it automatic.
As you can see on the other graph (bitro3b) the stove at its minimum power setting it’s pulsating and does not draw a contant amount of W, so I can’t just shut it off when power is below 80W for example.
The question is: Is there an easy way to know the average W consumption in the past lest’s say 5 minutes?
That way I could shout it off if below 100W for example.
I suspect that you could also use PLEG with the power level as an input device property to get it done.
Edit: 80 watts seems very high for an idled appliance. I would verify with the manufacturer if 80 watts at idle is actually normal.
However, what I really suspect is that the power measurement method is inaccurate. See this article about how some meters do not accurately account for power factor(PF) and give erroneous measurements on things like induction hobs(stoves).
Even with new computer controlled appliances, I don’t think that they should draw more than a few watts(1-10) when idle.
I do not know where you get your power from … But I assume it’s available in some device property.
You can do this in the following manner with PLEG.
Create a sampling interval to sample the power say 30 seconds. In PLEG create an Input Schedule … call it Sample with a start type of Interval and set the interval to 30.
Create an Input device Property called Power that is bound to the Vera Device Property that is monitoring your oven.
Now we build conditions that perform what is called an exponential filter, or weighted average. The bold part is the condition name:
Add any actions you want to the condition AutoOff
[hr]
Change the value of .5 (know as the time constant) to a smaller value to be a quick average and a larger value (but less than 1) to be a slower average.
[hr]
In the above example, if the expressions are triggered by something other than the Sample timer(i.e. the Power value changes), the time constant is set at 1 and the FilteredPower remains unchanged.
[quote=“RichardTSchaefer, post:3, topic:178023”]Create a sampling interval to sample the power say 30 seconds. In PLEG create an Input Schedule … call it Sample with a start type of Interval and set the interval to 30.
Create an Input device Property called Power that is bound to the Vera Device Property that is monitoring your oven.
Now we build conditions that perform what is called an exponential filter, or weighted average. The bold part is the condition name:[/quote]
Wow, Richard. It looks simple due to the brevity, but how does this work? I can’t wrap my mind around this.
What? FilteredPower is null on first pass, no? So if Power == 80, FilterdPower == (null * .5) + ((1 - .5) * 80) Therefore FilteredPower == what 40?
[b]AutoOff[/b] FilteredPower < 80
QED?
Would it not be clearer or not work to use a progression? AutoOff (Power > 80); (Power < 81); NOW > 5:00
Edit: I see, his power reading is pulsing. Hence the complex sampling. I still don’t fully understand your PLEG recipe. I’m also even more convinced that his power consumption reading is inaccurate.
I agree with you about not being true measurement. I use an Aeon clamp conected to vera, but I made some tests with with a probe plugged directly (in another house not mine) and it seams that the aeon estimates a power factor of 0.85 to be more acurate. Never the less, it’s not allowed for an apliance to have a much lower power factor (at least here in Spain) so I guess maybe is not 80W but if it is 40 or 50 is still too much to waste. Also when working at max, the reported W is pretty much what the manufacturer says.
This has 10 years or so, when all this green saving thinking was still not in place.
Even if it is as the article says, 12% is still too much.
Anyway, I’ll try Richard’s approach and see how it goes… the problem is that this stove, at lower settings, power is not continuous. It works kind of pulsating on-off (see the graph).
Program Logic Event Generator
Device ID: 422013-11-30 17:36:17.126 PLC Version: 5.4
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last Schedule
sample Interval 0:0:30 None None None false 2013-11-30 16:35:34.100
Device Properties
Name Device Name Device Variable Last Change Value
power Power Meter (Vitrocer?mica) Watts 2013-11-30 16:35:48.484 78
Conditions
Name Expression Last True State
TimeConstant Sample ? .5 : 1 2013-11-30 16:14:18.310 null
FilteredPower (FilteredPower * TimeConstant) + ((1 - TimeConstant) * Power) 0 null
AutoOff FilteredPower < 80 2013-11-30 16:14:18.316 null
Actions
Actions for Condition: AutoOff
Immediate
Device Action Arguments
Push Notification SendPushOverNotification Title=VITRO Message=encendida sin uso? Priority= URL= URLTitle= Sound= DeviceName=
Leave it to me to find my own bugs … Change the .5 to 0.5 (it does not like a nunber without a leading digit).
I tested this by binding my input to the LoadLevel Status of a dimmer (That’s the setting and it’s between 0 and 100. Then I watched how fast the Filtered value changed after I changed the dimmer setting.
For troubleshooting purposes, consider adding a new condition as below. Also keep your original condition FilteredPower. Save PLEG and let it run. See if cFilteredPower is also null or has a value.
How heavy is this kind of sampling/calculation on the vera processor?
Is it worth to bypass the PLEG when not needed?
This eats up a few ms of CPU every 30 seconds ... or when the power changes.
Probably equivalent to the overhead the Plugin that is reading the power in the first place.
Just by turning on the system, triggers almost instantly…
I created a scene to delay arming PLEG for a minute or so, and disarming when turning off.
Is there a way to do this inside PLEG without new scenes?
Also I’d like to know if it’d be possible to reset AutoOff to false before/when arming PLEG.
Do the following … and it will only trigger on the falling side:
BelowSetPoint Filtered < 80 AboveSetPoint Not BelowSetPoint AboveLowSetPoint power > 50 AutoOff BelowSetPoint AND AboveLowSetPoint AND (AboveLowSetPoint; AboveSetPoint; BelowSetPoint)
This breaks the condition down into parts … The reason is to get a time stamp for the different events. The last part (AboveLowSetPoint; AboveSetPoint; BelowSetPoint) is a sequence expression and is true when the time stamps are in the specified order. In English this means that the AutoOff will trigger when the filtered power is below 80 AND the instantaneous power is above 50, but only if the AveragePower was above 80 in the first place.