convert devices to dictionaries