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.
Metadata
Release files for pymitsubishi 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymitsubishi-0.6.0.tar.gz | 37.2 kB | Without provenance | Details for pymitsubishi-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymitsubishi-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pymitsubishi-0.6.0-py3-none-any.whl |
Total release size: 61.0 kB
Release files / pymitsubishi-0.6.0.tar.gz
| Download URL | pymitsubishi-0.6.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd3bcf95d28f9db92b939f1819d65cd0af02dfb8a14b874311219874770b0d6a
|
|
BLAKE2b-256 checksum How to use checksums |
67fd0dd7b73c6f7aac5c0a5786adf3aca7b7e86f725d129ab0a1663568aa86e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pymitsubishi-0.6.0-py3-none-any.whl
| Download URL | pymitsubishi-0.6.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0626e7ada29b30cb6142fddce8abe3c07994a299cb68e03456be74d016bd2e3
|
|
BLAKE2b-256 checksum How to use checksums |
942e3d22495538164da41694ab6dc526381f65176fe2498da4b3de4f00f8929b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for pymitsubishi 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.