"{Item:{id:}" data testing [duplicate]

You are looking for the Damage tag. It is of type short, so you also need to suffix the number with an 's':

{Item:{id:minecraft:dye,Damage:7s}}