*Disclaimer: The whole process described below was performed using AI (Google Antigravity w. Gemini 3.1 Pro as the chosen model), as was the writing of below guide. After a lot of trial and error and prompts back and forth I have managed to:
Integrate Inventor Air Conditioner (VERO model) into Home Assistant by Extracting Local Keys from the "Inventor Control" Android app.
If you have some newer models of Inventor Air Conditioners, you probably know the pain: You cannot link the Inventor account to the official Tuya Smart or Smart Life apps, or pair your devices with these apps. They only pair with the Inventor Control app which is a white label Tuya clone. This completely breaks the official Home Assistant Tuya integration and also prevents you from getting your Local Keys via the standard Tuya Developer Platform method.
There is a way to extract the devId and localKey directly from the Inventor Control app's live memory using an Android emulator and Frida.
Here is the complete step-by-step guide on how to free your ACs and control them locally using the Tuya Local (by make-all) integration.
Prerequisites
- Android Studio (or any Android Emulator) installed on your PC.
- Python 3 installed on your PC.
- The Inventor Control APK file.
*Your devices should have already been paired to your account in Inventor Control.
Step 1: Set up the Android Emulator
You need an Android emulator with Root Access.
- Open Android Studio -> Device Manager -> Create Device.
- Choose a profile (e.g., Pixel 6).
- Crucial: When choosing the System Image, select an image that says "Google APIs" (NOT "Google Play"). Images with the Google Play Store cannot be easily rooted. (e.g., API 35 x86_64 Google APIs).
- Start the emulator.
- Drag and drop the
Inventor ControlAPK onto the emulator to install it. - Open the app, log in to your Inventor account, and ensure all your AC units appear on the screen. Leave the app open in the foreground.
Step 2: Install and Start Frida Server
Frida is a dynamic instrumentation toolkit that lets us peek into the app's memory.
- Open your PC's command prompt / terminal and install the Frida Python tools:
pip install frida-tools - Download the
frida-serverbinary that matches your emulator's architecture (usuallyandroid-x86_64) from the official Frida GitHub releases page. - Extract the downloaded file. Rename the extracted file to
frida-server. - Push it to the emulator and run it as root using
adb(Android Debug Bridge):
(The server is now running silently in the background of the emulator).adb root adb push frida-server /data/local/tmp/ adb shell "chmod 755 /data/local/tmp/frida-server" adb shell "/data/local/tmp/frida-server -D"
Step 3: Extract the Keys
A Javascript script scans the app's memory heap for the Tuya DeviceBean objects, which contain the keys in plain text.
-
Create a new file on your PC named
scan_keys.jsand paste this exact code:Java.perform(function() { console.log("[*] Starting heap scan for Tuya Devices..."); Java.choose("com.tuya.smart.sdk.bean.DeviceBean", { onMatch: function(instance) { console.log("---------------------------------"); console.log("Name: " + instance.getName()); console.log("Device ID: " + instance.getDevId()); console.log("Local Key: " + instance.getLocalKey()); console.log("IP Address:" + instance.getIp()); }, onComplete: function() { console.log("---------------------------------"); console.log("[*] Heap scan complete."); } }); }); -
In your terminal, run the script against the Inventor Control app:
frida -U -f com.Inventor.Control -l scan_keys.js -
Your terminal will output a list of every AC unit connected to your account, complete with their 16-character
Local KeyandDevice ID. Copy these and save them!
Step 4: Add to Home Assistant
Now that you have the Local Keys, you can control the ACs completely offline.
- Open Home Assistant and go to HACS.
- Search for and download the Tuya Local integration (by make-all).
(Note: Do not confuse this with "LocalTuya"). - Restart Home Assistant.
- Go to Settings -> Devices & Services -> Add Integration and search for Tuya Local.
- Enter the Device ID, IP Address and Local Key of your AC unit.
- The integration will poll the AC and ask you to select a device profile. For Inventor ACs, select the "Leon Inventor" profile (*Worked for the VERO model).
- Submit
Your AC is now fully integrated into Home Assistant with absolutely zero cloud dependency. It will instantly respond to commands, and you get access to all features including Fan Speed, Swing, Turbo modes, and Outdoor Temperature sensors.
Footnote: I would probably just paste above instructions into my favorite AI model and let it handle it from there.