Configuring devices and getting state

Configuring devices and getting state