Skip to main content

PyMitsubishi

PyPI version Python Versions Downloads License: MIT

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 enumeration
  • DriveMode: Operating mode enumeration
  • WindSpeed: Fan speed enumeration
  • VerticalWindDirection, 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymitsubishi 0.6.1
File Size Uploaded Provenance Actions
pymitsubishi-0.6.1.tar.gz 37.9 kB Without provenance Details for pymitsubishi-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymitsubishi 0.6.1
File Interpreter ABI Platform Actions
pymitsubishi-0.6.1-py3-none-any.whl Python 3 none any Details for pymitsubishi-0.6.1-py3-none-any.whl

Total release size: 61.9 kB

Release files / pymitsubishi-0.6.1.tar.gz

Download URL pymitsubishi-0.6.1.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fdf420ab040104bf764825d069cea3fb3b1aa6cdb3a8e7311c91ab4a87c33d8d
BLAKE2b-256 checksum
How to use checksums
54a865d53a8ff2bd84da3de8d0c7d16aba6f1665a088e79a3329087b78e8659b
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.1-py3-none-any.whl

Download URL pymitsubishi-0.6.1-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa9a212870ea1e6db13dd677b6a902dac519ceb7a20c4c42657dc055adac099b
BLAKE2b-256 checksum
How to use checksums
c6b4fbeb14fcd27eef35726332bfbc3bc292e08aaab69c002c6ab5dca55da9c5
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.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page