mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-19 21:03:46 +00:00
Merge pull request #43 from SmartThingsCommunity/patch_from_private
Update smartsense-moisture.groovy
This commit is contained in:
@@ -128,6 +128,15 @@ def zwaveEvent(physicalgraph.zwave.commands.alarmv2.AlarmReport cmd)
|
|||||||
map
|
map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def zwaveEvent(physicalgraph.zwave.commands.basicv1.BasicSet cmd)
|
||||||
|
{
|
||||||
|
def map = [:]
|
||||||
|
map.name = "water"
|
||||||
|
map.value = cmd.value ? "wet" : "dry"
|
||||||
|
map.descriptionText = "${device.displayName} is ${map.value}"
|
||||||
|
map
|
||||||
|
}
|
||||||
|
|
||||||
def zwaveEvent(physicalgraph.zwave.Command cmd)
|
def zwaveEvent(physicalgraph.zwave.Command cmd)
|
||||||
{
|
{
|
||||||
log.debug "COMMAND CLASS: $cmd"
|
log.debug "COMMAND CLASS: $cmd"
|
||||||
|
|||||||
Reference in New Issue
Block a user