pywfrac
Async Python client library for Mitsubishi Heavy Industries air
conditioners that use the WF-RAC WiFi module and the Smart M-Air app.
Talks the module's local HTTP(S) API and decodes/encodes the airconStat
protocol carried over it.
Not for Mitsubishi Electric systems (e.g. a MAC-577IF2-E interface) or MELCloud — different manufacturer, different protocol.
This library is the protocol layer extracted from the
mitsubishi_wf_rac
Home Assistant integration, which stays the reference for field notes and
supported devices. pywfrac has no dependency on Home Assistant — it only
needs an aiohttp.ClientSession.
Install
pip install pywfrac
Usage
import aiohttp
from pywfrac import Repository
async def main() -> None:
async with aiohttp.ClientSession() as session:
repo = Repository(
session,
hostname="192.168.1.50",
port=51443,
operator_id="my-operator-id",
device_id="my-device-id",
)
airco_id = await repo.get_airco_id()
await repo.update_account_info(airco_id, time_zone="Europe/Berlin")
stats = await repo.get_aircon_stats(airco_id)
Repository discovers whether the module speaks plain HTTP or HTTPS on the
first request and remembers the result; construct it with method="http" or
method="https" to skip discovery if you already know. Pass cert_path to
use a captured module certificate instead of the permissive fallback context
— see Repository._get_ssl_context for how to capture one.
RacParser turns a raw getAirconStat response into an Aircon/AirconStat
object and back; see the protocol reference linked below for the field
layout.
Protocol reference
The airconStat wire format, error codes, and per-model capability tables
are documented in the integration's
module reference.
Versioning
This library follows SemVer, independent of the integration's own CalVer release scheme — pin an exact version.
License
MIT, see LICENSE. Extracted from code originally by @jeatheak, maintained since by @blues-sechseck.
Metadata
Release files for pywfrac 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pywfrac-0.1.2.tar.gz | 43.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pywfrac-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.5 kB
Release files / pywfrac-0.1.2.tar.gz
| Download URL | pywfrac-0.1.2.tar.gz |
|---|---|
| Size | 43.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04c4e9cbad4e8774802ef8ae75bd6d0c0fb1287e27bc65d39aae2d7a8e70827f
|
|
BLAKE2b-256 checksum How to use checksums |
83dd6cc9ff32936220bd7ec6799916d0b288e30b9e66201bf19570ae8767f2de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / pywfrac-0.1.2-py3-none-any.whl
| Download URL | pywfrac-0.1.2-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38a5aba92c96f697f8cf7c2044286c8f20b74f95ff629aa1ba7c63fde1f14ea6
|
|
BLAKE2b-256 checksum How to use checksums |
25bccb979ad1c1f265adc1400ddb2ed313d835091bf3df97277ff7c3d3d5a01d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logSecurity for pywfrac 0.1.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pywfrac-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logA 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.