I’m writing a piston to monitor all my sensors, The idea is to turn on a matching virtual switch if there is no activity on the sensor for a certain period of time.
I have an array of alert virtual switches, but I’m not sure how to turn one on/off by referencing it within the array of devices.
eg
with failSensor[3]
turn on
Is there a way of achieving this?