PyDaikin
PyDaikin is a Python library for controlling Daikin air conditioners. It provides both a standalone command-line interface and a Python API for integrating Daikin AC control into your applications.
Supported Devices
The following Daikin WiFi modules are currently supported:
- BRP069Axx/BRP069Bxx/BRP069B4x/BRP072Axx - Standard WiFi adapters
- BRP15B61 (AirBase) - Uses a similar protocol to BRP069Axx
- BRP072B/Cxx - Requires HTTPS access and an authentication key
- BRP084 - Devices with firmware version 2.8.0 (uses a different API structure)
- SKYFi - Uses a different protocol and requires a password
Quick Start
Here's a simple example for connecting to a Daikin air conditioner:
import asyncio
import logging
import aiohttp
from pydaikin.daikin_base import Appliance
from pydaikin.factory import DaikinFactory
HOST = "10.1.1.21"
logging.basicConfig(level=logging.INFO)
_LOGGER = logging.getLogger(__name__)
async def main():
async with await DaikinFactory(HOST) as device:
await device.update_status()
device.show_sensors()
if __name__ == "__main__":
asyncio.run(main())
The DaikinFactory automatically detects your device type and firmware version, creating the appropriate device instance.
Control writes (BRP069)
device.set() on BRP069/BRP072C adapters:
- First reads
get_control_info. If that answer lackspow,mode,stemporshum(AirBase:shumis optional), aDaikinExceptionis raised and nothing is written. - pydaikin never repeats a request:
set_control_infois sent once and never retried by the transport, while other endpoints such asset_ledkeep the general transport retry. The only second write is the deliberate whole-degree fallback (see Target temperature step), which sends a differentstemp. aiohttp itself may resend the identical request once if a reused keep-alive connection drops without an answer. - A non-OK
ret(e.g.PARAM NG) raisesDaikinCommandRejected(with.ret), and HTTP 404 raises instead of counting as success. After a rejection the cache shows the state read before the write. - After a timeout or another error the outcome is unknown: the state is read back (read only, transport retries included, at most 5 s). If that fails, the cache keeps the last read state without the requested
stempand is refetched on the next update. set()andupdate_status()are serialised per device, so a poll never runs in the middle of a write.
AirBase (BRP15B61) adapters only get the pre-read validation; their own set() keeps the previous write behaviour (lenient reply parsing, transport retries, no rollback, read-back or locking).
Target temperature step (BRP069)
device.target_temperature_step starts optimistic at 0.5 on BRP069/BRP072C adapters and is learned from normal setpoint changes, without probing writes:
- A half-degree
set({'stemp': '23.5'})that the adapter accepts is read back immediately;target_temperature_step_statusbecomes"confirmed". If the device reports another number,DaikinVerificationError(withrequestedandactual) is raised; there is no delayed second read. Dry and fan mode have no effective setpoint: nothing is learned there, not even from a matching number, and aPARAM NGnever falls back. Fan mode accepts and ignoresstemp(read back--), which is not an error. In any other mode,M/--raisesDaikinVerificationError. If the mode changed between write and read-back, nothing is learned. - If the adapter answers
ret=PARAM NGto a purestempchange between 18 and 30 °C, the current setpoint is numeric (notM/--), and 0.5 °C has not been confirmed, the same request is retried once with onlystemprounded half up (23.5 → 24). The step becomes1.0("inferred") once 24 is read back; this is an inference, not proof for every mode. If the mode changed before that read-back,set()returns normally and nothing is learned. A warning is logged when the step first becomes inferred (later fallbacks log at debug level); setdevice.whole_degree_fallback = Falseto get the rejection asDaikinCommandRejectedinstead. The retry repeats thepow/modeof the original request, which were read just before; a remote or app change in that short window would be overwritten. - Timeouts and other errors without a device answer never change the step (see Control writes).
- pydaikin does not persist the learned state. Consumers can store
target_temperature_step_statusand assign it back after creating the device; other values raiseValueError."inferred"reports a 1 °C step, and"confirmed"disables the fallback. A stale"inferred"is corrected by the next accepted half degree, but a stale"confirmed"never heals: half degrees are then rejected withDaikinCommandRejectedinstead of falling back. Key a stored status by the adapter's MAC address and firmware version, so that a replaced adapter or a firmware update starts from"unknown".
Other adapters report 1.0.
Firmware Version 2.8.0 Support
Firmware version 2.8.0 introduces a different API structure compared to earlier versions. PyDaikin automatically detects and handles this firmware version.
API structure
Unlike the older CGI-based adapters (BRP069 family), firmware 2.8.0 exposes a single JSON endpoint, POST /dsiot/multireq:
- Status reads are batch requests containing four
op: 2entries (indoor unit, outdoor unit, weekly energy and adapter info). - Writes are
op: 3entries that walk thedgc_statustree down to the parameter to change.
Full request/response examples are in docs/sample_requests/brp084/.
Power semantics
The behaviour of device.set(...) was validated against the unit's behaviour (see tests/test_daikin_brp084.py):
device.set({})turns the unit on (the Home Assistant toggle-switch path)device.set({'mode': 'off'})turns the unit offdevice.set({'mode': 'cool'})turns the unit on and switches modedevice.set({'stemp': 25.0})sets the temperature only; a powered-off unit stays off
Supported features
- Comfort airflow, Econo, Outdoor-quiet and Powerful toggles - Powerful and the trio (Comfort/Econo/Outdoor-quiet) are mutually exclusive, matching the remote's last-button-pressed-wins behaviour
- Discrete vertical vane control -
off,down(floor) andswing - Swing on the vertical and horizontal axes, per mode
- Sensors - indoor/outdoor temperature, humidity, compressor temperature, decoded indoor/outdoor model strings and adapter firmware/API version
- Energy data - daily runtime and weekly consumption
- Sub-zero outdoor temperatures - sensor values are decoded as little-endian signed hex, so negative readings are handled correctly
- Auto mode without a setpoint - some units (e.g. the Urusara X, model
W-SRTA322F) only expose cool/hot setpoints and report no auto setpoint (e_3001/p_1D); the target temperature then degrades to--instead of failinginit()(issue #72)
Confirmed working with:
- FTKM20YVMA
- FTXM46WVMA
- FTXV80WVMA
- FTXA25C2V1BW
- FTXA50C2V1BW
If you have a device with firmware 2.8.0 that is not working correctly, please open an issue with your device model and debug logs.
Unsupported Devices
The following device and firmware combinations are not currently supported:
- BRP069C4x/C8x gateways running Onecta adapter firmware below 2.8.0, such as
2.0.0, 2.3.0, 2.6.1 and 2.6.2, and the built-in WiFi adapters of newer units
(e.g. the Stylish FTXA20C2V1BW) running firmware 2.6.3 or earlier. These
answer UDP discovery with
type=GPF,protocol=DGCbut return 404 for every local HTTP endpoint, so there is no local control API. BRP069C4x/C8x gain local control with firmware 2.8.0 or later; the built-in adapters have no local control API at all, with 2.6.3 being the latest firmware. Until then use a cloud-based integration (#153, #169, #83, #116)
About
PyDaikin was originally created by Yari Adan and is currently maintained by Fredrik Erlandsson.
Metadata
Release files for pydaikin 2.24.1
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 | Actions |
|---|---|---|---|---|
| pydaikin-2.24.1.tar.gz | 110.1 kB | With provenance | Details for pydaikin-2.24.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydaikin-2.24.1-py3-none-any.whl | Python 3 | none | any | Details for pydaikin-2.24.1-py3-none-any.whl |
Total release size: 172.6 kB
Release files / pydaikin-2.24.1.tar.gz
| Download URL | pydaikin-2.24.1.tar.gz |
|---|---|
| Size | 110.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
782a1c18387c71c7035dd3607521f8c0d3665940a99047bd02763293f0204aee
|
|
BLAKE2b-256 checksum How to use checksums |
513f349716526e6545d9c2501b5fb2557b86437751629666d2716d2f73cc23c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 17, 2026.
Transparency logRelease files / pydaikin-2.24.1-py3-none-any.whl
| Download URL | pydaikin-2.24.1-py3-none-any.whl |
|---|---|
| Size | 62.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dc8820833a4a077d65d574e0db8ff84bb07f490a3fae2c4f664a4060b490f63
|
|
BLAKE2b-256 checksum How to use checksums |
9d9d13b96b7d2430da35aba3035c4fd284fd17afcf12a65ed7907fd8b2981a0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 17, 2026.
Transparency logSecurity for pydaikin 2.24.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for pydaikin-2.24.1.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 Nov 17, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.