Skip to content

Instantly share code, notes, and snippets.

@goldbattle
Last active October 20, 2024 00:34
Show Gist options
  • Save goldbattle/319fc8fc0d5d7e4fb0c337e426aaa5e3 to your computer and use it in GitHub Desktop.
Save goldbattle/319fc8fc0d5d7e4fb0c337e426aaa5e3 to your computer and use it in GitHub Desktop.

Recteq Grill Home Assistent Integration via LocalTuya

Some intial background. I have a Recteq RT-B380X Bullseye Deluxe that I wish to track its usage from home assistent and have local control over it. It is important to note that this will require you to unpair your grill from the Recteq app, which I was ok with since I could just control it via HA if desired. There are some projects which have worked to add this to home assistent but have since stopped working due to issues getting the localkey and protocal changes.

A much better way is to use the logic in this HA thread and add the device via LocalTuya. LocalTuya supports much more then just a single grill vendor, so this is a much longer lasting solution.

Getting Your Local Key

The section in LocalTuya and tuyapower has a complete guide on what you need to do. From a high level you will have to go through this whole process

  1. Get a phone app which you can link to your tuya cloud account (e.g. I used Tuya Smart)
  2. Create a tuya cloud account on iot.tuya.com ensuring to note your client id and client secret - Guide here
  3. Link your device via QR code to your cloud account so paired devices will be there
  4. Pair your grill to the app (hold wifi button to get into pairing mode)
  5. Setup LocalTuya via HACS
  6. You can either have LocalTuya scan for devices on your network or use some commandline tool like tuyapower
  7. Match via the IP of the device to your id, localkey, and DP list

Recteq Tuya DP Codes

Once you link your grill to your Tuya app, which should have already been linked to your cloud account, you can then scan what DP variables are there for you to use via tuyapower. I was able to run python.exe -m tinytuya wizard -nocolor to get a tuya-raw.json which you can then pull our your id, localkey, and the DP list which will have their current values. Using the current values you see in your app, you should be able to correlate the DP codes with their function.

Device On/Off Target Temp (F) Current Temp (F) Probe A Probe B Min Feed Rate Temp Adjust Power Failure Ignite Failure RTD Failure
RT-410 1 101 102 103 104
RT-700 1 102 103 105 106
RT-1070 1 101 102 104 105
RT-590 2 101 102 104 105 103 106 108 109 110
RT-B380X 2 101 102 103 104 105 106 107 108

Configuring Your Device with the UI

  1. In HA LocalTuya, click configur and then add new device. You should see your device via its ip and id. You should then be able to add it and the DPs you have

recteq_local_tuya_01

  1. We can add the grill as the HA entity of "climate". You might also try other options, see this thread. recteq_local_tuya_02

  2. Now we can configure what our grill is going to be doing. Set the DP for your temp sensor and thermoeter along with the min/max temp supported by your grill (these are all in F) recteq_local_tuya_03

  3. Now we just have the "HVAC Mode" be the On/Off so we can turn it from heating / off to toggle the power to the grill recteq_local_tuya_04recteq_local_tuya_05

  4. You should now be able to add it to your homepage. If you see the climate control as "unavailable" then this means you need to fill out more in the configuration menu or some of the data is missing. recteq_local_tuya_07 recteq_local_tuya_06

  5. You can then also go back and add a second entity right after finishing, or if you didn't add this you can edit the device and select that you want to add another entity for it. recteq_local_tuya_08 recteq_local_tuya_09

  6. We can configure this device to get the probe temp (if you have multiple you would repeat this process) recteq_local_tuya_10 recteq_local_tuya_11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment