Registry / iot / midea-beautiful-air

midea-beautiful-air

JSON →
library0.10.5pypypi✓ verified 79d ago

A Python library for controlling Midea appliances (e.g., air conditioners, dehumidifiers) over the local network. Version 0.10.5 targets Python 3.8+. The API is stable with infrequent releases.

pip install midea-beautiful-air
INSTALL
IMPORT
SIG · MIDEA-BEAUTIFUL-AI
M
midea-beautiful-air
iotpythonv0.10.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MideaCloud
from midea_beautiful import MideaCloud
from midea_beautiful import MideaClient
LanDevice
from midea_beautiful import LanDevice
connect_to_cloud
from midea_beautiful import connect_to_cloud

Initialize client, discover appliances, and control one.

from midea_beautiful import MideaClient client = MideaClient('your_email@example.com', 'your_password') await client.init() appliances = await client.discover() if appliances: device = appliances[0] await device.get_status() await device.set_power(True) await device.set_temperature(24) await client.close()
Debug
Known issues
breakingAsync methods require awaiting; forgetting `await` leads to unawaited coroutine errors.
fix
Always use `await device.method()` inside an async function.
affects: all
gotchaThe library uses your Midea account credentials (email/password) for token authentication, not local-only.
fix
Provide valid Midea account credentials. Network discovery still works but token is fetched from cloud.
affects: all
deprecatedOlder docs reference `from midea_beautiful import air_conditioner`, but the correct import is `MideaClient`.
fix
Use `MideaClient` for all operations.
affects: <0.9.0
Upgrade
Version history
0.10.5latest on PyPI · released Apr 12, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
28
Amazon
1
Perplexity
1
Resources
midea-beautiful-air — pip install midea-beautiful-air · libregistry