read_value with index and name of device