-
Notifications
You must be signed in to change notification settings - Fork 4
Device ID & Key Extraction
SDNick484 edited this page Jan 12, 2024
·
4 revisions
EDIT: As of 1/12/2024, this method no longer works. Recteq appears to have moved to MQTT or the cloud API for controlling the smoker, I no longer see a local key in any of the app files.
Please note that some of the steps below will require a rooted Android device.
- Pair the Rectec smoker with the Rectec app by holding the button below the WiFi LED until it blinks sequentially indicating it's in pairing mode.
- Open the Rectec app, go to the control tab and add the device.
- Supply your WiFi information and wait for it to pair.
- Once complete, specify your model and name your device.
- You can validate this is complete by testing that you can view and control the grill from the app.
- Open a file manager program that has root access (I recommend Root Explorer)
- Navigate to /data/data/com.ym.rectecgrill/shared_prefs/
- Open gw_storage.xml and look for: "localKey":"AAAAAAAAAAAAAAAA"" where the AAA...A value is your key (a hexadecimal number), length should match the number of As.
- In the same file look for "uuid":"####################"" where the ###...# value is your device ID (another, slightly longer hex number), length should match number of # symbols.
- Leverage pytuya (Python) or tuya-cli (JS) to validate the values work
- Example using tuya-cli: $ tuya-cli set --ip 192.168.1.XXX --id #################### --key AAAAAAAAAAAAAAAA --dps 1 --set true
If steps were followed correctly, the above command will turn the grill on, if not, the command will throw an unhandled error.