Skip to content

Commit

Permalink
GEA_V5.02
Browse files Browse the repository at this point in the history
problemns with lights turn on turn off
  • Loading branch information
sjauquet committed Dec 18, 2014
1 parent b8e4494 commit e975891
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GEA.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1222,10 +1222,11 @@ if (not GEA) then
local id = GEA.getId(entry, entry[GEA.keys["PARAMS"]][i])
if (id > 0) then
local etat = fibaro:getValue(tonumber(id), "value")
if (GEA.match(type, "rgb_driver") and (tonumber(fibaro:getValue(tonumber(id), "value")) > 0 ) or tonumber(fibaro:getValue(tonumber(id), "currentProgramID")) > 0) then
local type = fibaro:getType(tonumber(id))
if (GEA.match(type, "rgb_driver") and ((tonumber(fibaro:getValue(tonumber(id), "value")) > 0) or (tonumber(fibaro:getValue(tonumber(id), "currentProgramID")) > 0))) then
-- verison 3.x
etat = 1
elseif (GEA.match(type, "com.fibaro.FGRGBW441M") and (tonumber(fibaro:getValue(tonumber(id), "value")) > 0 and not fibaro:getValue(tonumber(id), "color") == "0,0,0,0") or tonumber(fibaro:getValue(tonumber(id), "currentProgramID")) > 0) then
elseif (GEA.match(type, "com.fibaro.FGRGBW441M") and ((tonumber(fibaro:getValue(tonumber(id), "value")) > 0) and (not fibaro:getValue(tonumber(id), "color") == "0,0,0,0") or (tonumber(fibaro:getValue(tonumber(id), "currentProgramID")) > 0))) then
-- verison 4.x
etat = 1
end
Expand Down

0 comments on commit e975891

Please sign in to comment.