diff --git a/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy b/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy index 23c4b04..48b3945 100644 --- a/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy +++ b/devicetypes/smartthings/smartsense-motion-temp-sensor.src/smartsense-motion-temp-sensor.groovy @@ -231,7 +231,7 @@ private Map getBatteryResult(rawValue) { def volts = rawValue / 10 def descriptionText - if (rawValue == 0) {} + if (rawValue == 0 || rawValue == 255) {} else { if (volts > 3.5) { result.descriptionText = "${linkText} battery has too much power (${volts} volts)." diff --git a/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy b/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy index bcec255..1e0daf6 100644 --- a/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy +++ b/devicetypes/smartthings/smartsense-open-closed-accelerometer-sensor.src/smartsense-open-closed-accelerometer-sensor.groovy @@ -225,7 +225,8 @@ def getTemperature(value) { def volts = rawValue / 10 def descriptionText - if (volts > 3.5) { + if (rawValue == 0 || rawValue == 255) {} + else if (volts > 3.5) { result.descriptionText = "${linkText} battery has too much power (${volts} volts)." } else { diff --git a/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy b/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy index 8de222d..e879148 100644 --- a/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy +++ b/devicetypes/smartthings/smartsense-open-closed-sensor.src/smartsense-open-closed-sensor.groovy @@ -220,7 +220,8 @@ private Map getBatteryResult(rawValue) { def volts = rawValue / 10 def descriptionText - if (volts > 3.5) { + if (rawValue == 0 || rawValue == 255) {} + else if (volts > 3.5) { result.descriptionText = "${linkText} battery has too much power (${volts} volts)." } else { diff --git a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy index 26d0646..146df12 100644 --- a/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy +++ b/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy @@ -196,7 +196,8 @@ private Map getBatteryResult(rawValue) { def volts = rawValue / 10 def descriptionText - if (volts > 3.5) { + if (rawValue == 0 || rawValue == 255) {} + else if (volts > 3.5) { result.descriptionText = "${linkText} battery has too much power (${volts} volts)." } else {