wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact: Send private message

Energy management variables not triggering events

Tue Nov 18, 2008 4:45 pm

I have two events set up

1) Whenever mlenergymanagement_001_kwnow is greater than 0.600
AND mllighting_002_value equal 100
Then SetVariable|energyaction~Action

2) Whenever mlenergymanagement_001_kwnow is less than 0.0600
Then SetVariable|energyaction~Lower

The first one never fires and the second one, which should fire continuously as long as the kwnow is below 0.600, may fire once but not as soon as the conditional is met. I can manually set the variables just fine. MLserver version 582(or 7) whatever the latest version is as of today.

mcascio

Tue Nov 18, 2008 6:35 pm

I would think you would want to add something that says whenever mlenergymanagement_001_kwnow changes value and is greater than 0.600

wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact: Send private message

Wed Nov 19, 2008 10:05 am

Changed to
1) Whenever mlenergymanagement_001_kwnow changes value
AND mlenergymanagement_001_kwnow is greater than or equal 0.630
Then SetVariable|energyaction~Action

2) Whenever mlenergymanagement_001_kwnow changes value
AND mlenergymanagement_001_kwnow is less than or equal 0.620
Then SetVariable|energyaction~Lower

Now both rules fire one after the other with any value change. Like it is not picking up the AND.
Deleted the second rule. The first fires constantly with any value change.

mcascio

Wed Nov 19, 2008 10:18 am

wireless,

I guess I'm not clear for sure whether or not it is all working now.

wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact: Send private message

Wed Nov 19, 2008 12:02 pm

Mario,

It's not working correctly. Instead of the rule firing only if the variable changes value AND is greater than the reference value, it fires with every value change.

User avatar
AllonisDave
Founder
Founder
Posts: 11580
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Wed Nov 19, 2008 1:01 pm

The issue what that the value you are testing is a floating point number and the rules engine was making comparisons based on integer values. Version 3.0.583 of MLServer will now make these comparison tests using real numbers. Please update to this version and let us know if the issue is resolved.

wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact: Send private message

Wed Nov 19, 2008 2:19 pm

Thanks Dave, that did it!

Return to “Automation Rules”

Who is online

Users browsing this forum: No registered users and 1 guest