mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-20 05:10:51 +00:00
[DVCSMP-1164] Sensor name not shown
During acceleration events, the sensor name is not shown.
This commit is contained in:
@@ -346,8 +346,8 @@ def getTemperature(value) {
|
|||||||
log.debug "Acceleration"
|
log.debug "Acceleration"
|
||||||
def name = "acceleration"
|
def name = "acceleration"
|
||||||
def value = numValue.endsWith("1") ? "active" : "inactive"
|
def value = numValue.endsWith("1") ? "active" : "inactive"
|
||||||
//def linkText = getLinkText(device)
|
def linkText = getLinkText(device)
|
||||||
def descriptionText = "was $value"
|
def descriptionText = "$linkText was $value"
|
||||||
def isStateChange = isStateChange(device, name, value)
|
def isStateChange = isStateChange(device, name, value)
|
||||||
[
|
[
|
||||||
name: name,
|
name: name,
|
||||||
|
|||||||
Reference in New Issue
Block a user