Node red nodes to integrate rules into your flow
npm install node-red-contrib-noolsMessage and identified by the msg.topic of the incoming node-RED message. If a message already exists with the same topic it will be updated. New messages will be asserted. If all conditions of a rule are evaluated the rule will be fired. The __fire__ node outputs the rule name into your node-RED flow. The message object provides different functions and properties. There is also a Clock class which is available.You can use the publish({topic: "sometopic", payload: "somepayload"}) to publish messages via the __fire__ node. The __topic__ property of the node operates as a filter.
Message.payload or Message.pMessage.topic or Message.tMessage.changedtrue if the msg.payload changedMessage.currentChangeMessage.lastChangeMessage.changedFromTo(from,to)true if the msg.payload changed from from to toMessage.changedTo(to)true if the msg.payload changed to to from anyMessage.changedFrom(from)true if the msg.payload changed from from to anyClock.getHours()Clock.getMinutes()Clock.hoursIsBetween(h1, h2)``bash`
npm install node-red-contrib-nools
Or if you have installed Node-RED globally use:
`bash`
npm install -g node-red-contrib-nools
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature`Inspired by __Robert Hekkers__:
http://blog.hekkers.net/2014/06/30/making-a-scene/