redphx / roborock-tuya-token

Get Tuya token from Roborock app
23 stars 0 forks source link

token extraction with android phone bit rest should be controlled by the ios app #2

Open u20p17 opened 3 years ago

u20p17 commented 3 years ago

Hi, I want to use the iOS roborock app and extract the token which i need for the roborock plugin for homebridge. There is only a guide for doing it with the modded android roborock app. Is it possible to extract the token with a android phone and after that use the iphone app on my iphone? or does the token change when changing from the android phone to the iphone?

BR

redphx commented 3 years ago

The token is the same on both Android & iOS apps. Don't worry. But you won't be able to use it with Homebridge yet because currently HB only supports using token from Mi Home app.

u20p17 commented 3 years ago

Hi, whats the difference of the token between mi home and roborock app?

in mi home you get a token with 32 characters (e.g. 6535794a383130776c54665972716xxx).

Would be interesting what has to be done in order to make the tuya token work with the homebridge plugin.

redphx commented 3 years ago

Token in Roborock app is for Tuya protocol.
Token in Mi Home app is for Miio protocol. They are not the same.

u20p17 commented 3 years ago

thanks for the information on the tuya protocol?

is this the right api? https://codetheweb.github.io/tuyapi/

If I understand it correctly then its not just adding the support for reading in the tuya token, but the whole homebridge plugin must be changes to fit to the tuya api, is this correct?

redphx commented 3 years ago

Yeah Homebridge needs to support Tuya first.