-
Notifications
You must be signed in to change notification settings - Fork 0
/
217. Heating off in vacant rooms
51 lines (40 loc) · 1.29 KB
/
217. Heating off in vacant rooms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--[[
%% properties
%% events
%% globals
RomFanny
RomMari
RomKatrine
RomForeldre
RomKontor
RomSpill
RomPlaymo
--]]
local startSource = fibaro:getSourceTrigger();
if fibaro:getGlobalValue("RomFanny") == "Kaldt"
then fibaro:call(607, "pressButton", "3");
end
if fibaro:getGlobalValue("RomSpill") == "Kaldt"
then fibaro:call(335, "pressButton", "2"); -- spillrom syklus
elseif fibaro:getGlobalValue("RomSpill") == "Bebodd" and
fibaro:getGlobalValue("Ferie") == "Nei"
then fibaro:call(335, "pressButton", "4"); -- spillrom sparing
end
if fibaro:getGlobalValue("RomPlaymo") == "Kaldt"
then fibaro:call(339, "pressButton", "2"); -- Playmo syklus
elseif fibaro:getGlobalValue("RomPlaymo") == "Bebodd" and
fibaro:getGlobalValue("Ferie") == "Nei"
then fibaro:call(339, "pressButton", "4"); -- Playmo sparing
end
if fibaro:getGlobalValue("RomKatrine") == "Kaldt"
then fibaro:call(627, "pressButton", "2"); -- Katrine
end
if fibaro:getGlobalValue("RomMari") == "Kaldt"
then fibaro:call(606, "pressButton", "3"); -- Mari
end
if fibaro:getGlobalValue("RomForeldre") == "Kaldt"
then fibaro:call(136, "pressButton", "3"); -- Foreldrerom
end
if fibaro:getGlobalValue("RomKontor") == "Kaldt"
then fibaro:call(626, "pressButton", "2"); -- Kontor
end