1) Give a description of the problem
I would like to use loops for this (and many other things) but I seem to be fundamentally not grasping the best way to do it. I have instead brute-forced it by adding my 3 doors. This is all well and good when there are only 3 but for some sensors it will be a huge PITA to copy/paste each block and god forbid I need to make a change to all of them. I’m a developer and so it’s really annoying me that I’m apparently too stupid to make basic forEach loops work. I would REALLY appreciate if someone could either point me in the right direction or even re-write my posted script so it works the same but does it in a loop.
2) What is the expected behaviour?
Not sure
3) What is happening/not happening?
Not Sure
4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
N/A