meme chose avec un dimmer chez moi
--[[
%% properties
%% globals
Etat_Alarme
Day_Phase
--]]
while fibaro:getGlobalValue("Etat_Alarme") == "Intrusion" and
fibaro:getGlobalValue("Day_Phase") == "7 - Nuit" do
-- switch on
fibaro:debug("Lumiere ON")
fibaro:call(181, "turnOn") -- chambre parents
fibaro:call(181, "setValue", "80");
fibaro:sleep(4*1000)
if fibaro:getGlobalValue("Etat_Alarme") == "Intrusion" then
-- switch off
fibaro:debug("Lumiere OFF")
fibaro:call(181, "setValue", "10");
fibaro:sleep(4*1000)
end
end