diff --git a/devicetypes/smartthings/aeon-multisensor-6.src/aeon-multisensor-6.groovy b/devicetypes/smartthings/aeon-multisensor-6.src/aeon-multisensor-6.groovy index 02f5ccc..56c3568 100644 --- a/devicetypes/smartthings/aeon-multisensor-6.src/aeon-multisensor-6.groovy +++ b/devicetypes/smartthings/aeon-multisensor-6.src/aeon-multisensor-6.groovy @@ -103,7 +103,7 @@ metadata { } 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) { @@ -410,4 +410,4 @@ private command(physicalgraph.zwave.Command cmd) { private commands(commands, delay=200) { log.info "sending commands: ${commands}" delayBetween(commands.collect{ command(it) }, delay) -} +} \ No newline at end of file diff --git a/devicetypes/smartthings/aeon-multisensor-gen5.src/aeon-multisensor-gen5.groovy b/devicetypes/smartthings/aeon-multisensor-gen5.src/aeon-multisensor-gen5.groovy index ab1b50c..2979531 100644 --- a/devicetypes/smartthings/aeon-multisensor-gen5.src/aeon-multisensor-gen5.groovy +++ b/devicetypes/smartthings/aeon-multisensor-gen5.src/aeon-multisensor-gen5.groovy @@ -86,7 +86,7 @@ metadata { state "humidity", label:'${currentValue}% humidity', unit:"" } 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) { state "battery", label:'${currentValue}% battery', unit:"" @@ -282,5 +282,4 @@ private secure(physicalgraph.zwave.Command cmd) { private secureSequence(commands, delay=200) { delayBetween(commands.collect{ secure(it) }, delay) -} - +} \ No newline at end of file diff --git a/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy b/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy index fa1fa37..0044570 100644 --- a/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy +++ b/devicetypes/smartthings/aeon-multisensor.src/aeon-multisensor.groovy @@ -79,7 +79,7 @@ metadata { state "humidity", label:'${currentValue}% humidity', unit:"" } 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) { state "battery", label:'${currentValue}% battery', unit:"" @@ -193,4 +193,4 @@ def configure() { // set data reporting period to 5 minutes zwave.configurationV1.configurationSet(parameterNumber: 111, size: 4, scaledConfigurationValue: 300).format() ]) -} +} \ No newline at end of file diff --git a/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy b/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy index a198d72..bea5f9f 100644 --- a/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy +++ b/smartapps/gideon-api/gideon-smart-home.src/gideon-smart-home.groovy @@ -765,7 +765,6 @@ def turnOffSwitch() { } else { device.off(); - return [Device_id: params.id, result_action: "200"] } } @@ -789,6 +788,7 @@ def getTempSensorsStatus(id) { return [] } else { def bat = getBatteryStatus(device.id) - return [temperature: device.currentValue('temperature')] + bat + def scale = [Scale: location.temperatureScale] + return [temperature: device.currentValue('temperature')] + bat + scale } - } \ No newline at end of file + } diff --git a/smartapps/opent2t/opent2t-smartapp-test.src/opent2t-smartapp-test.groovy b/smartapps/opent2t/opent2t-smartapp-test.src/opent2t-smartapp-test.groovy index 24d829c..c1e6bff 100644 --- a/smartapps/opent2t/opent2t-smartapp-test.src/opent2t-smartapp-test.groovy +++ b/smartapps/opent2t/opent2t-smartapp-test.src/opent2t-smartapp-test.groovy @@ -162,6 +162,17 @@ def registerAllDeviceSubscriptions() { registerChangeHandler(inputs) } +//Subscribe to events from a list of devices +def registerChangeHandler(myList) { + myList.each { myDevice -> + def theAtts = myDevice.supportedAttributes + theAtts.each { att -> + subscribe(myDevice, att.name, deviceEventHandler) + log.info "Registering for ${myDevice.displayName}.${att.name}" + } + } +} + //Endpoints function: Subscribe to events from a specific device def registerDeviceChange() { def subscriptionEndpt = params.subscriptionURL