jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
879 stars 159 forks source link

Can device id change? #348

Open szupi-ipuzs opened 1 year ago

szupi-ipuzs commented 1 year ago

So I always thought that device id is something unique and constant for a device, but my Birdfeeder proved me wrong: after I tried to fiddle with it and add it to Tuya app using /link (failed), I re-added the birdfeeder to the original Birdlover app. Then I succesfully dumped the localkey with TuyaAPI/cloud (and the Birdlover secrets), and I was surprised twice: 1) The new localkey was looking weird - had a lot of special characters like question marks etc. So far I have seen localkeys to contain only characters and letters. 2) The device ID changed!

What was even weirder, both of them proved to be valid, working correctly with "local" solutions like tinytuya. Has anyone experienced something like this with any other tuya device?

I have repeated the adding process only to see the same scenario - both localkey and device id changed!

uzlonewolf commented 1 year ago

Yep, I saw the local key thing ~2 weeks ago https://github.com/jasonacox/tinytuya/discussions/341 . Have you seen any symbols that are not in that list?

I haven't noticed the device id changing yet though it doing so doesn't surprise me.