A Python library for local control of Midea and associated brands (e.g., ProElec, Tornado, Carrier) smart air conditioners. Version 2026.4.1 requires Python >=3.10. Community-maintained, receives regular updates for protocol changes.
pip install msmart-ngNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quick example to control a Midea AC locally.
Uninstall the old 'msmart' package and install 'msmart-ng'. Update imports: from msmart import MideaClient
Run 'msmart-ng token' CLI command while the device is in pairing mode to generate a token.
Use msmart.discovery.search() with the IP instead of broadcast discovery.