Eddie_Callaghan:
Forgive me as I am pretty new to ST so this will be a NOOB question. I have a number of ZWave outlet points. I want to use this fob to switch on and off these points. Square for one, Circle for another etc. What is the best way of programming this to work? If I use a Smartapp it does not distinguish between the buttons and just sees the Fob as one control device.
Smartapps including Core will only see it as one button unless you use a custom device type Handler which exposes all of the different functions as different button numbers.
If you haven’t used custom code before, it’s pretty simple. Basically you’re going to copy the author’s code and paste it into your own account. The following FAQ describes that process:
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those:
The process for using a custom Edge Driver in the new …
If that sounds like something you want to try, you can find custom code contributed by the community by using the quick browse lists in the community – created wiki:
http://thingsthataresmart.wiki/index.php?title=How_to_Quick_Browse_the_Community-Created_SmartApps_Forum_Section
In this case you would look in the device type handler section on the list for “remotes and buttons.”
And you would find the following:
Fibaro KeyFob is a six button Z-Wave Plus remote that enables user to execute 30 action through the combination of single, double and triple presses, holding the buttons and 6 programmable 2 to 5 button sequences. The remote can also be protected against unauthorized use by 2 to 5 button sequence (check Lock Mode configuration section below).
This DTH exposes 30 buttons and 6 switches. They are assigned as follows:
Buttons 1-6 - “pushed” event on physical buttons 1-6 single press
Buttons 7-12 - “pushed” event on physical buttons 1-6 double press
Buttons 13-18 - “pushed” event on physical buttons 1-6 triple press
Buttons 19-24 - “pushed” event on physical buttons 1-6 hold
Buttons 25-30 - “pushed” event on execution of sequences 1 to 6
Switches 1-6 - “on” event on physical buttons 1-6 hol…
Once you install that, most SmartThings code, including the official smart lighting feature, will be able to recognize the individual buttons.
https://support.smartthings.com/hc/en-us/articles/205949776-How-to-create-lighting-automations-with-Smart-Lights
So you won’t actually need core for this. You can just use smart lighting. But you do have to first install the custom device type handler and assign your key fob to that.
1 Like