Fibaro dimmer (FGD-211) as a Scene Controller under UI7

As PLEG isn’t fully working with UI7 yet I had to figure out how to use FGD-211’s S2 as a scene controller. Maybe someone will find this helpful.

[ol][li]Upload attached D_DimmableLightSceneController1.json file under Apps > Develup Apps > Luup files menu (adds “A scene is activated” trigger for your dimmer; as Fibaro dimmer does not change sl_SceneActivated variable, I’m checking LastSceneID)[/li]
[li]Set device option #41 to 1 byte dec = 1 under Device Options tab of your dimmer[/li]
[li]Change device_json to D_DimmableLightSceneController1.json under Advanced tab of your dimmer[/li]
[li]Now you can add scenes triggered by S1/S2 clicks. Scene IDs depend on you device’s options. You can find them at FGD-211 manual: [url=http://www.fibaro.com/manuals/en/FGD221-Dimmer/FGD211-Dimmer-en-2.1-2.3.pdf]Wireless Smart Home and Home Automation | FIBARO

As UI7 seems to have some problems with managing it’s state, page refresh may be needed after steps 2 & 3.

To be able to trigger the same scene twice in a row, you have to set LastSceneID to 0 inside scene using following code:

luup.variable_set('urn:micasaverde-com:serviceId:SceneController1', 'LastSceneID', 0, fibaro_dimmer_id)

In my case dimmer’s S1 still works as before (with option #41 = 0), so it turns on/off and dims my light.
Additionally S1 & S2 set LastSceneID after click(s).

Hello there.

Did you manage to find S2 without this file? The reason i ask is that i 3 dimmers in my system and although i can control all via S1, i cannot see S2 anywhere for any device.

Like you, i just want to trigger a scene via S2 (the scenes run fine via dashboard).

Im using a Veralite controller with U7 (i noticed that they upgraded firmware last night.)

Im still new to this and any help is appreciated.

On a different subject, when configuring the different parameters of the Fibaro dimmer, can you do several at once or like me only one at a time because Vera does not save them?

Did you manage to find S2 without this file? The reason i ask is that i 3 dimmers in my system and although i can control all via S1, i cannot see S2 anywhere for any device.
You won't find S2 anywhere on screen, even with this file (it only adds "A scene is activated" trigger for dimmer device). Anyway, after latest upgrade I found all my dimmers, even those that dont use this file have this trigger visible. It seems that now there's no need to change the file.
Like you, i just want to trigger a scene via S2 (the scenes run fine via dashboard).
You need to set param #41 of the device to 1, to enable scene controller option of a dimmer. Next you have to create a scene that is triggered by "A scene is activated" trigger. You can find scene numbers in the manual of your dimmer.
On a different subject, when configuring the different parameters of the Fibaro dimmer, can you do several at once or like me only one at a time because Vera does not save them?
Before latest upgrade I had to set variables one by one. The workaround was te set them by changing VariablesSet var under Advanced tab. Currently (after upgrade) you should be able set several at once.

thanks for your help mate.

Thanks for this! I have a problem though and I’m hoping someone has some pointers - I just automated the lights at two of my clients and am using exactly the same controller for both installations (Vera Edge running UI7 and firmware 1.7.961). I’ve managed to get this solution to work for the one installation, no issues at all and has been working perfectly for over a week. The second installation initially showed me the ‘a scene is activated’ trigger, however it doesn’t anymore. I’ve verified that the custom .json file is correct, and correctly specified on the module I want to use S2 on. I just don’t have the option anymore. I’ve compared the config on both controllers and I am 100% certain my config is correct on the second controller. Any ideas where to look?