trying to get my head around it...

Hello, i am a new vera user, I have read through the pleg documentation, and looked at the examples and still i struggle with this, i want to know i am doing these things right before i pay for the pleg license.
i have a 3 in 1 sensor and a power meter that i want vera to notify me if the sensor hasn’t tripped in the last half hour and the power is above 400 watts, so i know if the AV equipment is on and no one is in the room.
but it doesn’t work, it sends me notifications every few seconds, what have i done wrong ?

thanks for looking and helping if you can.

[code]Triggers

Name Description State Last True Last False
tEnergyIsAbove400Watts YouLess Energymeter: Energy usage goes above 400 Watts true 2015-02-04 20:49:35.155 2015-02-04 16:50:01.136
tSensorDetect Whenever 3 in 1 sensor stops detecting motion whether is armed or disarmed true 2015-02-04 20:48:49.638 2015-02-04 20:48:19.288

Modes

Mode Name State Last True Last False
Home mHome true 2015-02-04 16:37:07.108 0
Away mAway false 2015-02-04 16:07:22.115 2015-02-04 16:37:07.105
Night mNight false 0 0
Vacation mVacation false 0 0

Schedules

Name On Type On Time On Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last On Last Off
sAfter30Minutes Interval 00:30:00 None Interval 00:30:05 None true 2015-02-04 20:30:00.135 0

Device Properties

Name Device Name Device Variable Value Last Change Previous Change
pSensorTripped 3 in 1 sensor Tripped 0 2015-02-04 20:48:49.748 2015-02-04 20:48:19.310

Conditions

Name Repeat Expression State Last True Last False
cNoOneInLivingRoom No tSensorDetect and tEnergyIsAbove400Watts and sAfter30Minutes and pSensorTripped = 0 and mHome true 2015-02-04 20:49:35.156 2015-02-04 20:48:49.125

Notifications
Name Description Users Last Sent
TV On TV is on has satisfied condition: cNoOneInLivingRoom deejc 2015-02-04 20:49:35.156[/code]

Your Schedule sAfter30Minutes is probably the cause. It is set to turn on every 30 minutes but turn off 30 minutes and 5 seconds later. Change the Off Interval to 00:00:05 so that it turns off 5 seconds after it turns on.

It looks as though tSensorDetect and pSensorTripped are the same thing. You would only need one of these, I think.

I don’t know if your Condition really meets your goal. It will send you a notification every 30 minutes if, at that moment, the power is above 400 W and there is no current motion trip. If you want to ensure that there has been no motion for 30 minutes, you may not need the Schedule. Something more like:

cNoOneInLivingRoom tSensorDetect and tEnergyIsAbove400Watts and mHome and (tSensorDetect; Now > 30:00)

i will try it, the condition looks simplified, thanks