Fibaro 2 Dimmer (212 not 211)

Sorry to request spoonfeeding, but what is the additional code added for the tile - Im still learning the various bits of the handlers in order that I may be able to modify my own going forward.

In the metadata section you need to register the getConfigReport method as a command:

    command "reset"
    command "changeSingleParamAfterSecure"
    command "configureAfterSecure"
    command "getConfigReport"

then in the tiles section, add a new standardTile, and update the details array to include the new tile:

	standardTile("getConfig", "device.power", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
		state "default", label:'Get Config', action:"getConfigReport"
	}

	main(["switch","power","energy"])
	details(["switch","power","energy","configureAfterSecure","refresh","reset","getConfig"])

That should give you a new tile, which when pressed, will call getConfigReport(). Have the IDE open on the logging tab and you should see the results when the configuration reports come back from the device…

Thanks, I had kind of got it working.

I can now see the reports in the logging, However when I go to the settings of the device, and I can see all the parameters available to be set (hajars device handler) - when I click done, I get ā€œplease fill out all required fieldsā€

Edit: fixed it. It appears some sort of glitch with android, once all the values are set once using either ide or an ipad/iPhone then setting via android works fine.

I now have dimming Leds, no need for a bypass and the dimmer configurable from the smartthings app thanks to that handler.

Thanks for all the help! Awesome.

Huge thanks to @hajar for the device handler,
used it today in my setup: here

Hi All,

This may have been mentioned before but cannot find it through the threads here. I have the Fibaro 2 dimmer 212, and the problem I face is that when linked to my wall light switch in the hall way which is connected to 5 GU10 LED non dimming bulbs and 1 Halogen GU10 bulb. The reason i have 1 halogen bulb is if i have all 6 LED it will not work. The lights will go from dim to bright, flash twice then turn off and never come back on.

Would any one know the reason for this? Is it because they are non dimming LED bulbs? If i change them all to dimming LED bulbs would that resolve the issue?

Thanks
Mitch

having a 2 or 3 wire setup?
If your load is to low when in 2 wire setup, it wont work.
If you wire it in a 3 wire setup, it will work as low as 20w led, as far as i’ve tested :slight_smile:

Hi,

Looking at the two wire set up, im sure that’s how I done it, the diagram 2 setup.

I don’t have a neutral so it’s linked across like in the diagram.

It’s connected to a three gang switch, but only works for one of those toggle switches which is the hall way. The other one is for upstairs and the other being outside lighting.

Ok, but do you maybe have the second wire’s for all the 3 sources in the box?
maybe they’re all connected together with a wago or something?
Dont remember the colors off the cables in uk, but here in norway we usually have blue and brown.
and off course green/yellow for earthing.
black and white is used for switches.

usually then in a 2 wire setup you have blue and brown going to the light complete 220v, but with the live (brown) cut in the middle with a switch on it, just cutting and re-stablishing the contact.
reason for this working with an electrical switch as the fibaro, is that it is switching/alternating power.
so its getting both live and neutral in a 60hertz swinging pattern.
but its not the most stable for the fibaro, and some others at low load.
Which brings us to the 3 wire setup.
Here you have both live and neutral connected to the fibaro, so the setup will be like this:
blue (N) and brown (L) going to the light but brown (L) cut so it goes from SX/switched from your fibaro to the light, the other cut part goes to the Live terminal on the fibaro just the same as a 2 wire setup, but you also cut the blue (N) and connect it both to the light, and the N terminal.

Sorry for poor explaining, but do not have any diagram, and only writing what i remember from my last install a couple of weeks ago. :stuck_out_tongue:

Thanks, think what i will do tomorrow is remove the switch and send you an image if you dont mind, think I may need to do what you mentioned but not sure exactly how to do it. Ill post an image tomorrow to see if i have wired it incorrectly.

Sure, no problem :slight_smile:

The Dim with Me app will work for this. Just set the Fibaro as the master and any number of dimmable bulbs as slaves and they will all follow the Fibaro state.

Hi all,

I’ve been using Smartthings for quite a while but have been really struggling with the Fibaro 2 dimmer. I purchased a number of these for use around the house but after running in to difficulties with the first installation I have put the rest on hold.

I am UK based and so am using the 2 wire configuration. I am also using a single momentary switch.

The device was recognised as a standard D-wave device but in this configuration the switch bahviour was more than quirky.

I have spent the last few hours playing around with the groovy script kindly contributed by Rajiv.

Using this device handler I can now see power draw and turn the light off and on and dim via the app. The issue however is when using the momentary switch.

From off - the light turns on, but when on it is not possible to turn off via the switch.

Double tap does nothing. Holding the switch down, dims until moment of release when it returns to full brightness.

Any help here would be greatly appreciated!

It sounds like you might not have that momentary switch wired up properly… Perhaps you have it wired up on a ā€˜push to break’ rather than a ā€˜push to make’? My momentary switches have a contact for each, so the fix might be quite simple.

Thank you! i’ll try that when i get home for work and ket you know i got on

Hey all, I’ve added my own device handler for the Fibaro Dimmer 2 to my github repository here.

This extends hajar’s code with my own version of Nightmode (which now has its own tile/button) and fixes a number of bugs/niggles I found, e.g. power is now shown to one decimal place. It also includes the ā€˜Get Config’ button which will list out device parameters to the debug log, which enables you to see what the auto-calibration function has changed. Any feedback is always appreciated.

I’ve been trying your device handler and it looks just what I need, with the night mode, but unfortunately it’s force closing the SmartThings app when I press the settings to try to change parameters. I’m on android.

Unfortunately I’ve only tested on the iPhone. I recommend fiddling with the preferences section in the code to see if you can work out what’s causing the crash. It could possibly be due to the use of sections{}, or with the inputs of type: ā€œtimeā€. Try removing each in turn to see if it solves the problem.

[EDIT]
Also, try editing the definition for the two time inputs, by adding name: and type:;
input name: ā€œconfigNightmodeStartTimeā€, type: ā€œtimeā€ā€¦
input name: ā€œconfigNightmodeStopTimeā€, type: ā€œtimeā€ā€¦
(I’ve made this change on GitHub.)

Ive had issues with this on android and it seems to be some sort of issue with smartthings and not zcapr17’s code.

The solution (for me anyway) was to go to the device in ide, set all the paramters to their default and save. Then when you then open it in android it works fine.

Could you give me the first 4/5 parameters that you used please, the new ones I’m missing, I already have all the others filled in, I’m missing the correct way to input the first 4/5 that I can put into the ide settings, thanks.

Hey there, thanks for the suggestion.

After making the change a button press is successfully turning the light off or on. Dimming functionality has been lost. I’m guessing this is a parameter setting so will have a play around.