def eventHandler1(evt) {
log.debug "Notify got evt ${evt}"
// Turn off thermostat
- thermostatDevices*.setThermostatMode("off")
+ thermostatDevices.setThermostatMode("off")
if (frequency) {
def lastTime = state[evt.deviceId]
if (lastTime == null || now() - lastTime >= frequency * 60000) {