Fibaro Dimmer 2 FGD-212 Parameter 28 problems

I?m a n00b. Just so you know. And english is not my first language, from Sweden, no nothing did happen here :slight_smile:
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?

Regarding the S1 problem i think you have set your switch hmm… upsidedown?? :-\ ? try set the spring on the other end of your button

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

S2 to trigger scenes works great using this guide
[url=http://www.vesternet.com/resources/application-notes/apnt-126]http://www.vesternet.com/resources/application-notes/apnt-126[/url]

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

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.

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?