added this:
log.debug "dev: $dev | cmd: $cmd | p1: $p1 | p2: $p2"
gets this output … looks odd …
[app:280](http://192.168.1.44/logs#app280)2019-12-02 04:01:41.655 pm [debug](http://192.168.1.44/installedapp/configure/280)dev: [currentStates:[[floatValue:6535.0, jsonValue:6535, value:6535, dataType:NUMBER, unit:null, date:2019-12-02T17:48:18+0000, stringValue:6535, id:null, numberValue:6535, doubleValue:6535.0, name:colorTemperature], [value:on, dataType:ENUM, unit:null, date:2019-12-02T07:18:08+0000, stringValue:on, id:null, name:switch], [floatValue:49.0, jsonValue:49, value:49, dataType:NUMBER, unit:null, date:2019-12-03T00:01:32+0000, stringValue:49, id:null, numberValue:49, doubleValue:49.0, name:level], [value:Polar, dataType:STRING, unit:null, date:2019-12-02T17:48:18+0000, stringValue:Polar, id:null, name:colorName]], driverId:193, isComponent:false, zigbeeId:B0CE18140301ABC0, hub:[updateTime:null, zigbeeId:000D6F000AFF715D, locationId:1, id:1, dataSorted:[hardwareID:000D], hardwareID:000D, createTime:2018-02-21T10:03:28+0000, localSrvPortTCP:39501, name:home, firmwareVersionString:2.1.6.118, type:PHYSICAL, localIP:192.168.1.44, uptime:2661, version:1, data:[hardwareID:000D, zigbeeEui:000D6F000AFF715D, zigbeeChannel:0x14 (20), zigbeePanID:B8FD, localSrvPortTCP:39501, localIP:192.168.1.44], zigbeeEui:000D6F000AFF715D, batteryInUse:false, lastActivityTime:null], id:761, supportedCommands:[[arguments:null, parameters:null, id:8, version:1, name:configure], [arguments:null, parameters:null, id:2, version:1, name:off], [arguments:null, parameters:null, id:127, version:1, name:off], [arguments:null, parameters:null, id:1, version:1, name:on], [arguments:null, parameters:null, id:126, version:1, name:on], [arguments:null, parameters:null, id:13, version:1, name:refresh], [arguments:[NUMBER], parameters:[[name:Color temperature*, description:Color temperature in degrees Kelvin, type:NUMBER, constraints:[NUMBER]]], id:83, version:1, name:setColorTemperature], [arguments:[NUMBER, NUMBER], parameters:[[name:Level*, description:Level to set (0 to 100), type:NUMBER, constraints:[NUMBER]], [name:Duration, description:Transition duration in seconds, type:NUMBER, constraints:[NUMBER]]], id:10, version:1, name:setLevel], [arguments:[ENUM], parameters:[[name:Direction*, description:Direction for level change request, type:ENUM, constraints:[up, down]]], id:1641, version:1, name:startLevelChange], [arguments:null, parameters:null, id:1642, version:1, name:stopLevelChange]], lanId:null, endpointId:01, controllerType:ZGB, displayAsChild:true, name:Generic Zigbee CT Bulb (dev), capabilities:[[commands:[[arguments:null, parameters:null, id:1, version:null, name:on], [arguments:null, parameters:null, id:2, version:null, name:off]], id:4, version:null, attributes:[[dataType:null, values:null, id:4, version:null, possibleValues:null, name:switch]], name:Switch, reference:null], [commands:[[arguments:null, parameters:null, id:8, version:null, name:configure]], id:12, version:null, attributes:[], name:Configuration, reference:null], [commands:[[arguments:null, parameters:null, id:10, version:null, name:setLevel]], id:15, version:null, attributes:[[dataType:null, values:null, id:12, version:null, possibleValues:null, name:level]], name:SwitchLevel, reference:null], [commands:[[arguments:null, parameters:null, id:13, version:null, name:refresh]], id:18, version:null, attributes:[], name:Refresh, reference:null], [commands:[], id:35, version:null, attributes:[], name:Actuator, reference:null], [commands:[[arguments:null, parameters:null, id:83, version:null, name:setColorTemperature]], id:53, version:null, attributes:[[dataType:null, values:null, id:70, version:null, possibleValues:null, name:colorTemperature], [dataType:null, values:null, id:11571, version:null, possibleValues:null, name:colorName]], name:ColorTemperature, reference:null], [commands:[[arguments:null, parameters:null, id:126, version:null, name:on], [arguments:null, parameters:null, id:127, version:null, name:off]], id:80, version:null, attributes:[[dataType:null, values:null, id:104, version:null, possibleValues:null, name:switch]], name:Light, reference:null], [commands:[[arguments:null, parameters:null, id:1641, version:null, name:startLevelChange], [arguments:null, parameters:null, id:1642, version:null, name:stopLevelChange]], id:89, version:null, attributes:[], name:ChangeLevel, reference:null]], device:[currentStates:[level:[floatValue:49.0, jsonValue:49, value:49, dataType:NUMBER, unit:null, date:2019-12-03T00:01:32+0000, stringValue:49, id:null, numberValue:49, doubleValue:49.0, name:level]], locationName:home, updateTime:2018-07-13T03:55:00+0000, hubName:home, isComponent:false, zigbeeId:B0CE18140301ABC0, deviceTypeName:Generic Zigbee CT Bulb (dev), hub:[updateTime:null, zigbeeId:000D6F000AFF715D, locationId:1, id:1, dataSorted:[hardwareID:000D], hardwareID:000D, createTime:2018-02-21T10:03:28+0000, localSrvPortTCP:39501, name:home, firmwareVersionString:2.1.6.118, type:PHYSICAL, localIP:192.168.1.44, uptime:2661, version:1, data:[hardwareID:000D, zigbeeEui:000D6F000AFF715D, zigbeeChannel:0x14 (20), zigbeePanID:B8FD, localSrvPortTCP:39501, localIP:192.168.1.44], zigbeeEui:000D6F000AFF715D, batteryInUse:false, lastActivityTime:null], locationId:1, id:761, displayAttributes:null, groupId:null, currentStatesSorted:[level:[floatValue:49.0, jsonValue:49, value:49, dataType:NUMBER, unit:null, date:2019-12-03T00:01:32+0000, stringValue:49, id:null, numberValue:49, doubleValue:49.0, name:level]], lanId:null, hubId:1, endpointId:01, createTime:2018-07-13T03:54:00+0000, controllerType:ZGB, displayAsChild:true, name:Generic Zigbee CT Bulb (dev), parentAppId:null, disabled:false, status:ACTIVE, groupName:null, version:3, driverType:sys, label:dW OF LI 3, data:[application:01, model:Z01-A19NAE26, manufacturer:sengled], deviceNetworkId:1A66, deviceTypeId:193, lastActivityTime:2019-12-03T00:01:32+0000, parentDeviceId:null, displayName:dW OF LI 3], idAsLong:761, parentAppId:null, disabled:false, status:ACTIVE, typeName:Generic Zigbee CT Bulb (dev), driverType:sys, label:dW OF LI 3, data:[application:01, model:Z01-A19NAE26, manufacturer:sengled], supportedAttributes:[[dataType:STRING, values:null, id:11571, version:1, possibleValues:null, name:colorName], [dataType:STRING, values:null, id:14109, version:1, possibleValues:null, name:colorName], [dataType:NUMBER, values:null, id:70, version:1, possibleValues:null, name:colorTemperature], [dataType:NUMBER, values:null, id:12, version:1, possibleValues:null, name:level], [dataType:ENUM, values:[on, off], id:4, version:1, possibleValues:[on, off], name:switch], [dataType:ENUM, values:[on, off], id:104, version:1, possibleValues:[on, off], name:switch]], deviceNetworkId:1A66, lastActivity:2019-12-03T00:01:32+0000, parentDeviceId:null, displayName:dW OF LI 3] | cmd: setLevel | p1: 0 | p2: 3