Added support for populating devices and setting their state and power consumption