De-Clouding IoT Devices: Local Control for Midea Air Conditioners and Tuya-Based Cat Feeders

A security researcher detailed a methodical approach to eliminating vendor cloud dependency for Wi-Fi IoT devices in a smart home setup. After acquiring a cat, the author was forced to integrate several Tuya-based appliances that only worked through proprietary cloud apps. Using hardware analysis tools including UART adapters, multimeters, and soldering equipment, the devices were disassembled and their controllers identified. The Midea air conditioner controller based on TYWE3S ESP8266 was reflashed with ESPHome to enable direct Home Assistant integration. For the Tuya WBR3-powered cat feeder running on an RTL8720CF chip, OpenBeken firmware was installed after extracting the original firmware with ltchiptool. Detailed UART communication analysis between the Wi-Fi module and MCU allowed full recreation of scheduling and control functions locally via MQTT.

HabrTranslated from Russian

Read at source

A detailed technical guide demonstrates how to remove cloud dependency from consumer IoT devices by reverse engineering their hardware and replacing vendor firmware.

The author had long preferred Zigbee devices for a smart home to avoid vendor clouds but was compelled to purchase Wi-Fi-only appliances after adopting a cat. These included a Midea air conditioner paired with a Daichi controller and a Smart Life cat feeder, both built on Tuya platforms. The primary concern was lack of control over devices containing microphones and other sensors that phone home.

Hardware Toolkit and Initial Analysis

Essential tools included a multimeter, soldering iron, UART adapter supporting 3.3V/5V, flux, solder wick, and optional hot air station. The researcher emphasized practicing soldering on scrap boards first.

The Daichi DW23-B controller for the air conditioner contained a TYWE3S module based on ESP8266. The onboard USB port functioned as a UART interface, controlled by a physical switch. Firmware was backed up using esptool.py and replaced with ESPHome, enabling native climate control in Home Assistant.

Cat Feeder Reverse Engineering

The feeder used a WBR3 module on an RTL8720CF chipset communicating with an MCU via UART in the classic TuyaMCU architecture. After identifying UART pins with a multimeter and capturing traffic using TuyaMCUAnalyzer, the Wi-Fi controller was desoldered to access programming pins A_0 and A_15.

Firmware was read and written with ltchiptool. The device was then flashed with OpenBeken, which supports TuyaMCU protocol emulation. Configuration via autoexec.bat enabled drivers for TuyaMCU and NTP, mapped dpIDs to channels for battery level, feeding button, and scheduling, and exposed the device over MQTT for Home Assistant integration.

A custom automation script was created to simulate button presses for manual feeding, while schedule data structures were analyzed from raw protocol packets for potential future local implementation.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Privacy & Surveillance

Maximizing iPhone Privacy: Essential Settings to Enable, Disable, and Verify Immediately
Top 10 Secure DNS Servers for Privacy, Threat Blocking and Ad Filtering in 2026
WebRTC IP Leaks Explained: Why Disabling the Protocol Harms Anonymity in Anti-Detect Browsers