Say you want to use a RGBW module to control other dimmer2 devices in your set up.
The following scene and settings will let you do just that.
Useful also if you are trying to upgrade a old bus wired smart home systems with home run controlled circuits
to zwave system.
Mount RGBW modules in old system switch locations. Use old bus wiring as 12v/24v RGBW supply.
Replace old din mounted dimmer and switch modules at control cabinet with zwave devices giving you up to 4 switches
per RGBW module.
Solved, thanks @ReneNL
and @Soporte Life2Better for response time hint
Use this scene, set module to output mode, set parameter 10 to 1 sec
488 = RGBW module id
122 to 118 = controlled remote dimmers id's
--[[
%% properties
488 value
%% events
%% globals
--]]
rgb = 488
dimmer1 = 122
dimmer2 = 152
dimmer3 = 156
dimmer4 = 118
function split(source, delimiters)
local elements = {}
local pattern = '([^'..delimiters..']+)'
string.gsub(source, pattern, function(value) elements[#elements + 1] = value; end);
return elements
end
colorstatus = split(fibaro:getValue(rgb, "color"),",")
fibaro:call(dimmer1,"setValue", math.floor (100*(colorstatus[1]/255)))
fibaro:call(dimmer2,"setValue", math.floor(100*(colorstatus[2]/255)))
fibaro:call(dimmer3,"setValue", math.floor(100*(colorstatus[3]/255)))
fibaro:call(dimmer4,"setValue", math.floor(100*(colorstatus[4]/225)))