Changed partitionkey to devicename