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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for msmart_ng-2023.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2390e16c0192c1a1e75aeb79739cff02b1f26b096f89cebf9639bbb1a77d1f84 |
|
MD5 | 19adb1c7f70def7429ed1714eba5e34d |
|
BLAKE2b-256 | d6b254381dacaed543fcc4ae8aa6c2f1cbf9d50242c2f83c826a1a7d47e18fee |