Fibaro RGBW Controller (DTH link in post 32, police light smartapp link in post 79)

@erocm1231 - many thanks for the response! Sorry for the delay in responding. For some reason, I didn’t get the notification that you had posted a reply.

Just so I’m clear on your response (which to be fair, was somewhat clearer than mud ;)), if my toggle switch is only connected to GND and IN1 (and I amend the parameter 14 appropriately), will the RGBW strip turn off completely? The only part of your response that I’m not 100% sure on is where you say “Do this for each switch IN1-IN4 if you want to control multiple channels.”

Thanks again for the advice.

@Duggy Yes, if you have a single toggle switch connected to GND and IN1 and have parameter 14 set correctly, when you toggle the switch it will turn all channels off or all channels to what they were set at before the device was turned off.

I think this is the most likely scenario for the majority of people and in that case parameter 14 should be set to 5555 HEX (21845 decimal). I have a similar setup but my single switch connected to IN1 is a momentary switch. So I have parameter 14 set slightly different.

Let me know if you have any other questions! :smile:

Thanks, @erocm1231. I’ll have a crack at setting this up this evening and I’ll let you know how I get on.

Many thanks.

If every thing goes well, i’ll get the Fibaro today, can someone please tell me if i did the right thing,

The code from “Fibaro-RGBW-3-beta.groovy” its copy to the “Device Handlers” and not the the “SmartApps”.

To pair the Fibaro, in ST only need to go to Marketplace > Things > Connect New Device?

Thanks.

@erocm1231 - yup, wishful thinking that I wouldn’t have any more questions…

So, when I configured the necessary parametrers in the code for the Fibaro Dimmer 2, I could clearly see where to do it. I’ve down loaded Beta 3 from @twack and I’m just not 100% sure what to change here.

It feels like I need to edit pNumber (14 in my case) and pValue (5555 or the 21845?) in the last bit of the code I have pasted below. Is there anything else I need to change here?

Your ongoing patience with my ongoing incompetence is appreciated… :smile:

def updateZwaveParam(params) {
if ( params ) {
def pNumber = params.paramNumber
def pSize = params.size
def pValue = [params.value]
log.debug "Updating ${device.displayName} parameter number ‘${pNumber}’ with value ‘${pValue}’ with size of ‘${pSize}’"
def cmds = []
cmds << zwave.configurationV1.configurationSet(configurationValue: pValue, parameterNumber: pNumber, size: pSize).format()
cmds << zwave.configurationV1.configurationGet(parameterNumber: pNumber).format()
delayBetween(cmds, 1500)
}
}

@Duggy Hmmm, ok, seems like the device doesn’t have a configuration tile. For the sake of simplicity change your refresh method to look like what is posted below. Then, go into the device and hit the Refresh button.

def refresh() {
commands([
zwave.configurationV1.configurationSet(scaledConfigurationValue: 21845, parameterNumber: 14, size: 2),
zwave.configurationV1.configurationGet(parameterNumber: 14),
zwave.switchMultilevelV3.switchMultilevelGet(),
], 1000)
}

After the config is changed you can comment out the two additional lines or just leave them. It shouldn’t cause any harm.

1 Like

Can someone please tell me how to pair the Fibaro RGB with ST?

Just need to be turn on, and start searching for new devices?

And do i need a light switch (just switch,on/off), asking for some help because just install, when i press the “button” on Fibaro the lights turn on, them fade out and turn off.

ST can’t find Fibaro with out the switch?

Do i need Home Center Fibaro System for the RGBW to work??

Thank you!

@erocm1231 - Thanks for the code. Much appreciated.

I implemented this over the weekend and I’m delighted to report that it works (mostly). It does a bit of a strange thing if I select any of the presets (e.g.Storm or Police) and then try to switch everything off using the toggle switch. Instead of switching off, it cancels the present and sets the colour to white. If I switch the toggle switch again, then it switches off.

