10.01.2023, 10:41
Hi! I am new to LUA and the logic machine and would like to see if you can help me.
I have all the windows and door sensors under the group addresses 6/3 and I would like to create a function to check the status (1 bit) of the addresses in it so I can identify how many doors or windows are open and return the name of them.
I saw some examples of creating arrays to input all the addresses manually and then go through all of them with a for or similar but I wonder whether there is a way to automate it a bit more.
Thank you!!
I have all the windows and door sensors under the group addresses 6/3 and I would like to create a function to check the status (1 bit) of the addresses in it so I can identify how many doors or windows are open and return the name of them.
I saw some examples of creating arrays to input all the addresses manually and then go through all of them with a for or similar but I wonder whether there is a way to automate it a bit more.
Thank you!!