Skip to content

Commit

Permalink
[BETA] v0.52b - Ready for testing
Browse files Browse the repository at this point in the history
Changes
• Altered the way Cluster 0101 / Attr 0505 (Maybe vibration level?) values are parsed to just convert the first 4 hex digits to a decimal value
  • Loading branch information
veeceeoh authored Sep 14, 2018
1 parent 904dfa2 commit 0eafaf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Xiaomi Aqara Vibration Sensor
* Model DJT11LM
* Version 0.51b
* Version 0.52b
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -233,7 +233,7 @@ private Map parseReadAttrMessage(String description) {
}
// Handles Vibration level messages (NEEDS TESTING TO VERIFY)
else if (attrId == "0505") {
def level = Integer.parseInt(value,16)
def level = Integer.parseInt(value[0..3],16)
def descText = ": Vibration level reported at $level"
displayInfoLog(descText)
resultMap = [
Expand Down

0 comments on commit 0eafaf4

Please sign in to comment.