Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- %% properties
- %% globals
- --]]
- fibaro:call(9, "startProgram", "5");
- fibaro:call(33, "startProgram", "5");
- fibaro:call(26, "startProgram", "5");
- fibaro:call(74, "turnOn");
- fibaro:call(72, "turnOn")
- fibaro:call(68, "sendPush", "Status: Alarmanlage ausgelöst", "breached");
- fibaro:call(113, "sendPush", "Status: Alarmanlage ausgelöst", "breached");
- while (tonumber(fibaro:getValue(16, "armed")) > 0 and tonumber(fibaro:getValue(18, "armed")) > 0 and tonumber(fibaro:getValue(20, "armed")) > 0 and tonumber(fibaro:getValue(55, "armed")) > 0) do
- fibaro:debug('Alarm is breached...');
- fibaro:sleep(1*1000);
- end
- fibaro:call(9, "setColor", "255", "0", "0", "0");
- fibaro:call(33, "setColor", "255", "0", "0", "0");
- fibaro:call(74, "turnOff");
- fibaro:call(72, "turnOff");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement