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
7 //Create a global variable for Objects in Subscribe method
9 //Create a global variable for Events in Subscribe method
11 //Create a global variable for settings
15 //atomicState variable
16 def atomicState = [version: "1.01"]