Improved logging, fixed on and off commands for devices
Improved logging, fixed on and off commands for devices