![]() I tried to figure out how to add this code but was not successful.ĭoes someone know how to add the 3 states to the custom SmartApp code? The Smart Lights SmartApp by SmartThings has an option after selecting the button you want to use to pick a button action of pushed, held, or pushed twice, so it should be possible. The only thing missing from their code is a way to set this for button double presses and button holds, as the Smartthings button comes with 3 different ways to use it. I installed their code and it works great for single button presses. Enable OAuth: Back at the My SmartApps page, click the little edit icon for the BitBar Output App, then click OAuth section, then click Enable OAuth in SmartApp. The second was a user’s custom SmartApp that would toggle based on the state of the device. Click My SmartApps > then New SmartApp (top-right green button) Click the From Code tab and paste the SmartApp code from GitHub then click Create. People reported success with this, but in my testing, I have too many issues where the device gets briefly turned on then back off because there are 2 automations. This way it would only turn on if the device is turned off, and off only if the device is turned on. Controlling Kodi through SmartThings has the additional benefit that you are also be to trigger events in SmartThings based on events in Kodi, or visa versa. The first was to use the smart lighting SmartApp and create 2 automations - one to turn the device on and the other to turn it off, and setting the “Only if switch” setting to the opposite state. This is a SmartApp which allows you to control Kodi, where HTTP control has been enabled. The code examples in this blog post will use the Node.js SDK. I searched through all the previous threads on this topic, and encountered 2 solutions (not involving Webcore). SmartThings has many SDKs for developers. Then the button has to be pressed twice to correct this. The issue I’ve encountered is that sometimes devices are turned on and off using other methods such as Alexa, which causes the current on/off state to be out of sync with the button toggle. ![]() This was set up in the button’s settings in the Smartthings app. I’ve found that this sensor is A LOT more reliable in giving the doors current state (open / close) It ties in with the SmartApp perfectly, just select it instead. Update: 12/4/15 I purchased a Ecolink Z-Wave Wireless Tilt Sensor - ECO-TILT-US to use WITH the supplied door sensor. I am using a Smartthings Button to toggle Smartthings plugs and various lights. SmartThings-Garage-Door-SmartApp-Code.txt. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |