mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00:00
Replaced ${unit}', unit:"lux" with lux', unit: "" to fix issue with seeing ${unit} in the recently tab of Aeon multisensor illuminance values. Tested all three DTHs and lux was displayed rather then ${unit}
This commit is contained in:
@@ -103,7 +103,7 @@ metadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
valueTile("illuminance", "device.illuminance", inactiveLabel: false, width: 2, height: 2) {
|
valueTile("illuminance", "device.illuminance", inactiveLabel: false, width: 2, height: 2) {
|
||||||
state "illuminance", label:'${currentValue} ${unit}', unit:"lux"
|
state "illuminance", label:'${currentValue} lux', unit:""
|
||||||
}
|
}
|
||||||
|
|
||||||
valueTile("ultravioletIndex", "device.ultravioletIndex", inactiveLabel: false, width: 2, height: 2) {
|
valueTile("ultravioletIndex", "device.ultravioletIndex", inactiveLabel: false, width: 2, height: 2) {
|
||||||
@@ -410,4 +410,4 @@ private command(physicalgraph.zwave.Command cmd) {
|
|||||||
private commands(commands, delay=200) {
|
private commands(commands, delay=200) {
|
||||||
log.info "sending commands: ${commands}"
|
log.info "sending commands: ${commands}"
|
||||||
delayBetween(commands.collect{ command(it) }, delay)
|
delayBetween(commands.collect{ command(it) }, delay)
|
||||||
}
|
}
|
||||||
@@ -84,7 +84,7 @@ metadata {
|
|||||||
state "humidity", label:'${currentValue}% humidity', unit:""
|
state "humidity", label:'${currentValue}% humidity', unit:""
|
||||||
}
|
}
|
||||||
valueTile("illuminance", "device.illuminance", inactiveLabel: false, width: 2, height: 2) {
|
valueTile("illuminance", "device.illuminance", inactiveLabel: false, width: 2, height: 2) {
|
||||||
state "luminosity", label:'${currentValue} ${unit}', unit:"lux"
|
state "luminosity", label:'${currentValue} lux', unit:""
|
||||||
}
|
}
|
||||||
valueTile("battery", "device.battery", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
|
valueTile("battery", "device.battery", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
|
||||||
state "battery", label:'${currentValue}% battery', unit:""
|
state "battery", label:'${currentValue}% battery', unit:""
|
||||||
@@ -263,5 +263,4 @@ private secure(physicalgraph.zwave.Command cmd) {
|
|||||||
|
|
||||||
private secureSequence(commands, delay=200) {
|
private secureSequence(commands, delay=200) {
|
||||||
delayBetween(commands.collect{ secure(it) }, delay)
|
delayBetween(commands.collect{ secure(it) }, delay)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ metadata {
|
|||||||
state "humidity", label:'${currentValue}% humidity', unit:""
|
state "humidity", label:'${currentValue}% humidity', unit:""
|
||||||
}
|
}
|
||||||
valueTile("illuminance", "device.illuminance", inactiveLabel: false, width: 2, height: 2) {
|
valueTile("illuminance", "device.illuminance", inactiveLabel: false, width: 2, height: 2) {
|
||||||
state "luminosity", label:'${currentValue} ${unit}', unit:"lux"
|
state "luminosity", label:'${currentValue} lux', unit:""
|
||||||
}
|
}
|
||||||
valueTile("battery", "device.battery", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
|
valueTile("battery", "device.battery", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
|
||||||
state "battery", label:'${currentValue}% battery', unit:""
|
state "battery", label:'${currentValue}% battery', unit:""
|
||||||
@@ -193,4 +193,4 @@ def configure() {
|
|||||||
// set data reporting period to 5 minutes
|
// set data reporting period to 5 minutes
|
||||||
zwave.configurationV1.configurationSet(parameterNumber: 111, size: 4, scaledConfigurationValue: 300).format()
|
zwave.configurationV1.configurationSet(parameterNumber: 111, size: 4, scaledConfigurationValue: 300).format()
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user