Correct device name is appended when querying device status

device name was already constructed for given type and "id" ... for some reason it wasn't reused when querying device state. It is reused now.