Configuring devices and getting state