#!/usr/bin/env python3 """ midea-probe.py v2 - which sensors does this Midea-inside unit give out, over home WiFi or through Midea's cloud? Built by Tab for Avrumy, Oct 2026. v2 order: 1. LOGIN to Midea SmartHome first (email, phone number or SmartHome ID + password). The password is used only to log in to Midea from this phone; it is never saved and never sent to Tab. 2. CLOUD: list the units on the account, get the unit's local key. 3. LAN: look for the unit on this WiFi and try a local connection (port 6444). 4. CLOUD READ: ask the unit for its state and all 16 service groups THROUGH Midea's cloud (the same relay the app uses), decode with msmart-ng. Everything (raw hex + decoded) is saved to Download/midea-probe-