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.3.0.tar.gz (27.3 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.3.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymitsubishi-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f82bbfc5e3db334096e1eb9ee04ded3fe674868c89ef2baaa58113f3fcd88c86
MD5 52e2bddb797fb00b7116ad39cd5b7e64
BLAKE2b-256 4e514606b0be059f9c17f184fef33b34286dfc7bd56d365d420e78a80c721e18

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymitsubishi-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e0de36d9ed613e1febf452292896a56fef4977f1a8b787e9250e535c9d1811d
MD5 96b8a6932fa9d9c2836d73fb8c9dca45
BLAKE2b-256 9824d5d21d2bd88b17a253b1bb9f6e8e9a1e21cd1dbc37b69ca8eddad2e9a53e

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