Research Article

Design of a Secure Wireless Home Automation System with an Open Home Automation Bus (OpenHAB 2) Framework

Code Listing 1: Sample Items configuration.

//This is the Items file
Group Home “Secure Home” <house>
Group MasterBedroom “Master Bedroom” < bedroom_red> (Home)
Group LivingDining “Living & Dining Room” <sofa> (Home)
Group Kitchen “Kitchen” <kitchen> (Home)
Group KidsRoom “Kids Room” < girl_3 > (Home)
Group FrontYard “Front Yard” <lawnmower> (Home)
Group Bathroom “Bathroom” <bath> (Home)
Group Toilet “Toilet” <toilet> (Home)
Group Corridor “Corridor” <corridor> (Home)
Group Garage “Garage” <garage> (Home)
DateTime Date “Date [%1$tA, %1$td.%1$tm.%1$tY]” {channel = “ntp:ntp:demo:dateTime”}
DateTime Time “Time [%1$tH:%1$tM]” {channel = “ntp:ntp:demo:dateTime”}
Switch MasterBedroom_Light “Light” <light> (MasterBedroom, gLight) [“Lighting”] {mqtt = “>[home_broker:master/light/1:command::default],<[home_broker:master/light/1:state:default]”}
Code Listing 1: Sample Items configuration.