Fibaro FGD-211 second switch

Moderator: leecollings

Post Reply
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Fibaro FGD-211 second switch

Post by mischa »

I have a Fibaro Dimmer module FGD-211, how can i use the second switch (second input) of the dimmer in Domoticz running on a PI2 with Razzbery 2.0?
Want to make the second input as an all on/off switch.

I see the second input in my device list. and get another one when I double click and even another one when I tripple click the button!

See attachment!

Thanks,
Mischa
Attachments
FGD-211.PNG
FGD-211.PNG (7.84 KiB) Viewed 6331 times
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
Clement
Posts: 1
Joined: Tuesday 04 August 2015 23:32
Target OS: Linux
Domoticz version:
Contact:

Re: Fibaro FGD-211 second switch

Post by Clement »

Hello,

I have the same issue and no solution so far. Have you found something useful Mischa ?

Best regards,
Clément.
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by mischa »

You can not use the second switch as a (normal Domoticz) light switch, seems that is always in the on position (see my attachment in post above).
It is possible to switch another module or scene with a script using the idx of the second switch.
example: 1x click turn light on 2x click turn light off. 3x click activate scene.

Just got back from the holidays, if a have more time this weekend. i will post a sample script.

Mischa
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
koenjer
Posts: 4
Joined: Wednesday 29 July 2015 14:29
Target OS: Windows
Domoticz version: 3.8153
Location: Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by koenjer »

Hi MIcha,

Did you manage to make a working script?
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by mischa »

@koenjer

Here is an example script.
I use the Dollar sign to hide the button from the switches page, because you can not use it as a regular switch.
Here i use the second button to switch on the LED strips i mounted underneath the treads of my stairs.

$Woonkamer Achter [2][1x click] = the second button (input) pressed once on a Fibaro FGD-211 dimmer module in my livingroom.
Trap = the second output on a Fibaro RGB module ( i switch 4 different led strips with this module / stairs, kitchen cabinets, kitchen closet and the toilet lighting)

incredible thing that RGB module, i can dim the LED strip stable to 1%

Code: Select all

commandArray = {}
if (devicechanged['$Woonkamer Achter [2][1x click]'] == 'On') then
	commandArray['Trap']='Set Level 1'
	elseif 
	(devicechanged['$Woonkamer Achter [2][2x click]'] == 'On') then
	commandArray['Trap']='Set Level 100'
	elseif
	(devicechanged['$Woonkamer Achter [2][3x click]'] == 'On') then
	commandArray['Trap']='Off'
end
return commandArray
eventually i tie up the LED strip to another Fibaro dimmer device to switch on when the lights in the hall of the first floor are switched on.
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
gjnijenhuis
Posts: 4
Joined: Tuesday 20 October 2015 9:43
Target OS: NAS (Synology & others)
Domoticz version: V2.4025
Contact:

Re: Fibaro FGD-211 second switch

Post by gjnijenhuis »

I have the FGD-212 dimmer from Fibaro but am unable to get the 2nd switch to work.

There is not any device that shows a status change in the device list when the 2nd switch is activated.

Do I need to set any specific setting in the Z-Wave configuration to get this to work?
Synology DX713+ with Domoticz | RFXCom RFXtrx433e | AEON Labs ZWave Plus USB Stick | 5x Fibaro FGD-212 Dimmer 2 | 4x Fibaro FGMS-01 Beweginssensor | Osram Lightify Gateway | 1x Osram Lightify RGBW Lamp E27 | 1x Oregon THGR810 Temperature / Humidity Sensor
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by mischa »

@gjnijenhuis

I have done nothing to the z-wave settings, as you can see in my first post the state of the switch is always "On,level 255"
Hide it from the switches page by putting the dollar sign in front of name. Because when u push it on the Domoticz switches page you get an error and nothing happens.

you can use it to run a script, see my others posts in this topic.

Mischa
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
gjnijenhuis
Posts: 4
Joined: Tuesday 20 October 2015 9:43
Target OS: NAS (Synology & others)
Domoticz version: V2.4025
Contact:

Re: Fibaro FGD-211 second switch

Post by gjnijenhuis »

Yes I understood that already.

