Research Article
Design of a Secure Wireless Home Automation System with an Open Home Automation Bus (OpenHAB 2) Framework
Code Listing 3: Sample Rules configuration.
//This is the Rules file | rule “MasterBedroom_Light” | when | Item MasterBedroom_Light changed | then | sendNotification(“[email protected]“,"Master Bedroom Light turned “+MasterBedroom_Light.state) | end | rule “LivingDining_Light” | when | Item LivingDining_Light changed | then | sendNotification(“[email protected]“,"Living & Dining Light turned “+LivingDining_Light.state) | end |
|
Code Listing 3: Sample Rules configuration. |