Control and monitor Mitsubishi Air Conditioners
Project description
PyMitsubishi
A Python library for controlling and monitoring Mitsubishi MAC-577IF-2E air conditioners.
Home Assistant Integration
For Home Assistant users, check out our official integration: homeassistant-mitsubishi
Features
- Device Control: Power, temperature, mode, fan speed, and vane direction control
- Status Monitoring: Real-time device status, temperatures, and error states
- Group Code Analysis: Advanced protocol analysis for enhanced device understanding
- Encryption Support: Full support for Mitsubishi's encryption protocol
Installation
pip install pymitsubishi
Quick Start
from pprint import pprint
from pymitsubishi import MitsubishiAPI, MitsubishiController, DriveMode
# Initialize the API and controller
api = MitsubishiAPI(device_host_port="192.168.1.100")
controller = MitsubishiController(api=api)
# Fetch device status
controller.fetch_status()
pprint(controller.state)
# Control the device
controller.set_power(True)
controller.set_temperature(24.0)
controller.set_mode(DriveMode.COOLER)
# Clean up
api.close()
API Reference
MitsubishiAPI
Core communication class handling encryption and HTTP requests.
MitsubishiController
High-level control interface for device operations.
Data Classes
PowerOnOff: Power state enumerationDriveMode: Operating mode enumerationWindSpeed: Fan speed enumerationVerticalWindDirection,HorizontalWindDirection: Vane direction enumerations
Requirements
- Python 3.12+
- requests
- pycryptodome
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please see our Contributing Guidelines for detailed information on development setup, code standards, and the contribution process.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymitsubishi-0.5.2.tar.gz.
File metadata
- Download URL: pymitsubishi-0.5.2.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbfcaa629e274d642e7ed288288e3cc5fbdd9cba113abc7d0099e60789124dd8
|
|
| MD5 |
1469b3f9464d1f5512b5102bcde5afaa
|
|
| BLAKE2b-256 |
d169639bf56b9ecbd4748ec4cc074cf03b774ddd784fd80da05e73f228b35387
|
File details
Details for the file pymitsubishi-0.5.2-py3-none-any.whl.
File metadata
- Download URL: pymitsubishi-0.5.2-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b42d96f7db1f2af9e8e00b4b54d2fb57c6f0d8a9cccfcf97fef4b0172113e2
|
|
| MD5 |
32582bf5d94180d6e84b9cf2c6e0632a
|
|
| BLAKE2b-256 |
c84196e349c51a81e43fadac7ad51258fc1a905e683ba37143b317bab714539d
|