Update influxdb-logger.groovy
[smartapps.git] / third-party / influxdb-logger.groovy
index 224296499008f09aaf5469396912acdebe00f6b1..2d6278d19199ac6ffbf53446e4003ddde9f9ff3e 100755 (executable)
@@ -693,11 +693,11 @@ private manageSubscriptions() {
     // Subscribe to mode events:
     if (prefLogModeEvents) subscribe(location, "mode", handleModeEvent)
     
-    subscribe(accelerometers, "accelerometers", handleEvent)
-    subscribe(alarms, "alarms", handleEvent)
-    subscribe(batteries, "batteries", handleEvent)
-    subscribe(beacons, "beacons", handleEvent)
-    subscribe(buttons, "buttons", handleEvent)
+    subscribe(accelerometers, "acceleration", 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,12 +743,8 @@ 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(touchs, "touched", handleEvent)
     subscribe(uvs, "ultravioletIndex", handleEvent)
     subscribe(valves, "contact", handleEvent)
     subscribe(volts, "voltage", handleEvent)