Permalink
Browse files

updated rule syntax

  • Loading branch information...
1 parent 796a861 commit 04802763c635689d3d4100048fab390dc6059063 @bryanpaluch committed Feb 7, 2013
Showing with 11 additions and 6 deletions.
  1. +11 −6 rule.example.js
View
@@ -1,14 +1,19 @@
-
var ruleHeat = {
- ifs : [
- { attributes: [ '_object.temp', '_object.setTemp'],
- operand: '<',
+ ifs : [
+ { operands: [ '_object.temp', '_object.setTemp'],
+ test: '<',
+ },
+ { operands: [ '_object.relay', {_value: 1}],
+ test: '==',
},
],
then:
{
- _catalog : {name: 'setSensor',
- attr: [{relay1: true}]}
+ _catalog : {name: 'setTemp',
+ args: ['_object.setTemp']}
}
};
+
+
module.exports = ruleHeat;
+

0 comments on commit 0480276

Please sign in to comment.