python-miio icon indicating copy to clipboard operation
python-miio copied to clipboard

mirobo id_file is not being created automatically

Open fabian727 opened this issue 5 years ago • 3 comments

I followed the manual and got stuck at the step to install the firmware: mirobo --token XXXXXXXXXXXXXXXX --ip ROBOT_IP_ADDRESS update-firmware path/to/built/image.pkg

instead of the update procedure, I got errors. I got them fixed by creating an id file with {} as content and reference it. Instead of above command, I would suggest to use:

echo {} >> id_file.txt mirobo --id-file id_file.txt --token XXXXXXXXXXXXXXXX --ip ROBOT_IP_ADDRESS update-firmware path/to/built/image.pkg

Afterwards I also had to downgrade the producers firmware and everything worked like it should.

Thank you for your service, time and effort in this project. I wouldn't have bought an automatic cleaner, which phones home.

fabian727 avatar Dec 02 '21 17:12 fabian727

Hi and thanks for the report, glad that you like the project :-)

Some recent change broke the id file creation logic. Until that is fixed, creating that file manually ($HOME/.cache/python-miio/python-mirobo.seq with {} as content) also works if you want to avoid using --id-file.

rytilahti avatar Dec 02 '21 19:12 rytilahti

can you enhance the manual or fix it? Did take the most time of the installation procedure to get the googling done ;)

fabian727 avatar Dec 02 '21 20:12 fabian727

The linked PR should fix this, I suppose it wasn't caught earlier as most of the users (if existing) had already used mirobo already at least once, so it was working just fine :-)

rytilahti avatar Dec 02 '21 23:12 rytilahti