From 10d6e931e3bbb1f00aec5292c2295a2885a1a346 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Thu, 7 Nov 2019 15:34:17 -0800 Subject: [PATCH] Update thermostat.groovy --- official/thermostat.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/official/thermostat.groovy b/official/thermostat.groovy index 88501dd..88dd566 100644 --- a/official/thermostat.groovy +++ b/official/thermostat.groovy @@ -76,13 +76,13 @@ def updated() { } def subscribeToEvents() { - subscribe(smokeDevices, "smoke.detected", eventHandler) - subscribe(smokeDevices, "smoke.tested", eventHandler) - subscribe(smokeDevices, "carbonMonoxide.detected", eventHandler) - subscribe(carbonMonoxideDevices, "carbonMonoxide.detected", eventHandler) + subscribe(smokeDevices, "smoke.detected", eventHandler1) + subscribe(smokeDevices, "smoke.tested", eventHandler1) + subscribe(smokeDevices, "carbonMonoxide.detected", eventHandler1) + subscribe(carbonMonoxideDevices, "carbonMonoxide.detected", eventHandler1) } -def eventHandler(evt) { +def eventHandler1(evt) { log.debug "Notify got evt ${evt}" // Turn off thermostat thermostatDevices*.setThermostatMode("off") -- 2.34.1