Is the token use changing?
frawau opened this issue · comments
Hi,
A few weeks ago I decided to write my own library to control Yeelights using the protocol described here. I wanted to have provisioning and token harvesting (library aioiotprov) and control (aioyeelight)
So I took one of my Yeelight and started developing. .. I went well, soon I got provisioning and token harvesting working... and a bit later I got full control over the bulbs, including 'music_mode'
I published my work.
There was much rejoicing.
But then I decided to move over some of my others Yeelight... And I suddenly hit this peculiar problem..... Provisioning always works, but the harvested token result in an MD5 field filled with 0xff
I did reset my initial bulb, and went to the process again... Works good
I provisioned a Xiaomi HS2 air purifier... Provisioning works, token not.
Now my others Yeelights were using the so-called "LAN protocol" and I got them updated to the latest firmware. I wonder...
To make sure it was not just my library, I used python-miio and it behaves exactly the same way as aioyeelight.
There is one peculiar thing I did notice. After sending the hello packet, the response to the next command as the md5 field full of 0xff, but the packet size is much bigger than it should.
Has anyone encountered something like this?