First use (for) and increment adress for knx (its better for script)
exemple :
--------------------------------------------------------
windows_number = 50
windows{}
For a = 0,Windows_number,1 do
windows[a] = grp.getvalue('0/0/'..tonumber(a))
os.sleep(0.2)
end
message = windows
if windows[1] == true then
message =message + ' 1'
end
if windows[2] == true then
message =message + ', 2'
end
if windows[32] == true then
message =message + ' ,32'
end
message = message + ' is open'
--------------------------------------------------------
then use mail function
Best regard
Give me the knx adress (alarme and all windows ) and i will write a script for you (whith mail )
exemple :
--------------------------------------------------------
windows_number = 50
windows{}
For a = 0,Windows_number,1 do
windows[a] = grp.getvalue('0/0/'..tonumber(a))
os.sleep(0.2)
end
message = windows
if windows[1] == true then
message =message + ' 1'
end
if windows[2] == true then
message =message + ', 2'
end
if windows[32] == true then
message =message + ' ,32'
end
message = message + ' is open'
--------------------------------------------------------
then use mail function
Best regard
Give me the knx adress (alarme and all windows ) and i will write a script for you (whith mail )