All press modes can be activated by changing the device type to a scene controller, and using a customized json file.
The Fibaro Button seems to set a variable "sl_CentralSceneAttr" to different values depending on how the button was pressed. Values are as follows: 0=one click, 1=hold and release, 2=button is being held (set to -> 1 when released), 3=double click, 4=three clicks, 5=four clicks, 6=five clicks. Scene number (variable "sl_CentralScene") seems to always be 1.
To anyone who's interested, here's how I made it work:
I've made a quick and dirty json for enabling all the press modes. Get the file from http://pastebin.com/raw/9BgxNkyj
and save it as D_FibaroButton1.json
- Upload the json file to you Vera: Apps -> Develop Apps -> Luup Files -> Upload
- Then go to Devices -> Your Button -> Advanced, and change the following fields:
- To reload the luup engine, go to Apps -> Develop Apps ->Test Luup code (Lua), and write "luup.reload()" (without the quotes) to the code field and press GO (btw, is there an easier way to do this?).
You can now create scenes for different press modes by entering scene number "1" to "Which scene number" field and selecting the appropriate press mode from the dropdown menu, under the "Whenever a scene is activated" option.
Hope this helps anyone struggling with Fibaro Button and Vera!