Skip to content

Commit

Permalink
DVCSMP-2060 Remove displayed: false from battery events (SmartThingsC…
Browse files Browse the repository at this point in the history
…ommunity#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.
  • Loading branch information
greens authored Apr 26, 2018
1 parent 12cab4f commit b43e637
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ metadata {
capability "Configuration"
capability "Battery"
capability "Health Check"
capability "Sensor"
capability "Sensor"

command "resetParams2StDefaults"
command "listCurrentParams"
Expand Down Expand Up @@ -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)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b43e637

Please sign in to comment.