Skip to main content

A Python library for local control of Midea (and associated brands) smart air conditioners.

Project description

midea-msmart

A Python library for local control of Midea (and associated brands) smart air conditioners.

Code Quality Badge

Gratitude

This project is a fork of mac-zhou/midea-msmart, and builds upon the work of

Installing

Install this fork via pip.

pip install git+https://github.com/mill1000/midea-msmart.git

Usage

Discover all devices on the LAN with the midea-discover command.

e.g.

$ midea-discover 
INFO:msmart.cli:msmart version: 0.2.6.dev33+g97533b9 Currently only supports ac devices, only support MSmartHome and 美的美居 APP.
INFO:msmart.cli:*** Found a device: {'name': 'net_ac_F7B4', 'ssid': 'net_ac_F7B4', 'ip': '10.100.1.140', 'port': 6444, 'id': 15393162840672, 'version': 2, 'token': None, 'key': None, 'type': 'ac', 'sn': '000P0000000Q1F0C9D153F7B40000', 'model': '00Q1F', 'support': True, 'run_test': True} 

Check the output to ensure the type is 0xAC and the supported property is True.

Save the device ID, IP address, and port. Version 3 devices will also require the token and key fields to control the device.

Home Assistant

Use this fork of midea-ac-py to control devices from Home Assistant.

Python

See the included example for controlling devices from a script.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msmart-ng-2023.8.0.tar.gz (9.1 MB view hashes)

Uploaded Source

Built Distribution

msmart_ng-2023.8.0-py3-none-any.whl (32.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page