1 //Global variable for state[mode]
2 def state = [home:[],away:[],night:[]]
3 //Create a global logger object for methods
5 //Create a global variable for Functions in Subscribe method
6 def functionList = new ArrayList(20)
7 //Create a global variable for Objects in Subscribe method
8 def objectList = new ArrayList(20)
9 //Create a global variable for Events in Subscribe method
10 def eventList = new ArrayList(20)
11 def valueList = new ArrayList(20)
12 //Create a global variable for settings
16 //atomicState variable
17 def atomicState = [version: "1.01"]