# Changelog

## 2.2.0 (2026-10-30)

- Added a per-device *Outdoor temperature* option ([#22](https://github.com/tasict/homebridge-daikin-local-platform/issues/22)): a unit's outdoor temperature sensor can now be an accessory of its own, which the Home app lets you put in another room than the unit (e.g. a Garden room), or be hidden. Units that share an outdoor unit report the same reading, so you can keep it on one unit and hide it on the others — *Hide on the other units* in the edit form does that in one step, and a preview there shows where the sensor ends up in the Home app. Configured from the device's edit form in the settings UI — such units show an *outdoor separate* or *outdoor hidden* chip in the device list — or via the new `climateOutdoorSeparate` and `climateOutdoorHidden` config arrays (same rules as `climateCoolingOnly`). Over Matter the sensor already is an accessory of its own, so only *Hidden* changes anything there. Moving the sensor makes it a new accessory in the Home app, so its room and automations need setting up again.
- Security: updated every dependency to its latest compatible release; `npm audit` reports no known vulnerabilities. The plugin now requires axios 1.21.0 or later, and follow-redirects (used by axios) moves to 1.16.2, which fixes two advisories about credential headers being passed on after a cross-origin redirect. The plugin only talks to air conditioners on your network and sends no such headers, so it was not affected in practice.

## 2.1.2 (2026-10-23)

- Security: the plugin now requires axios 1.20.0 or later. The range it allowed before still admitted axios releases with known vulnerabilities (SSRF, prototype pollution, denial of service); a fresh install already received a fixed version, so this only matters for setups that resolved an older axios.
- Updated the remaining dependencies to their latest versions and dropped the `tslog` dependency.

## 2.1.1 (2026-10-23)

- Fixed: with units on the older BRP069-style adapters, a Siri command such as *set the living room to 21°* often took about 8 seconds, and the Home app reported the unit as not responding although the command reached it ([#21](https://github.com/tasict/homebridge-daikin-local-platform/issues/21)). The settings HomeKit sends together (power, mode, temperature) now go to the unit as one command, and the plugin talks to these adapters faster — the same command now takes about a second. This also stops such a command from briefly starting the unit in its previous mode.
- Requests to one unit no longer wait for the other units on any adapter type, so controlling one unit stays responsive while the others are being polled.

## 2.1.0 (2026-10-19)

- Added a per-device *Show setpoint as temperature* option ([#20](https://github.com/tasict/homebridge-daikin-local-platform/issues/20)): the unit's tile in the Home app shows the target temperature instead of the unit's own room temperature reading, for units whose built-in sensor reads far off the room. Heating/cooling status still follows the unit's sensor. Configured from the device's edit form in the settings UI — such units show a *setpoint* chip in the device list — or via the new `climateSetpointAsTemperature` config array (same rules as `climateCoolingOnly`). Works over HomeKit and Matter.

## 2.0.5 (2026-10-15)

- Fixed: with a secure BRP072C adapter, Homebridge could fail to save its accessory cache (*Failed to save cached accessories to disk: Converting circular structure to JSON*), so accessories did not persist between restarts — on the main bridge, those of every plugin ([#19](https://github.com/tasict/homebridge-daikin-local-platform/issues/19)).
- Fixed: removing a unit from `climateIPs` did not remove its accessory, and every unit that did not answer at startup logged *Error removing stale accessory*. A unit removed from the config, or replaced by another unit at its IP address, now loses its accessory at the next restart; a listed unit that is only offline keeps its accessory.

## 2.0.4 (2026-09-25)

- New project website in English, Traditional Chinese and Japanese: [tasict.github.io/homebridge-daikin-local-platform](https://tasict.github.io/homebridge-daikin-local-platform/). It is now the plugin's homepage in the Homebridge UI.
- You can now support the plugin by buying me a boba (paid by card, no PayPal account needed) as well as with PayPal: from the bottom of the plugin settings, the donate link in the Homebridge UI, the README or GitHub's Sponsor button.
- The npm package now contains only what the plugin needs to run.
- README: the European BRP069C4x adapters are no longer listed as supported. They were already listed under *Cloud-only units*, which is correct.

## 2.0.3 (2026-09-24)

- Fixed: abandoning a move to Matter left the units' Matter accessories in the Apple Home app as *No Response*, with no way back to a clean HomeKit setup — on a child bridge the settings switched Matter off together with the last unit leaving it, so the plugin could never remove them. Matter now stays on (or is switched back on, which also repairs a setup already stuck this way) until the plugin has removed its Matter accessories, and is switched off with the next save after that. On the main bridge, where the plugin cannot change Matter, the settings say when to leave it on for a restart.
- Added a *Back to HomeKit* button to the *Matter* section: it moves every unit on Matter, or still migrating, back to HomeKit in one step. Units that were still migrating keep their HomeKit accessory, rooms and automations.
- The npm package no longer includes local development files.

## 2.0.2 (2026-09-23)

- Fixed: over Matter, the Apple Home app showed an air conditioner as a power strip, with its tiles named *Outlet*, *Outlet 1*, ... — Apple Home ignores the names of tiles inside a Matter accessory. The fan and the humidity and outdoor temperature sensors are now accessories of their own, named after the unit (e.g. *Study Fan*, *Study Outdoor Temperature*, in the plugin's HomeKit name language). Swing is an opt-in *Matter swing switch* per unit (edit form, or the new `climateMatterSwing` config array): another accessory, *Study Swing*, that turns every vane axis on or off. The per-axis swing switches stay HomeKit only.
- Fixed: a Matter accessory whose name was longer than 32 bytes failed to register. Names are now shortened to fit, keeping the part after the unit name.
- Fixed over Matter: the fan and swing tiles showed *on* while the air conditioner was off. Both now read off while it is off, and switching either on starts it (the fan at its last speed). As in HomeKit, the fan tile reads off while the unit runs at its automatic speed, and switching it off selects the automatic speed.
- Fixed over Matter: in fan or dry mode (shown as Auto, like in HomeKit), changing the temperature was ignored and snapped back; the unit now switches to cooling or heating with that temperature, as in HomeKit.
- Commands from Matter controllers are now carried out one after another, so two arriving together (e.g. both ends of the temperature range) no longer race.

## 2.0.1 (2026-09-23)

- Fixed: the Matter options were missing from the plugin settings when the plugin runs as a child bridge without Matter — the Homebridge UI's default for new plugins, and the usual case after upgrading from 1.5. They are now always shown.
- A new setup now starts with a choice between *HomeKit (HAP)* and *Matter*; units added later follow it, and each unit can still be changed in its edit form.
- When the plugin runs as a child bridge, the settings now switch Matter and HomeKit on or off for that bridge to match the units — HomeKit goes off once every unit is on Matter, so there is only one code to pair. On the main bridge, the settings warn while Matter is off there.

## 2.0.0 — Matter support

> [!IMPORTANT]
> **This release adds Matter support.** Any unit can now be published over Matter as well as HomeKit, with the same controls, and units that meter their consumption appear in the Apple Home app's Energy view (iOS 27+). Units stay on HomeKit until you switch them — see *Matter and energy (Beta)* in the README.
>
> **Requires Homebridge 2.4 or later and Node.js 22 or later.** Homebridge 1.x installations stay on 1.5.1.

- Minimum versions raised to Homebridge 2.4 and Node.js 22: Homebridge and the Homebridge UI only offer this version to installations that meet both, so Homebridge 1.x installations stay on 1.5.1, which keeps working as before.
- Added Matter support (Beta): a unit can be published over Matter instead of HomeKit, with the same controls as its HomeKit accessory — power, the unit's modes (*Cooling only* respected), temperatures, the fan (off = automatic speed), swing and the per-axis swing switches, and the humidity and outdoor temperature sensors. Units whose adapter meters consumption (dsiot `en_ipower`) also report their live power and energy use, which the Apple Home app (iOS 27+) shows in its Energy view. The energy total is built from the unit's daily and monthly history and stored in Homebridge's storage, so it keeps counting across restarts and year boundaries.
- Moving to Matter without downtime: in the new *HomeKit + Matter* state a unit is published both ways, so its Matter accessory can get its room, scenes and automations while the HomeKit one keeps working; *Finish migration* then removes the HomeKit accessory. The *Matter* section of the settings has one-click *Start migration for all units* / *Finish migration* buttons, a step list, and the bridge's Matter pairing code and QR code. It and all other Matter options only appear while Matter is on for the plugin's bridge (switched on in the Homebridge bridge settings). New config arrays `climateMatter` and `climateMatterMigration` follow the `climateCoolingOnly` rules.
- Changed: in Auto, the Home app's temperature range now adjusts the unit's Auto target (shown as target ± 1 °C) and the unit stays in Auto. Before, the range showed the Cool and Heat targets and moving it switched the unit out of Auto.
- Fixed: while a unit is off, the Home app now shows the mode it will start in (before, the mode was only updated while the unit was on, so after a restart an off unit showed Auto). An off unit's tile also no longer keeps showing *Cooling*/*Heating* until it is opened, and a mode the tile does not offer (e.g. Auto set from the remote on a unit marked cooling-only) shows as one it does instead of an invalid value.
- If Matter is turned off on the bridge later, units set to Matter go back to HomeKit (with a warning in the log); their setting is kept for when Matter is back on.

## 1.5.1 (2026-07-22)

- Added a *HomeKit name language* setting: the default names of the switches and sensors this plugin creates — *Outdoor Temperature*, *Vertical Swing*, *Horizontal Swing* and the fallback accessory name — can now follow any of the 28 Homebridge UI languages, since HomeKit does not translate service names itself. The dropdown (settings UI → *Advanced*) offers the same options as the Homebridge UI language setting and defaults to the language the Homebridge UI is displayed in; in the JSON config it is the `language` field with the same codes (`en`, `de`, `ja`, `zh-TW`, ...; absent means English).
- The outdoor temperature sensor now takes the translated *Outdoor Temperature* as its default service name.
- Renames done in the Home app always win: a default name is only applied while the service still carries one of the plugin's own defaults (in any language), so switching languages later renames only services the user never touched. Upgrading alone changes nothing in HomeKit — existing accessories, rooms, automations and names stay exactly as they are until a language is picked.

## 1.5.0 (2026-07-22)

- Added vane swing control: units with swing-capable vanes now get HomeKit's standard swing toggle on the AC tile (on = every supported axis swings — 3D on units with both; off = vanes fixed). Supported on newer (dsiot) units — where swing is tracked per axis and per operation mode, and turning swing off restores the previously stored fixed-vane position — and on legacy BRP069-era units via `f_dir`, including the split `f_dir_ud`/`f_dir_lr` keys used by Australian Alira X models. Axes the unit does not support are never offered; AirBase ducted units (no controllable vanes) are unaffected.
- Added a per-device *Swing switches* option that exposes separate *Vertical Swing* and *Horizontal Swing* switches, for the mixed combinations the standard toggle cannot express (HomeKit has no four-way swing selector). Configured from the device's edit form in the settings UI — such units show a *swing* chip in the device list — or via the new `climateSwingSwitches` config array, which follows the `climateCoolingOnly` rules (IP exactly as written in `climateIPs`, entries matching no device preserved and re-adopted).
- The swing switches are named only when they are first created, so renaming them in the Home app survives plugin restarts.

## 1.4.5 (2026-07-19)

- Added a per-device *Cooling only* option: enable it for cool-only models (common in Singapore, Malaysia and India) whose firmware advertises heating anyway — the Home app then offers just Cool, with Heating and Auto hidden. Mode auto-detection stays the default, and the option only hides modes, never adds one. Toggling it takes effect after a plugin restart; the accessory keeps its rooms, automations and pairing.
- Redesigned the device edit form in the settings UI into option rows with switches: *Secure adapter* (the 13-digit key field now lives inside the row, locked on when the unit is known to be secure) and the new *Cooling only*, which previews the resulting Home-app mode menu as you toggle it. Cool-only units show a *❄ cool only* chip in the device list.
- The new `climateCoolingOnly` config entries hold the IP exactly as written in `climateIPs` and are matched like `climateKeys` (exact entry first, then bare IP); entries matching no device are preserved and re-adopted when the device reappears.

## 1.4.4 (2026-07-18)

- Moved secure adapter (BRP072C) keys into the device list: editing a device now shows its 13-digit key field whenever the unit needs one (with a *Secure adapter* checkbox for units the scan cannot reach), and adding a discovered secure unit opens the form with the key field focused. The separate keys section — and its error-prone requirement to repeat the IP exactly — is gone; the key follows the device, including when its IP is edited.
- Existing `climateKeys` entries are matched to their device automatically (bare-IP entries written for an `ip:port` device are repaired to the exact form the plugin looks up); entries matching no device stay visible as *unused key* rows to re-adopt or delete, instead of being dropped silently. `climateKeys` is now also declared in `config.schema.json`.
- Fixed muted text in the settings UI (device details, help text) being unreadable when Homebridge uses a dark theme.
- Log the reason when the secure (BRP072C) probe fails, so misconfigured keys are easier to diagnose.

## 1.4.3 (2026-07-17)

- Fixed spacing and styling in the settings UI that was broken by the Bootstrap version loaded in the Config UI X iframe.
- Right-aligned the per-row action buttons in the settings UI device list.

## 1.4.2 (2026-07-17)

- Merged the network finder into a unified device list in the settings UI: configured and discovered units now appear in one list with per-row add/edit/remove actions and `found` / `needs key` / `no reply` badges. The list auto-scans on page open and can be rescanned on demand.

## 1.4.1 (2026-07-17)

- Restructured the settings UI into a task-ordered layout: the device list first, with the secure adapter keys (BRP072C) and advanced options in collapsed sections below.

## 1.4.0 (2026-07-17)

- Added support for secure BRP072C-style adapters (units paired with the Daikin Comfort Control app, e.g. US ATMOSPHERA built-in WiFi). These use HTTPS with legacy TLS and require the 13-digit key printed on the unit, configured via the new `climateKeys` setting.
- Added a LAN device finder to the settings UI that discovers Daikin adapters via UDP broadcast.
- Improved discovery diagnostics: probe failures now log which protocol was ruled out for each IP.

## 1.3.0 (2026-07-16)

- Added support for legacy BRP069-era adapters and AirBase BRP15B61 (Australian ducted) units. The protocol for each configured IP is now auto-detected, alongside the existing support for newer (dsiot) firmware.

## 1.2.9 (2026-07-16)

- HomeKit now only offers the operation modes the device actually supports, instead of always showing auto/heat/cool.

## 1.2.8 (2026-07-01)

- Maintenance release, no functional changes.

## 1.2.7 (2026-07-01)

- Added outdoor temperature support (exposed as a separate temperature sensor).
- Device commands are now awaited and redundant HomeKit characteristic writes are skipped, making state updates after a change more reliable.
- Hardened device requests and fixed misleading log messages.
- Internal refactoring: consolidated duplicated protocol and accessory logic.

## 1.2.6 (2025-04-13)

- Fixed an error when fetching device data.

## 1.2.5 (2025-04-13)

- Added debug logging around error handling.

## 1.2.4 (2025-04-12)

- Added error handling to avoid a crash.

## 1.2.3 (2025-04-10)

- Added error handling around device communication.

## 1.2.1 (2025-03-02)

- Fixed a bug where the HomeKit app could reduce the maximum fan level to 5 instead of 6.
- Dependency updates.

## 1.2.0 (2025-02-20)

- Added a standalone Fan service for better HomeKit compatibility (the RotationSpeed characteristic inside the HeaterCooler service does not work properly with HomeKit).
- Added request rate limiting, since rapid fan-speed adjustments could make the Daikin adapter reject requests with HTTP 429.
- Moved noisy info-level messages to debug level.
- Fixed the return value type of `getFanStatus()` and minor code cleanups.

## 1.1.1 (2024-09-04)

- Updated for Homebridge v2 compatibility.

## 1.1.0 (2024-02-13)

- Removed the unused `cheerio` dependency and updated the remaining dependencies.

## 1.0.10 (2024-01-23)

- Fixed the fan speed mapping so that level 0 selects automatic fan speed and all device fan levels are reachable ([#2](https://github.com/tasict/homebridge-daikin-local-platform/issues/2)).
- Improved error logging.
- Dependency updates.

## 1.0.9 (2024-01-07)

- Maintenance release, no functional changes.

## 1.0.8 (2024-01-06)

- Fixed a build error (duplicate identifier) introduced by a bad merge.

## 1.0.7 (2024-01-06)

- Improved compatibility with units that report humidifier mode.
- Dependency upgrades.

## 1.0.6 (2023-12-29)

- Handle the humidify operation mode in the HeaterCooler state mapping, so units in that mode no longer confuse HomeKit.

## 1.0.5 (2023-12-11)

- Fixed a crash issue.
- Code cleanup.

## 1.0.4 (2023-12-10)

- Maintenance release, no functional changes.

## 1.0.3 (2023-12-10)

- Removed the motion detection button.

## 1.0.2 (2023-12-09)

- The current heating/cooling state shown in HomeKit now follows the active operation mode (auto/heat/cool/dry/fan) instead of only comparing temperatures.
- Named the motion sensor service.

## 1.0.1 (2023-12-09)

- Initial release: Homebridge platform plugin exposing Daikin air conditioners to HomeKit over the local network, with power, mode, target temperature, fan speed and swing control.
