fix uninitialised variable
add support for executing actions and list device states in cmdmgr.py
more work on the Hue plugin