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

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.2.tar.gz (29.1 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.2-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

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

Hashes for pymitsubishi-0.5.2.tar.gz
Algorithm Hash digest
SHA256 bbfcaa629e274d642e7ed288288e3cc5fbdd9cba113abc7d0099e60789124dd8
MD5 1469b3f9464d1f5512b5102bcde5afaa
BLAKE2b-256 d169639bf56b9ecbd4748ec4cc074cf03b774ddd784fd80da05e73f228b35387

See more details on using hashes here.

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

Hashes for pymitsubishi-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04b42d96f7db1f2af9e8e00b4b54d2fb57c6f0d8a9cccfcf97fef4b0172113e2
MD5 32582bf5d94180d6e84b9cf2c6e0632a
BLAKE2b-256 c84196e349c51a81e43fadac7ad51258fc1a905e683ba37143b317bab714539d

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