Author Topic: Fibaro Dimmer 2 FGD-212 Parameter 28 problems  (Read 462 times)

Offline m1cke

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Fibaro Dimmer 2 FGD-212 Parameter 28 problems
« on: February 23, 2017, 04:27:07 pm »
I?m a n00b. Just so you know. And english is not my first language,  from Sweden, no nothing did happen here :-)
Hope someone can help me with this.

Got a Vera plus and a bunch of Fibaro Dimmer 2 FGD-212.
I am planning to use these to control a ceiling lamp and a window lamp in three rooms and a wall mounted lamp + a scene in one room.
The first project is the wall lamp and a scene (set mode to night/home)

Setup worked fine. Got a dual switch with springs (monostabile)
I want S1 to dim the wall lamp and S2 to trigger a scene.
S1
1-press turns light on to 100%
1-press again dims to 1%
Double press turns on/off.
Press and hold does nothing, once I release it goes to 100% or 1%
So I can?t set dim level with the switch. Using Vera I can set dim-level and turn on/off.

To activate S2 to trigger scenes I set Parameter 28 to 1.
S1 can not turn off the light, double press does not turn on/off anymore. Dimming still does not work. Single press is strange, sometimes nothing, sometimes 1% or 100%.

So, when setting parameter 28 to 1 does this remove the direct controll of the dimmer on S1 so I have to set up scenes for the dimmer?

With the scenetrigger it seems to be some setup with LUA och PLEG, I find some old info on this (parameter 41 is not right for the new dimmer 2) but is there anybody who has a guide that can help me?

Offline mrtnox

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Fibaro Dimmer 2 FGD-212 Parameter 28 problems
« Reply #1 on: February 25, 2017, 04:47:25 pm »
Regarding the S1 problem i think you have set your switch hmm... upsidedown?? :-\ ? try set the spring on the other end of your button

Offline m1cke

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Fibaro Dimmer 2 FGD-212 Parameter 28 problems
« Reply #2 on: February 27, 2017, 02:13:36 pm »
THANK YOU @mrtnox
Must have tuned it around when I was putting in those small springs. Dimmer works perfect now! Going to se if this solved the other issue

Offline m1cke

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Fibaro Dimmer 2 FGD-212 Parameter 28 problems
« Reply #3 on: February 27, 2017, 05:11:44 pm »
S2 to trigger scenes works great using this guide
http://www.vesternet.com/resources/application-notes/apnt-126

Offline m1cke

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Fibaro Dimmer 2 FGD-212 Parameter 28 problems
« Reply #4 on: April 17, 2017, 07:58:30 am »
Got this working just fine S2 as scene controller, but now I got a couple of more dimmers...

This is what i put in the startup Lua
Quote
local YourDeviceID = 65

luup.variable_watch("SceneActivation","urn:micasaverde-com:serviceId:SceneController1","LastSceneTime",YourDeviceID)

function SceneActivation()
   local lastSceneID= luup.variable_get("urn:micasaverde-com:serviceId:SceneController1", "LastSceneID",YourDeviceID)
   if (lastSceneID== "26") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="14" },0)
   elseif (lastSceneID== "24") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="15" },0)
   elseif (lastSceneID== "25") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="16" },0)
   end
end

Works great, but when I add another dimmer only the last one works. So Device 65 stops working as a scene controller when I add Device 62.

Quote
local YourDeviceID = 65

luup.variable_watch("SceneActivation","urn:micasaverde-com:serviceId:SceneController1","LastSceneTime",YourDeviceID)

function SceneActivation()
   local lastSceneID= luup.variable_get("urn:micasaverde-com:serviceId:SceneController1", "LastSceneID",YourDeviceID)
   if (lastSceneID== "26") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="14" },0)
   elseif (lastSceneID== "24") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="15" },0)
   elseif (lastSceneID== "25") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="16" },0)
   end
end

local YourDeviceID = 62

luup.variable_watch("SceneActivation","urn:micasaverde-com:serviceId:SceneController1","LastSceneTime",YourDeviceID)

function SceneActivation()
   local lastSceneID= luup.variable_get("urn:micasaverde-com:serviceId:SceneController1", "LastSceneID",YourDeviceID)
   if (lastSceneID== "26") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="17" },0)
   elseif (lastSceneID== "24") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="18" },0)
   elseif (lastSceneID== "25") then
      luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="19" },0)
   end
end

Do I need another luupfile for a second scenecontroller?