You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changelist
* added support for multi-click actions (double, triple, quadruple, and > 5-click)
* removed preference setting to send `button 2 pushed` event on hold (button hold now always sends `button 1 held` event)
* added method imports to match device handlers on GitHub/SmartThingsPublic
* removed unneeded `endpointId` and `profileId` from device fingerprint
* added `ocfDeviceType` to definition in attempt to get device handler working with new SmartThings Samsung Connect mobile app
* added preliminary support for Device Watch
* added initial button event for proper configuration during device pairing
* improved followup in `updated()` after user saves preference settings
* added more helpful inline comments to code
* minor code cleanup and reorganization
Copy file name to clipboardExpand all lines: devicetypes/bspranger/xiaomi-button.src/xiaomi-button.groovy
+85-52Lines changed: 85 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
/**
2
-
* Xiaomi Zigbee Button
3
-
* Version 1.2
2
+
* Xiaomi Zigbee Button - model WXKG01LM
3
+
* Device Handler for SmartThings - Firmware version 25.20 and newer ONLY
4
+
* Version 1.3
4
5
*
6
+
* NOTE: Do NOT use this device handler on any SmartThings hub running Firmware 24.x and older
7
+
* Instead use the xiaomi-button-old-firmware device handler
5
8
*
6
9
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
10
* in compliance with the License. You may obtain a copy of the License at:
@@ -12,27 +15,33 @@
12
15
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
13
16
* for the specific language governing permissions and limitations under the License.
14
17
*
15
-
* Original device handler code by a4refillpad, adapted for use with Aqara model by bspranger
18
+
* Original device handler code by a4refillpad, adapted for use with Aqara model by bspranger, updated for changes in firmware 25.20 by veeceeoh
16
19
* Additional contributions to code by alecm, alixjg, bspranger, gn0st1c, foz333, jmagnuson, rinkek, ronvandegraaf, snalee, tmleafs, twonk, & veeceeoh
17
20
*
18
21
* Known issues:
19
-
* Xiaomi sensors do not seem to respond to refresh requests
20
-
* Inconsistent rendering of user interface text/graphics between iOS and Android devices - This is due to SmartThings, not this device handler
21
-
* Pairing Xiaomi sensors can be difficult as they were not designed to use with a SmartThings hub.
22
-
*
22
+
* + As of March 2019, the SmartThings Samsung Connect mobile app does NOT support custom device handlers such as this one
23
+
* + The SmartThings Classic mobile app UI text/graphics is rendered differently on iOS vs Android devices - This is due to SmartThings, not this device handler
24
+
* + Pairing Xiaomi/Aqara devices can be difficult as they were not designed to use with a SmartThings hub.
25
+
* + The battery level is not reported at pairing. Wait for the first status report, 50-60 minutes after pairing.
26
+
* + Xiaomi devices do not respond to refresh requests
27
+
* + Most ZigBee repeater devices (generally mains-powered ZigBee devices) are NOT compatible with Xiaomi/Aqara devices, causing them to drop off the network.
28
+
* + Only XBee ZigBee modules, the IKEA Tradfri Outlet / Tradfri Bulb, and ST user @iharyadi's custom multi-sensor ZigBee repeater device are confirmed to be compatible.
input description: "A button click always sends a 'button 1 pushed' event, but as a default if it is held for at least 2 seconds, a 'button 1 held' event is sent when released. The settings below allow changes to the minimum time needed for held and what type of event should be sent.", type: "paragraph", element: "paragraph", title: "BUTTON CONFIGURATION"
101
+
input description: "As a default if the button is held for at least 2 seconds, a 'button 1 held' event is sent when released. The settings below allow changes to the minimum time needed for held.", type: "paragraph", element: "paragraph", title: "BUTTON CONFIGURATION"
89
102
input name: "waittoHeld", type: "decimal", title: "Minimum hold time required for button held:", description: "Number of seconds (default = 2.0)", range: "0.1..120"
0 commit comments