Update influxdb-logger.groovy
[smartapps.git] / third-party / influxdb-logger.groovy
index e56fbccd75cf908893f18c1addb8d3f9c84081ee..576f21e4a8e4335312bdb6a1191455f47a68d9a7 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)