@@ -11,9 +11,7 @@ import physicalgraph.zigbee.zcl.DataType
11
11
metadata {
12
12
13
13
preferences {
14
- input(" trace" , " bool" , title : " Trace" , description : " Set it to true to enable tracing" )
15
- // input("logFilter", "number", title: "Trace level", range: "1..5",
16
- // description: "1= ERROR only, 2= <1+WARNING>, 3= <2+INFO>, 4= <3+DEBUG>, 5= <4+TRACE>")
14
+ input(" trace" , " bool" , title : " Trace (Only for debugging)" , description : " Set it to true to enable tracing" )
17
15
}
18
16
19
17
definition (name : " VA4200WZ-VA4200ZB Sinope Valve" , namespace : " Sinope Technologies" , author : " Sinope Technologies" , ocfDeviceType : " oic.d.watervalve" ) {
@@ -140,7 +138,7 @@ def parse(String description) {
140
138
}
141
139
}
142
140
}
143
-
141
+
144
142
return result
145
143
}
146
144
@@ -204,7 +202,6 @@ private Map getBatteryResult(rawValue) {
204
202
def result = [:]
205
203
result. name = ' battery'
206
204
result. descriptionText = " {{ device.displayName }} battery was {{ value }}%"
207
-
208
205
result. value = convertVoltToPercent(rawValue)
209
206
return result
210
207
}
@@ -308,7 +305,7 @@ private def convertVoltToPercent(value) {
308
305
}
309
306
}
310
307
311
- def traceEvent (logFilter , message , displayEvent = false , traceLevel = 4 , sendMessage = true ) {
308
+ def traceEvent (logFilter , message , displayEvent = true , traceLevel , sendMessage = true ) {
312
309
int LOG_ERROR = get_LOG_ERROR()
313
310
int LOG_WARN = get_LOG_WARN()
314
311
int LOG_INFO = get_LOG_INFO()
0 commit comments