+ this.timers = new SimulatedTimer()
+ this.deviceNumbers = deviceNumbers
+ this.switches = []
+
+ if (init) {
+ this.switchState = "off"
+ this.currentSwitch = "off"
+ this.switchLatestValue = "off"
+ this.currentLevel = 50
+ } else {
+ this.switchState = "on"
+ this.currentSwitch = "on"
+ this.switchLatestValue = "on"
+ this.currentLevel = 60
+ }
+ switches.add(new Switch(sendEvent, id, label, displayName, this.switchState, this.currentSwitch, this.currentLevel, this.switchLatestValue))
+ }