Page 1 of 1
Fibaro FGD-211 second switch
Posted: Sunday 21 June 2015 0:31
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
Re: Fibaro FGD-211 second switch
Posted: Wednesday 05 August 2015 1:41
by Clement
Hello,
I have the same issue and no solution so far. Have you found something useful Mischa ?
Best regards,
Clément.
Re: Fibaro FGD-211 second switch
Posted: Wednesday 05 August 2015 21:54
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
Re: Fibaro FGD-211 second switch
Posted: Monday 10 August 2015 17:14
by koenjer
Hi MIcha,
Did you manage to make a working script?
Re: Fibaro FGD-211 second switch
Posted: Sunday 06 September 2015 13:37
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.
Re: Fibaro FGD-211 second switch
Posted: Wednesday 21 October 2015 11:00
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?
Re: Fibaro FGD-211 second switch
Posted: Wednesday 21 October 2015 20:15
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
Re: Fibaro FGD-211 second switch
Posted: Wednesday 21 October 2015 21:20
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.
Re: Fibaro FGD-211 second switch
Posted: Wednesday 21 October 2015 21:28
by mischa
Weird,
I get a response in my log.
Did you add it as an device in devices tab?
Mischa
Re: Fibaro FGD-211 second switch
Posted: Sunday 25 October 2015 12:07
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?
Re: Fibaro FGD-211 second switch
Posted: Sunday 25 October 2015 12:07
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?
Re: Fibaro FGD-211 second switch
Posted: Tuesday 27 October 2015 20:36
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
Re: Fibaro FGD-211 second switch
Posted: Monday 02 November 2015 18:15
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
Re: Fibaro FGD-211 second switch
Posted: Monday 02 November 2015 19:34
by mischa
Glad i could be of help!
Mischa
Re: Fibaro FGD-211 second switch
Posted: Tuesday 16 February 2016 8:03
by Szwuntex
Thank you mischa and gjnijenhuis!
My second "button" S2 on my FGD-212 is now working perfectly thanks to you two.