forked from bspranger/Xiaomi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes • added `"Holdable Button"` capability • removed `"Momentary"` capability because according to SmartThings Developer documentation it is a command capability, only for a switch that can be controlled • `waittoHeld` preference setting is now `type: "decimal"` to allow for millisecond precision • changed calculation of `holdTimeMillisec` in `createButtonEvent()` to allow for millisecond precision • removed `button` - `released` event from virtual button function, because SmartThings Developer documentation states that only `pushed` and `held` events are supported with the button capability • changed main tile to display only `pushed` or `held`, to represent the last button event
- Loading branch information
Showing
1 changed file
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters