Similar logic could be used for lights or locks, but the piston would have to be revised because, as currently written, it checks the status of the deviceâs contact instead of switch or lock, as you can see on lines 56, 58, and 91 of your snapshot. Iâve never really given this any thought as lights and locks are easy to turn off or lock remotely if theyâve been on or open too long, but I would probably create separate pistons to accomplish this to avoid complications.
Also, note that you have an error on lines 40 and 93, as the originating piston is not correctly specified. If the originating piston is not paused and resumed, the âBâ piston may not always behave as expected.
With regard to lines 24-26, on the snapshot you provided those are fixed variables, so I donât think those are the lines you intended to reference. My suspicion is that you meant to reference one of list variables below the line that says âDo Not Modify.â If so, then what youâre describing is normal. Clearing and/or stuffing list variables has been a hot topic around here for a while, but I donât recall if the issue was ever fully addressed. In any case, while itâs annoying, itâs also harmless.