Interestingly, if I just mix a colour myself, it doesn’t do this. The switch just switches everything off and when I switch it back on again, it remembers the last colour (as you would expect).

Not a biggie and I can certainly live with it. Perhaps future releases by @twack will address this.

Thanks again for your patience and assistance.

1 Like

@Duggy that is strange. I’m not sure if there is really anything that can be done about that. I don’t think the device type controls what the device switches to when a physical toggle is used. It is handled internally on the device. Glad it seems to be working otherwise for you.

First, thanks to @twack for the device type and helpful hints throughout this thread.

Second, for anyone interested, I created a smartapp (my first ever) that can be used to assign any of the 5 available patterns for the Fibaro RGBW controller to any of your virtual/physical switches. This is really just an update to the Turn-on-Police-Light-When-Switch-Is-On.groovy smartapp that @twack posted earlier in the thread, the difference is this will allow you to select any switch as a trigger and then select any number of Fibaro devices (only Fibaro devices will be listed) and then select the pattern you want to activate with that switch. I used this to create virtual switches for my Amazon Echo to use so I can activate the various patterns by voice.

2 Likes

Sorry if I missed something in this thread which answers this, but does anyone else have issues with Smart Lighting’s “Turn on and set color” when using beta 3 of the device type? My Osram strip works fine for this but not the Fibaro.

Update: Had to reset the Fibaro controller again. It works but ignores the dimmer percentage. That issue doesn’t seem to be isolated to this device, however. I’ve also noticed that if I switch device types the ST app will start crashing when I go into the Fibaro device and the only way to recover is to remove and re-pair the fibaro. Annoying…

2 Likes

Both of my Fibaro controllers are crashing from the app again, so tomorrow morning I have to delete and re-add them again, it happens once every 4 days.
This time I’m going to stick with the Smartthings stock Fibaro RGBW device type and see what happens, even though it’s not very intuitive to use and doesn’t have a colour wheel.

1 Like

Is there even a default Fibaro device? I didnt see one last night.

So I’m using @twack 's awesome device handler for the Fibaro RGBW - no issues! Woot! Im new to groovy and I’m trying to tap into the Fib via a SmartApp. I used the tutorial that has you do:

switches.each {
it.on()
//it.Cyan()
//it.doColorButton("Cyan")
//it.setWhiteLevel(0)
//it.colorNameToRgb("Cyan")
}

I tried all of the above and none worked except for .on() Whats the best way to tap into the color functions from a smartapp?

Thanks!

@Ants setColor()

Pass the desired color setting in hex or in hue & saturation.

Thank you @erocm1231! That was the ticket. I now have the Fibaro reacting to whether Plex is playing TV shows and movies. Woo hoo!

Now I wished Netflix or Roku had events I could monitor so I could add more colors :frowning: :slight_smile:

I’d be very interested to know if anyone has got their Fibaro RGBW Controller to work consistently/permanently with Smartthings, and if so how, as I’ve been trying for two months now.

I have two of these in the garden, one 10 metre LED running off 12v transformer with an output of 10amps. And a 5 metre LED strip running off a 12v transformer outputting 5amps.

I’ve tried the “official” Fibaro RGBW Controller at the top of the device handler list, and I’ve tried Raymonds and also Twacks.

About 4 times each, on both modules. Each time deleting device completely, repairing, re-adding to Smartthings, they kind of work for between 2 and 5 days until the app crashes. They variously lose their last colour, random behaviour, random colour changes, and app crashing repeatedly.
Tonight one strip went red and stuck on red, I can’t imagine what my neighbours think.

1 Like

I’m using @twack orginal DH (link below) for almost 2 months now with a 5 meter LED strip and 12v transformer and it’s working great. No issues so far.

I’ve been using the “2015-01-04” version. I know it’s old but it works well, very stable, no issues with it.

I have been using @twack’s version for about a month now and have had 0 issues. I still have the SmartApp I published earlier in the thread setup and it works with the device type without issues as well. I suspect you have some other issue not related to the code, possibly a bad Fibaro controller?