But when I look in the activity log there are no actions registred when pushing the button. Only showing 1 on action for each domoticz restart but no actions from pushing the switch.
Synology DX713+ with Domoticz | RFXCom RFXtrx433e | AEON Labs ZWave Plus USB Stick | 5x Fibaro FGD-212 Dimmer 2 | 4x Fibaro FGMS-01 Beweginssensor | Osram Lightify Gateway | 1x Osram Lightify RGBW Lamp E27 | 1x Oregon THGR810 Temperature / Humidity Sensor
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by mischa »

Weird,

I get a response in my log.
Did you add it as an device in devices tab?

Mischa
Attachments
Knipsel1.PNG
Knipsel1.PNG (21.72 KiB) Viewed 5970 times
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
barbaar
Posts: 56
Joined: Wednesday 24 December 2014 16:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Fibaro FGD-211 second switch

Post by barbaar »

I have exact the same problem using an FGD-212.

I have three switches in my living room. By pressing one switch I want all light to turn on. This works using an Fibaro FGS-222 (relay sensor). But when pressing the switch connected to the FDG-212, nothing happens.

Activating the scene directly in Domoticz works also. Lokks like Domoticz is not detecting the devicechange of the FGD-212?
barbaar
Posts: 56
Joined: Wednesday 24 December 2014 16:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Fibaro FGD-211 second switch

Post by barbaar »

I have exact the same problem using an FGD-212.

I have three switches in my living room. By pressing one switch I want all light to turn on. This works using an Fibaro FGS-222 (relay sensor). But when pressing the switch connected to the FDG-212, nothing happens.

Activating the scene directly in Domoticz works also. Lokks like Domoticz is not detecting the devicechange of the FGD-212?
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by mischa »

@barbaar

have you set parameter 41. Scene activation functionality: to functionality activated ?
not sure if this causes your problem, but worth to try...

Mischa
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
gjnijenhuis
Posts: 4
Joined: Tuesday 20 October 2015 9:43
Target OS: NAS (Synology & others)
Domoticz version: V2.4025
Contact:

Re: Fibaro FGD-211 second switch

Post by gjnijenhuis »

mischa wrote:@barbaar

have you set parameter 41. Scene activation functionality: to functionality activated ?
not sure if this causes your problem, but worth to try...

Mischa
Mischa you are my hero.

After setting the 'Scene activation functionality' to 'Functionality Activated' (which for the FGD-212 is parameter number 28) some extra switched popped up in the devices tab.

In my case, with a mono-stable switch, 2 switches react to the switch of the button. 1 switch for each position of the switch (1 for 'On' to 'Off' and 1 for 'Off' to 'On'). See attached screenshot.

I have made the following LUA script to let it work perfectly in my situation:

Code: Select all

commandArray={}

for e,v in pairs (devicechanged) do
        -- check if device is the one we are looking for
	if e == "$Schakelaar Lamp Woonkamer Positie 1" or e == "$Schakelaar Lamp Woonkamer Positie 2" then
		if otherdevices['Lightify Woonkamer'] == 'Off' then
			commandArray['Lightify Woonkamer'] = 'On'
		else
			commandArray['Lightify Woonkamer'] = 'Off'
		end
	end
end
return commandArray
Attachments
FGD-212 Second switch with Bi-Stable switch wired
FGD-212 Second switch with Bi-Stable switch wired
FGD-212 Second switch with Bi-Stable switch wired.PNG (16.36 KiB) Viewed 5792 times
Synology DX713+ with Domoticz | RFXCom RFXtrx433e | AEON Labs ZWave Plus USB Stick | 5x Fibaro FGD-212 Dimmer 2 | 4x Fibaro FGMS-01 Beweginssensor | Osram Lightify Gateway | 1x Osram Lightify RGBW Lamp E27 | 1x Oregon THGR810 Temperature / Humidity Sensor
mischa
Posts: 74
Joined: Tuesday 07 April 2015 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8872
Location: Heerhugowaard, The Netherlands
Contact:

Re: Fibaro FGD-211 second switch

Post by mischa »

Glad i could be of help!

Mischa
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)
Szwuntex
Posts: 9
Joined: Friday 31 July 2015 13:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Fibaro FGD-211 second switch

Post by Szwuntex »

Thank you mischa and gjnijenhuis!
My second "button" S2 on my FGD-212 is now working perfectly thanks to you two.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest