Moved insteon device on/off logic to a for loop so the program will support as many insteon devices as it finds in the device database