10.06.2019, 08:48
(This post was last modified: 10.06.2019, 09:02 by Erwin van der Zwart.)
Hi,
Yes i know, Normally we don't create scripts on request (simply not possible to do that for everyone) and we give samples how to achieve something..
Here is the script you need:
Tag your objects /script like this:
You can do this the same for another floor with second script and different (unique) TAG's.
BR,
Erwin
Yes i know, Normally we don't create scripts on request (simply not possible to do that for everyone) and we give samples how to achieve something..
Here is the script you need:
Code:
heating_mode = grp.getvalue('1/1/1')
protection_mode = '1/1/8'
if heating_mode == true then
windows = grp.tag('Window')
windowopen = false
for _, window in ipairs(windows) do
if window.value == true then
windowopen = true
break
end
end
if windowopen then
grp.checkwrite(protection_mode, true)
else
grp.checkwrite(protection_mode, false)
end
else
grp.checkwrite(protection_mode, false)
end
You can do this the same for another floor with second script and different (unique) TAG's.
BR,
Erwin