mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-24 21:04:00 +00:00
Merge pull request #1129 from workingmonk/vdfixosram
SSVD-2463 hotfix for level jumping issues
This commit is contained in:
@@ -53,7 +53,10 @@ def parse(String description) {
|
|||||||
|
|
||||||
def event = zigbee.getEvent(description)
|
def event = zigbee.getEvent(description)
|
||||||
if (event) {
|
if (event) {
|
||||||
sendEvent(event)
|
if (event.name=="level" && event.value==0) {}
|
||||||
|
else {
|
||||||
|
sendEvent(event)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log.warn "DID NOT PARSE MESSAGE for description : $description"
|
log.warn "DID NOT PARSE MESSAGE for description : $description"
|
||||||
|
|||||||
@@ -81,7 +81,10 @@ def parse(String description) {
|
|||||||
def finalResult = zigbee.getEvent(description)
|
def finalResult = zigbee.getEvent(description)
|
||||||
if (finalResult) {
|
if (finalResult) {
|
||||||
log.debug finalResult
|
log.debug finalResult
|
||||||
sendEvent(finalResult)
|
if (finalResult.name=="level" && finalResult.value==0) {}
|
||||||
|
else {
|
||||||
|
sendEvent(finalResult)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
def zigbeeMap = zigbee.parseDescriptionAsMap(description)
|
def zigbeeMap = zigbee.parseDescriptionAsMap(description)
|
||||||
|
|||||||
@@ -75,7 +75,10 @@ def parse(String description) {
|
|||||||
log.debug "description is $description"
|
log.debug "description is $description"
|
||||||
def event = zigbee.getEvent(description)
|
def event = zigbee.getEvent(description)
|
||||||
if (event) {
|
if (event) {
|
||||||
sendEvent(event)
|
if (event.name=="level" && event.value==0) {}
|
||||||
|
else {
|
||||||
|
sendEvent(event)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log.warn "DID NOT PARSE MESSAGE for description : $description"
|
log.warn "DID NOT PARSE MESSAGE for description : $description"
|
||||||
|
|||||||
Reference in New Issue
Block a user