The command that was given did not work for me as the command for miio seems to be miiocli now (I installed python-miio from pip on Python 3).
Also, the syntax changed a bit and the token now seems to be required too (an exception is raised if it is omitted).