From b43e637549658d0f81b2a44e2d761a2541adfceb Mon Sep 17 00:00:00 2001 From: greens Date: Thu, 26 Apr 2018 16:39:34 -0700 Subject: [PATCH] DVCSMP-2060 Remove displayed: false from battery events (#3039) Old Z-Wave DTHs were forcing their battery events not to be displayed. There's not really a good reason to do this anymore. --- .../smartthings/aeon-multisensor.src/aeon-multisensor.groovy | 1 - .../everspring-flood-sensor.src/everspring-flood-sensor.groovy | 1 - .../fibaro-flood-sensor.src/fibaro-flood-sensor.groovy | 3 +-- .../fibaro-motion-sensor.src/fibaro-motion-sensor.groovy | 1 - .../smartsense-moisture.src/smartsense-moisture.groovy | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy b/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy index 095f632996e..2b797eafe3f 100644 --- a/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy +++ b/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy @@ -155,7 +155,6 @@ def zwaveEvent(physicalgraph.zwave.commands.batteryv1.BatteryReport cmd) { map.name = "battery" map.value = cmd.batteryLevel > 0 ? cmd.batteryLevel.toString() : 1 map.unit = "%" - map.displayed = false map } diff --git a/devicetypes/smartthings/everspring-flood-sensor.src/everspring-flood-sensor.groovy b/devicetypes/smartthings/everspring-flood-sensor.src/everspring-flood-sensor.groovy index e5ee3cadb66..33dfb625922 100644 --- a/devicetypes/smartthings/everspring-flood-sensor.src/everspring-flood-sensor.groovy +++ b/devicetypes/smartthings/everspring-flood-sensor.src/everspring-flood-sensor.groovy @@ -127,7 +127,6 @@ def zwaveEvent(physicalgraph.zwave.commands.batteryv1.BatteryReport cmd) { map.name = "battery" map.value = cmd.batteryLevel > 0 ? cmd.batteryLevel.toString() : 1 map.unit = "%" - map.displayed = false } [createEvent(map), response(zwave.wakeUpV1.wakeUpNoMoreInformation())] } diff --git a/devicetypes/smartthings/fibaro-flood-sensor.src/fibaro-flood-sensor.groovy b/devicetypes/smartthings/fibaro-flood-sensor.src/fibaro-flood-sensor.groovy index 94f1fc753c7..80e91600400 100644 --- a/devicetypes/smartthings/fibaro-flood-sensor.src/fibaro-flood-sensor.groovy +++ b/devicetypes/smartthings/fibaro-flood-sensor.src/fibaro-flood-sensor.groovy @@ -40,7 +40,7 @@ metadata { capability "Configuration" capability "Battery" capability "Health Check" - capability "Sensor" + capability "Sensor" command "resetParams2StDefaults" command "listCurrentParams" @@ -173,7 +173,6 @@ def zwaveEvent(physicalgraph.zwave.commands.batteryv1.BatteryReport cmd) { map.name = "battery" map.value = cmd.batteryLevel > 0 ? cmd.batteryLevel.toString() : 1 map.unit = "%" - map.displayed = false createEvent(map) } diff --git a/devicetypes/smartthings/fibaro-motion-sensor.src/fibaro-motion-sensor.groovy b/devicetypes/smartthings/fibaro-motion-sensor.src/fibaro-motion-sensor.groovy index dbf6c46856b..248aa5268ee 100644 --- a/devicetypes/smartthings/fibaro-motion-sensor.src/fibaro-motion-sensor.groovy +++ b/devicetypes/smartthings/fibaro-motion-sensor.src/fibaro-motion-sensor.groovy @@ -260,7 +260,6 @@ log.debug cmd map.name = "battery" map.value = cmd.batteryLevel > 0 ? cmd.batteryLevel.toString() : 1 map.unit = "%" - map.displayed = false map } diff --git a/devicetypes/smartthings/smartsense-moisture.src/smartsense-moisture.groovy b/devicetypes/smartthings/smartsense-moisture.src/smartsense-moisture.groovy index 4ab4484e005..dbaacc74bbd 100644 --- a/devicetypes/smartthings/smartsense-moisture.src/smartsense-moisture.groovy +++ b/devicetypes/smartthings/smartsense-moisture.src/smartsense-moisture.groovy @@ -126,7 +126,6 @@ def zwaveEvent(physicalgraph.zwave.commands.batteryv1.BatteryReport cmd) { map.name = "battery" map.value = cmd.batteryLevel > 0 ? cmd.batteryLevel.toString() : 1 map.unit = "%" - map.displayed = false } map }