11/16/2023 0 Comments Smartapp codeIn order for button input to be reliably captured by the App, buttons should not be pressed faster than are acknowledged by the device. I considered various possibilities, but the essence of this SmartApp is simplicity even if that reduces the level of security of the code and/or the overall functionality. There is no concept of “start / end / clear” or “activate / deactivate”. Perhaps I will change the configuration pages such that Hello Home Action is the first and most prominent choice.ĭetection of correct PIN is based on last “n” button presses detected, where “n” is the PIN length set by the user. The Hello Home action could use mode or state to decide if the PIN entry is deactivating an alarm, unlocking a door, etc., and/or the opposite. I recommend that a well-written Hello Home action is specified instead of individual devices. The “toggle” concept is based on the Smart Button Controller SmartApp by SmartThings and has some behavioral ambiguity that is noted in comments in the code. Configuration consists of selecting the number of digits in the “PIN” (min 3, max 9), and then setting the PIN via selection of each digit into each sequence slot, via the pulldown (enum) user interface.Īfter PIN definition, user configures light/switch/lock toggles, mode set, and/or Hello Home Action that will be called upon correct PIN entry detected. PIN Combinations are thus currently restricted to selections of digit values from 1 to 4 (the app does not currently incorporate the option of “held” buttons as digit values 5 to 8, though this would be a minor enhancement). If you have other types of multi-button devices, I would love if you could test with these and we can work together on required code modifications. I have only tested with the 4-button Aeon Minimote. Use Buttons As PIN Input ("Security Keypad") e.g., Aeon Aeotec Minimote, ZWN-SC7 Enerwave 7 Button trigger to Routines, lock/unlock, arm/disarm, mode, lights … See much later post in this Topic Thread: Code has been updated to fix bugs SmartApp Code Snippet (Copy code from here to paste into IDE…): Published to “Browse SmartApps” in IDE: yes Published/Submitted to SmartThings Marketplace: no Version: v0.1.4-beta (non-production pre-release) as of latest update. License: See repository and/or source code header comments. ScreenCapture.PNG 358×600 37.7 KB DescriptionĪssign a multi-button controller (e.g., Aeon Labs Minimote) to be a security ‘PIN code’ input pad, which triggers a switch, lock, mode, or Hello Home action.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |