Thank you so much! After going to Marketplace -> SmartApps tab -> More to select “Button Controller”, then clicking “Install” to install the Button Controller for my second device, it worked just fine. I didn’t find any place where I can change the name of the SmartApp though, so I have two “Button Controller” showing up in my list of Smartapps that are being used by My Things… But this is fine… when I click Button Controller, the first screen shows up tells me which device that Button Controller is associated with. Thanks again!
This didn’t work for me. I added the device, set it to the custom device handler, hit the “Configure” button from the custom Device Handler screen, and here’s where I am:
I can view the switch in the ST app and it shows three buttons as “released.” Pressing any buttons on the switch doesn’t change the “released” text to anything; should it say “pushed” or something similar? I set up Button Controller to work with it but it doesn’t work. After I hit the Configure button, this was the only output I got:
info: Sending ZigBee Bind commands to 3 Button Switch
debug: Binding SEP 0x01 DEP 0x01 Cluster 0x0006 On/Off cluster to hub
Should there have been more output here? Is my switch supposed to blink when I push a button (because it doesn’t)? Maybe I got a faulty unit? Any ideas?
Thanks in advance!
EDIT: got it going. I used the bind procedure instead of the join procedure. Just to reiterate what’s already been said in here before, don’t use the program button to associate it with SmartThings!
I’ve had a couple of these for a while and they work ok. I have them in places where my lighting is either mostly automated or I can use Alexa instead of a switch so I don’t have to use the buttons very often but I notice that when I do I usually have to hit the button twice to get it to trigger an event if I haven’t used it pretty recently. Does anyone else have this problem?
This is the response from SmartenIT, basically what I expected:
Because the 3 button switch is an “end device”, which means it goes to sleep periodically to conserve the batteries…it may need to be “woken up” with a press from time to time. This would result in having to press it again for it to do anything. This is pretty standard on ZigBee end devices.
@JDRoberts I think you use these pretty extensively and given your attention to detail I’m surprised you never mentioned it. Do you experience this behavior also?
Mike, just curious. Do you know if your 3 button switch is using the hub as its parent or some other ZigBee router? If its not I wonder if it would work better if you move it closer to the hub. I have seen some remote battery powered devices get dropped (orphaned and have to go through a reconnect process) by some ZigBee routers. However, if they are using the SmartThings hub as a parent they seem to be much more reliable.
Good question. I guess I’d have to mess with it and analyze the logs to figure that out for sure, but I don’t have very many powered (repeater-enabled) zigbee devices and one switch is about 15 feet from the hub. However, directly under the floor from that one in the basement is a powered v1 ST motion sensor so it could be routing through that.
I would like to thank you for all the time you put into this tutorial. I know i’m a little late to this game but I was hoping you might be able to help with me with a few problems.
The first was steps 14-16. I believe My Device Types may have been renamed to My Device Handlers, but I wasn’t sure because you referenced My Device Handlers previous in stop 7 so I wasn’t sure. Regardless I cannot find where to complete those steps.
Second in the current version I do not believe I can install the SmartApp unless the app recognized a comparable hardware already installed that will support the app.
Smartthings has changed terminology from time to time. All of the following mean the same thing and they are all used in the forums.
Device type (DT)
Device type handler (DTH)
Device Handler (DH)
As for your second question, you can install the code for a smartapp or a device type handler regardless of whether you have any devices that will use it or not. Just make sure you were putting the code in to the right place. Device type handlers are installed into “my device handlers.”
Smartapps are installed into “my smartapps,” at least as of this writing.
The custom code F AQ covers the basic concepts, in case you want to review those:
I apologize for the novice sounding question. I’m embarrassed that the reason I couldn’t figure out Step 14 was because my web browser wasn’t opened wide enough because I had your tutorial taking up half the screen and the IDE setup on the other. The location section was hid as a result.
I however am still a little stuck at the SmartApp. I was able to install the SmartApp via the IDE and I went though the simulator settings of the app from the IDE and set each button to a corresponding light.
The mobile app sees the switch as a thing and recognizes each button press as open or closed. I installed the App via the IDE and it shows up under My Apps, but I cannot associate it with the switch in things. It just sticks with No Installed SmartApps.