Skip to content

Commit ab054dd

Browse files
User27228209 16 (#78292)
* DevWs for Sinope Technologies containing containing VA4200WZ-VA4200ZB Sinope Valve * correction spacing * Update va4200wz-va4200zb-sinope-valve.groovy remove commented code * Update va4200wz-va4200zb-sinope-valve.groovy spacing * Update va4200wz-va4200zb-sinope-valve.groovy spacing
1 parent ea7a673 commit ab054dd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

devicetypes/sinope-technologies/va4200wz-va4200zb-sinope-valve.src/va4200wz-va4200zb-sinope-valve.groovy

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import physicalgraph.zigbee.zcl.DataType
1111
metadata {
1212

1313
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")
1715
}
1816

1917
definition (name: "VA4200WZ-VA4200ZB Sinope Valve", namespace: "Sinope Technologies", author: "Sinope Technologies", ocfDeviceType: "oic.d.watervalve") {
@@ -140,7 +138,7 @@ def parse(String description) {
140138
}
141139
}
142140
}
143-
141+
144142
return result
145143
}
146144

@@ -204,7 +202,6 @@ private Map getBatteryResult(rawValue) {
204202
def result = [:]
205203
result.name = 'battery'
206204
result.descriptionText = "{{ device.displayName }} battery was {{ value }}%"
207-
208205
result.value = convertVoltToPercent(rawValue)
209206
return result
210207
}
@@ -308,7 +305,7 @@ private def convertVoltToPercent(value) {
308305
}
309306
}
310307

311-
def traceEvent(logFilter, message, displayEvent = false, traceLevel = 4, sendMessage = true) {
308+
def traceEvent(logFilter, message, displayEvent = true, traceLevel, sendMessage = true) {
312309
int LOG_ERROR = get_LOG_ERROR()
313310
int LOG_WARN = get_LOG_WARN()
314311
int LOG_INFO = get_LOG_INFO()

0 commit comments

Comments
 (0)