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.5.1.tar.gz (29.0 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.5.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymitsubishi-0.5.1.tar.gz
Algorithm Hash digest
SHA256 04091784496d2fb88684d856b94aa2d1de527efc46c54eb184404dbc8d8258bd
MD5 b18725fb7db0220e530c574335c76225
BLAKE2b-256 f037a9702356641cc6760f353932e01c7a695dab6dbb3207548a682020490251

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymitsubishi-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 17.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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2dca6d8ce6512dc047fa1283b5a13f81454e57844c17257feb7f49be27279d2b
MD5 0ba844353e7fba69b1f8128d8a8a8c2f
BLAKE2b-256 c8e7bc94f27b6a3ec55e6fe609b41bb45cf4860b70e379bbe3f8803576eb2edd

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