Skip to content

Device ID & Key Extraction

SDNick484 edited this page Jan 12, 2024 · 4 revisions

Steps to Extract Device ID & Key from Rectec App

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 grill to your Rectec app and account

  1. 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.
  2. Open the Rectec app, go to the control tab and add the device.
  3. Supply your WiFi information and wait for it to pair.
  4. Once complete, specify your model and name your device.
  5. You can validate this is complete by testing that you can view and control the grill from the app.

Extract the Rectec app data from the phone (requires root) files.

  1. Open a file manager program that has root access (I recommend Root Explorer)
  2. Navigate to /data/data/com.ym.rectecgrill/shared_prefs/
  3. 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.
  4. 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.

Validate the values work

  1. Leverage pytuya (Python) or tuya-cli (JS) to validate the values work
  2. 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.