Skip to main content

Control and monitor Mitsubishi Air Conditioners

Project description

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.data)

# 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.

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

pymitsubishi-0.4.0.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymitsubishi-0.4.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file pymitsubishi-0.4.0.tar.gz.

File metadata

  • Download URL: pymitsubishi-0.4.0.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymitsubishi-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ea86295d9113ae91edcb844c84eec4a78f479c05a21031fd7a7974284f2e8e98
MD5 599d0a7be1c97d9ed9b8c5a864f8280a
BLAKE2b-256 fc3c5f837d2535a2daef40e4455f8c789ca53cce6e5c4637189b031aac49a703

See more details on using hashes here.

File details

Details for the file pymitsubishi-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pymitsubishi-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymitsubishi-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d1b7729ec54bc1b770a19d6cf9c42ad4643bff15a0ecb84dd8b2426845ed0bd
MD5 5d736b80f558940e82a37121f90b9cc9
BLAKE2b-256 764d251998c606c013be59cdf5bd671c9f05cf76b7cd24ea7a07c5e942abdddb

See more details on using hashes here.

Supported by

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