This is a device handler for the fibaro button device. The device is a simple button that can be used to control many things based on being clicked once, twice, three times, four times, five times or held down.
Install the device handler as normal in the IDE.
The device handler uses ST’s numberOfButtons attribute so should be recognised as a 5 button device in most ST made apps, if not it will default to 4… which isnt so bad. Just use each button number in place of the number of clicks that you want to use. For e.g. button 3 pressed = Fibaro button clicked 3 times
Special integration with CoRE
I have made a special integration with CoRE, so that you can use this device to it’s full potential. See below, it should be self explanatory:
This is exactly what I am looking for. I wanted a simple large button to push for one specific reason. In the middle of the night press the button and for 10 minutes it would:
disable back door sensor
turn light level to 10%
turn back porch light on
after 10 minutes turn lights off, and re-enable back door sensor
All of this just we can let the dogs out in the middle of the night without stepping on toys setting off alarm, or tripping to our doom.
Can’t quite get wife to agree to the $450 autoslide door opener… go figure.
Just sitting here I can think of a million uses. Now if we can just find some to buy.
I want to thank you for taking the time with this Handler. I was curious how to configure it. I’m in core and I don’t see anything mentioned button clicks but just presses. I’m sure I have something wrong but I was wondering if you had any thoughts. Thank you!
Just installed my big red Fibaro button.
Big thanks to AdamV for writing the device handler. I Installed v0.9.0 of the DH
Created a Routine in the ST app.
I can configure the routine to run on 1-click, 2-clicks, 3-clicks, 4-click, 5-clicks and it works perfectly:grinning:
But no way of configuring the routine to run on a press&hold event.
Am I missing something?
So I thought I was having the same problem as you in only one button showing up but its working fine its just confusing. The button will only show up as one device but when you set up a routine and then select the button as a trigger you will get a secondary selection that is labeled “Button Number”. I was originally thinking this device would show up as multiple devices but that is not the case. The configure button in the device page does not do anything other than set some default settings and print out that message to the log.
Just picked up a Blue Fibaro Button and it is working great with dh from @AdamV
Adam where did you get the configuration parameters from? Did you find the command class documentation for this device ?
I notice you are configuring param 1=127, 3=7, and 30=16 so I was curious what these are setting.
So far my battery level isn’t reporting but I just installed so perhaps it just hasn’t reported yet. I don’t see a battery get call in the config so it makes sense that I would have to wait for the Fibaro to report on it’s own.
But I can’t figure out how the Wake up interval (battery mode) is set. I think the default of 0 is fine for never auto wake but the documentation starts with this config setting without listing the parameter number to set it so I was just wondering how it’s set in ST.
Honestly I don’t understand what “Wake Up” means since it says it can be done manually by pressing 4 times. Wouldn’t 1 press wake the device so it can send the button press?
From memory I believe you have to put the button into a mode where it will accept the configuration. I think this is by pressing the button 6 times. Then hit configure. Then the configuration should be accepted
FYI everyone - I’ve fixed the CoRE integration that broke after a platform update a while ago… not that anyone seemed to have noticed!! anyway if you are using your button with CoRE the custom events should now work if you update to 0.9.1
AdamV, Thankyou for putting this together but I am sure you knew this was coming… I am lost. This is my first device that I am adding that isn’t on the “approved List” and I have added the code to the IDE and have followed all the steps I can find online to try and set this up but for some reason I cant seem to get the screen shots above. ( I am new to all of this and any help would be appreciated)
I do have the device added and I went in and set it as the Fibaro button under the device list but now I am lost on how to select it to create scenes. I want to make 1 push goodnight mode and shut off all the lights and lock the door( Standard) and then add some other stuff to it as I will place the button by the bed.
Not sure where to go once I have the button added and how to create scenes In CoRE using the button.
I figured out how to turn on all of my lights and turn them off using CoRE… but my question now is it supposed to be a few min in between the button presses before anything happens? I push the button and lights go off then I press and hold after the scene is complete and nothing… but if I wait 3-4min it will complete the activity… I am worried about using the 2 push thing in fear of freaking out the neighbors haha
OK just to confirm - you have added the devices and configured it?
So these are the steps you need to have done:
pair the device with smartthings as normal
add the code to the IDE
change the DTH of the device to the dth for the code you just put in the IDE
configure the device by pressing the button six times in quick succession and then hitting configure in the device app page. You may need to do this step a few time befre it actually works - it is very fiddley
You can then use the button with smart lighting, CoRE or Rule machine or most other apps.
To make a rule in smartlighting say: push onnce to turn on lights. Set the trigger as button 1 pressed.
If you want to do more advanced rules in CoRE then once you have selected your button, change the attribute to “ButtonCicks” and then choose the correct option.
Any lag / delay is due to either Smartthings being slow, your internet connection being slow, or the button being rubbish. To be perfectly honest as I mentioned somewhere else in the forum I do not use the Fibaro button as I found it to be too unreliable.