SmartThings Community

[RELEASE] Fibaro FGS-222 Double Relay Device Handler (Also Philio PAN 02/04)


(cjcharles) #1

Hi all,

I have yet another (the third I think) iteration on this device handler. This time I have taken Robin (@RobinWinbourne) and Eric’s (@erocm1231) device handler and added Child Devices, hence you dont need to use a SmartApp any more, making it easier to have multiple devices (if you have two FGS-222’s).

Because the Philio PAN 02/04/08 models use similar commands to Fibaro FGS222, this device handler should work fine with Philio aswell, I have added one extra parameter to the config section to allow Philio configuration. If you have a Fibaro you can leave this parameter (2) blank (in fact all commands can be blank unless you want to override the detault values).

Installation is simple, all you do is install the Fibaro FGS-222 device handler (add it as code, then press save and publish). Then after discovering the device using the SmartThings app, you need to change the device handler to use the one just added. When you go into settings (top right) and exit again, it will automatically create the two child devices for each of the two relays. You are then free to rename them (or even delete one) as required.

Note, this uses an erocm1231 published child switch which is now hosted by SmartThings, hence you shouldnt need to install a child device template.


[RELEASE] Device Handler - Fibaro FGS-222 Double Relay Switch
[RELEASE] Fibaro Single Switch 2 FGS-213 & Double Switch 2 FGS-223
Fibaro FGS-222 Dual Relay (ZWN-RSM2 device type) - WORKS!
[RELEASE] Device Handler - Fibaro FGS-222 Double Relay Switch
Switch operated fireplace -- Best option and price for a dry contact relay whether z-wave or zigbee
Fibaro binary input (Dual contact and temperature sensor)
Can I create a Device Handler to control two switches of my double relay device?
FGS-222 problem
Fibaro Dual 223 relay
Fibaro FGS-222 Dual Relay Switch integration
Best way forward (new U.K. user)
Fibaro Momentary Relays
(Robin) #2

Nice job… I’ve updated my handler thread to point towards yours, as yours is better lol!


(Lee) #3

Hi guys, thank you for your work on this.

I’ve managed to setup the device handler, and each “Switch” is responding correctly…
What i do not understand however is how to name the devices, and how to expose them to something like Alexa.

When searching for devices in Alexa, using Smartthings, the Fibaro device does not show at all.

Thanks for your help,
Lee


(Robin) #4

You can go into each child device, click the cog (gear) symbol and rename as usual.

You need to go into the Alexa app via the ST app and authorise devices (unless you have ‘all’ selected already?)


(Lee) #5

Ahh the child devices didn’t appear until after i renamed the device for some reason.


(cjcharles) #6

Yes, it creates the devices after exiting from the settings menu, hence a name change would have triggered it too. Hope all is working for you now!


(Lee) #7

I had been in the settings menu as per the instructions, but it was only until i actually made a change, did it show up.

Thanks again guys :D… Working nicely.


(Robin) #8

That would make sense… it all updates following a def updated () event.


(Christophe Sellan) #9

Do you think I can remove the first device created and just have the two child devices? it is just to have a clean things tab.


(cjcharles) #10

Im afraid SmartThings do not allow that, however I have the 222-device named “ZZ Location” so it stays on the bottom of my list and I do not notice it, the child devices can then have normal (non ZZ names!!).


(Robin) #11

I do the same… Quickly got out of hand lol!

Z
ZZ
ZZZ
ZZZZ
ZZZZZ


(Christophe Sellan) #12

Ok, thanks for the answer and a very big thank you for this super device handler


#13

This is great, thank you!


(Hiato) #14

I just updated my device handler with this one and it didnt work. i can’t control the main switch, or s1 or s2… what am I missing?


(cjcharles) #15

What do you see in Live Logging in the dashboard when you press the buttons? Focus on getting the main device working first, and then hopefully the child devices should be easy after that.

Did you just copy and paste the code to replace the old device handler?


(Hiato) #16

When i click “On” on the parent switch, nothing shows in the live log, same for child switches from within the parent switch screen or their own screens…
and yes, i just copy pasted your code…


(Hiato) #17

@cjcharles it seems like the functionality of the relay is lost once the device handler has anything to do with child switches. I’m saying this cuz i just tried this handler https://github.com/RobinWinbourne/Smartthings/blob/master/Fibaro%20FGS-222%20%20Double%20Relay%20Switch and i can control the relay at all.

any thoughts?..


(cjcharles) #18

Are you saying swapping back to Robin’s device handler and it starts working again? If thats the case then it seems something went wrong when changing the device handler… When pressing the button I would expect to see something in the logs about parsing of the commands…

Did it work before? Did the firmware on your hub update in between when you last knew it was working?

I assume the switch on the wall still works? Have you tried pressing configure? Have you filled in all of the config parameters in the settings screen? (shouldnt actually need them but just to be sure).


(Hiato) #19

@cjcharles switching back to Robin’s still doesn’t work.
I used to use this as a single switch but I came across your device handler and thought of giving it a shot but still no luck. I tried every device handler for double relay but no luck… very frustrating…


(cjcharles) #20

And you definitely have the FGS222? The 223 and FGR222 are different. Sorry for the simple questions, I’m just trying to understand what might be different…

If you do have the right device then I would suggest removing it and readding it. The commands are sent in such a way that the buttons should trigger an action in the switch (and changing light status), irrespective of whether there is an error updating the device status in smartthings.

Do you still have some smartapps which are using the device and may be causing a problem changing the Device Handler?