Update influxdb-logger.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 12 Aug 2019 20:38:19 +0000 (13:38 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 12 Aug 2019 20:38:19 +0000 (13:38 -0700)
third-party/influxdb-logger.groovy

index e56fbcc..576f21e 100755 (executable)
@@ -694,10 +694,10 @@ private manageSubscriptions() {
     if (prefLogModeEvents) subscribe(location, "mode", handleModeEvent)
     
     subscribe(accelerometers, "acceleration", handleEvent)
-    subscribe(alarms, "alarms", handleEvent)
-    subscribe(batteries, "batteries", handleEvent)
-    subscribe(beacons, "beacons", handleEvent)
-    subscribe(buttons, "buttons", handleEvent)
+    subscribe(alarms, "alarm", handleEvent)
+    subscribe(batteries, "battery", handleEvent)
+    subscribe(beacons, "presence", handleEvent)
+    subscribe(buttons, "button", handleEvent)
     subscribe(cos, "carbonMonoxide", handleEvent)
     subscribe(cos, "carbonDioxide", handleEvent)
     subscribe(colors, "hue", handleEvent)
@@ -705,7 +705,7 @@ private manageSubscriptions() {
     subscribe(colors, "color", handleEvent)
     subscribe(consumables, "consumableStatus", handleEvent)
     subscribe(contacts, "contact", handleEvent)
-    subscribe(doorsControllers, "door", handleEvent)
+    subscribe(doorsControllers, "doorState", handleEvent)
     subscribe(energyMeters, "energy", handleEvent)
     subscribe(humidities, "humidity", handleEvent)
     subscribe(illuminances, "illuminance", handleEvent)
@@ -743,10 +743,6 @@ private manageSubscriptions() {
     subscribe(thermostats, "thermostatMode", handleEvent)
     subscribe(thermostats, "thermostatFanMode", handleEvent)
     subscribe(thermostats, "thermostatOperatingState", handleEvent)
-    subscribe(thermostats, "thermostatSetpointMode", handleEvent)
-    subscribe(thermostats, "scheduledSetpoint", handleEvent)
-    subscribe(thermostats, "optimisation", handleEvent)
-    subscribe(thermostats, "windowFunction", handleEvent)
     subscribe(threeAxis, "threeAxis", handleEvent)
     subscribe(touchs, "touch", handleEvent)
     subscribe(uvs, "ultravioletIndex", handleEvent)