# Changelog

Notable changes to redmatic-homekit. Format follows
[Keep a Changelog](https://keepachangelog.com/); entries describe the
user-visible change and the reason, not the commit list (the release notes
append commits automatically).

## 4.2.0 — 2026-11-01

### Changed

- **HAP library: `@homebridge/hap-nodejs` 2.2.3 → 2.3.0.** It is an ES module
  now, which Node.js 22.12 or newer and 24 load through `require()`; the
  supported Node.js versions stay as they are. Existing pairings, the bridge
  identity and the ids of accessories and services carry over unchanged. The
  release also closes a number of ways a malformed request could crash
  Node-RED, and the installed package needs 13 fewer dependencies.
- A HomeKit name of a single letter or digit is valid now; the editor no
  longer marks it and hap-nodejs no longer warns about it.
- Sending new properties to the universal node's characteristic while the
  bridge is published now makes HomeKit re-read the accessory's configuration,
  so a changed range reaches the Home app without a restart.

## 4.1.4 — 2026-10-27

### Fixed

- **Node-RED could crash after a deploy** with "This callback function has
  already been called by someone else; it can only be called one time"
  (reported in the homematic-forum). The homematic devices node did not stop
  when Node-RED stopped it: a deploy while it was still waiting for the
  CCU's device list let the old node publish its devices anyway, after the
  new one had started. Every HomeKit device then had its handlers twice,
  each read and write ran through both, and the first write the CCU did not
  accept terminated Node-RED. The node now stops waiting and publishing when
  it is stopped and lets go of the CCU connection, and a redeploy no longer
  adds a device's identify handler a second time. If Node-RED did crash this
  way, a restart of Node-RED (not a deploy) cleared the doubled handlers.
- **HmIP blinds and shutters: the second and third virtual receiver** (when
  enabled in the device list) **moved the first one.** The command went to
  the channel address with the channel number appended twice (e.g.
  `…:4:5` instead of `…:5`), which the CCU reads as the first receiver;
  the log showed such addresses for the first receiver as well
  (`…:4:4`). Position and tilt are sent to the receiver's own channel now.

## 4.1.3 — 2026-10-24

### Fixed

- **HmIP-DRBLI4: the device list offered its inputs as blind rows.** The
  editor entry for the HmIP-DRBLI4 had been copied from the HmIPW-DRBL4,
  whose blinds start at channel 2; on the DRBLI4 the channels 1-8 are the
  inputs and the four blinds are the channels 10, 14, 18 and 22. The list
  showed VerticalTilt rows for the inputs 2-4 and 6-8, which did nothing,
  next to the real blind rows. It lists the blinds only now; what was saved
  for the blind rows keeps its meaning, and settings saved for the input rows
  stay in the flow without effect, as before.
- **Generic mapping: a contact sensor on a channel of the type `SENSOR`**
  (the HMW-Sen-SC-12-DR/-FM's channels) **never updated** - the mapping
  looked for a `STATE` datapoint these channels do not have and subscribed
  nothing usable. These two types are published by their own module, so no
  installed device was affected; the rule itself works now for any such
  channel.

## 4.1.2 — 2026-10-24

### Fixed

- **The HomeKit name field in the device list uses the available width**
  (#388, @jp112sdl): the column was fixed at 130 px and the field stayed
  91 px wide however wide the edit dialog was pulled; now the column takes
  whatever the dialog leaves next to the CCU name, address and type columns,
  so widening the dialog widens the field, and a long CCU name is cut with
  an ellipsis instead of widening the row. The field also has the height of
  the dropdowns next to it instead of a full-size form field (Node-RED's own
  input rule had overridden the list's), so the list is denser.

## 4.1.1 — 2026-10-24

### Fixed

- **Enter in a HomeKit name field unchecked every device** (#388, @jp112sdl):
  Node-RED renders a node's edit dialog inside a form, and the device list's
  "disable all" button had no `type`, which makes it the form's submit
  button. 4.1.0 put the first text fields into that form, so pressing Enter
  after typing a HomeKit name submitted the form - and that "clicked"
  _disable all_: every device was unchecked, and the next deploy published
  nothing. Both buttons are plain buttons now, and Enter in a name field only
  leaves the field. A selection lost this way is not restored by the update:
  Node-RED keeps the flows from before the last deploy in
  `.flows.json.backup` in its user directory (on RedMatic
  `/usr/local/addons/redmatic/var/`), otherwise re-check the devices in the
  editor ("enable all", then uncheck what was off) and deploy.
- A CCU name containing quotes broke the HomeKit name field next to it (the
  placeholder was cut off), and a fixed channel's name field was disabled
  along with its checkbox.

## 4.1.0 — 2026-10-17

### Added

- **HomeKit name per device and channel** (#388, @jp112sdl): the
  homematic node's device list has a text field next to every device's
  and channel's CCU name for a different name in HomeKit; empty keeps the
  CCU name, shown as placeholder. The name in the CCU is not changed, and
  accessories keep their identity (it follows the address): rooms, scenes
  and automations stay, nothing needs re-pairing. An accessory already in
  the Home app keeps the name the Home app stored when it was added, so
  the HomeKit name mainly applies to newly added accessories and
  channels. Since hap-nodejs 1.0 a name that does not start and end with
  a letter or digit (e.g. `Wandtaster Treppenlicht 1.OG (unten)`) is
  logged as "has an invalid 'Name' characteristic" on every deploy; such
  names get an orange border in the editor, and a HomeKit name like
  `Wandtaster Treppenlicht 1.OG unten` removes the warning. A HomeKit
  name also names a channel's service for the HmIP-PS, -PSM, -FSM, -BDT,
  -FDT, -PDT and HM-ES-PMSW1-PL modules, which publish those services
  without a name otherwise.

## 4.0.3 — 2026-10-11

### Changed

- **Light sensors above 100000 lx** (#387, @jp112sdl): HomeKit's light
  level ends at 100000 lx by default, so since 4.0.2 a brighter reading was
  shown as 100000 lx. Light sensors now take the range their paramset
  reports (HmIP light and motion sensors up to 163830 lx, HM-Sen-LI-O and
  HB-UNI-Sen-WEA up to 200000 lx; at most 500000 lx), for every device
  module and the generic mapping alike. A device whose paramset
  description is not cached yet keeps 100000 lx until the next deploy.
  Pairings and accessories are unchanged; the Home app re-reads the
  accessory's ranges by itself.

## 4.0.2 — 2026-10-11

### Fixed

- **Syslog filled with "characteristic was supplied illegal value"
  warnings** (#387, reported by @jp112sdl, since 4.0.0): hap-nodejs 2.x
  checks every value against the characteristic's range and logs each one
  outside it — every night for a light sensor at 0 lx (HomeKit's minimum is
  0.0001 lx), and on every update of a temperature above 120 °C. The
  Homematic accessories now clamp numeric values to the characteristic's
  range before handing them to HomeKit, for every device module and the
  generic mapping alike; nothing is logged any more (a clamp shows up in
  the debug log only). Temperature sensors and thermostats of the generic
  mapping also take the range their paramset reports where it reaches
  beyond -50…120 °C (up to -270…1000 °C), so e.g. a fireplace sensor at
  165 °C is shown as 165 °C instead of 120 °C. Pairings and accessories are
  unchanged.

## 4.0.1 — 2026-09-05

### Fixed

- **A device unchecked in the homematic node could not be re-enabled**
  (#384, regression from 3.3.0): the editor stored `disabled: true` when a
  device or channel was unchecked, but never removed the flag when it was
  checked again — the 4.0.0 logic that keeps the settings of devices not
  listed in the editor carried the old flag over. Re-enabling now sticks;
  the stored config keeps the 3.3.0 format (only disabled rows and opt-in
  rows are written, empty entries are dropped).
- **Energy-only devices appeared as "Not Supported" in the Home app**
  (#385): HM-ES-TX-WM and HmIP-ESI carry only energy channels, and HomeKit
  has no service for energy or power (Eve characteristics are tracked in
  #114). 4.0.0 published them with nothing but a Battery service, which
  the Home app shows as "Not Supported" and cannot remove. Such devices are
  no longer listed or published, and no generic accessory is ever published
  with only a Battery service. After the update the accessory disappears
  from the Home app by itself.

## 4.0.0 — 2026-09-04

**Release-Notes (Deutsch).** RedMatic-HomeKit läuft wieder auf aktuellen
Systemen: RedMatic 9 / Node-RED 4 und 5 / Node.js ≥ 22.12, installiert
über den Node-RED-Palettenmanager (Suche nach `redmatic-homekit`) ohne
Binärabhängigkeiten. Bestehende Kopplungen bleiben erhalten – nach dem
Update von 3.3.0 muss nichts neu gekoppelt werden, Räume, Namen, Szenen
und Automationen bleiben (auf einer CCU3 mit gekoppeltem 3.3.0 geprüft).
Neu ist die generische Geräteerkennung: jedes Homematic-Gerät, dessen
Kanäle eine bekannte Rolle haben, erscheint in der Geräteliste, auch ohne
eigenes Modul – damit sind unter anderem HmIP-DLD, HmIP-DLS, HmIP-DRDI3,
HmIP-eTRV-E/-C-2/-B-2, HmIP-WTH-1, HmIPW-STHD, HmIP-SRD, HmIP-SCTH230,
HmIP-WRC6/WRC2 und die meisten anderen Taster und Fernbedienungen dabei.
Behoben wurden lang bekannte Probleme: der Status von HmIP-Aktoren wird
jetzt auch dann aktualisiert, wenn sie per Programm, Direktverknüpfung
oder Gerätetaste geschaltet wurden; Thermostate springen beim Einstellen
nicht mehr auf 21 °C und melden 4,5 °C als „Aus“; ein nicht erreichbares
Gerät reißt nicht mehr alle anderen mit; HmIP-Taster melden ihre
Tastendrücke auch ohne CCU-Programm; Eingänge von HmIPW-DRI16/DRI32,
HmIP-FCI und Co. richten sich nach ihrer Betriebsart (Taster/Schalter →
programmierbarer Schalter, Kontakt → Kontaktsensor). Entfallen sind der
Kamera-Node (braucht ffmpeg, das RedMatic 9 nicht mehr mitbringt) und der
Zigbee-Node (Upstream seit 2022 tot, native Abhängigkeiten); Alternativen
stehen in der README. Wer 4.0.0 einsetzt und ein Gerät vermisst oder
falsch abgebildet sieht: Issue mit Gerätetyp öffnen, die generische
Erkennung lässt sich meist ohne Code erweitern.

**Release notes (English summary).** 4.0.0 makes redmatic-homekit
installable again on RedMatic 9 / Node-RED 4–5 / Node ≥ 22.12 through the
palette manager, with no native dependencies. Pairings survive the
upgrade from 3.3.0: no re-pairing, rooms, names, scenes and automations
are kept (verified on a CCU3 with a paired 3.3.0). Device support is now
generic: every device whose channels have a known role is listed, module
or not (HmIP-DLD/DLS, DRDI3, eTRV-E/C-2/B-2, WTH-1, HmIPW-STHD, SRD,
SCTH230, wall buttons and remotes, …). Fixed: state updates for HmIP
actuators switched by programs, links or their own key; thermostat
setpoint jumps and the 4.5 °C = off convention; one unreachable device no
longer marks all others unresponsive; HmIP buttons report presses without
a CCU program; multi-mode inputs follow their operating mode. Removed:
the camera node (needs ffmpeg) and the zigbee node (dead native upstream).

Breaking release.

### Added

- **Generic device mapping**: Homematic devices
  without a per-type module are now mapped from their channel roles, which
  the runtime derives from the paramset descriptions the CCU reports
  (CONTROL hints, channel types, datapoint names). Switches, dimmers,
  colour lights (HmIP-RGBW), blinds, contacts, rotary handles, motion and
  presence sensors, smoke, water and rain detectors, CO₂ and
  temperature/humidity/light sensors, buttons (as programmable switches),
  HmIP door locks (HmIP-DLD, HmIP-DLS) and batteries get HomeKit services
  without any code; HmIP thermostats, locks, garage modules and blinds
  reuse the existing modules. Covers, among the requested types, HmIP-DLD
  (#328, #330, #377), HmIP-DRDI3 (#333, #374), HmIP-eTRV-E/-C-2/-B-2
  (#343, #340, #357), HmIP-WTH-1, HmIPW-STHD (#341), HmIP-SRD (#311),
  HmIP-DSD-PCB (#377), HmIP-SCTH230 (#325), HmIP-DLS (#337), HmIP-WRC6
  and other wall buttons (#361), HM-LC-Ja1PBU-FM (#71) and HM-Sen-RD-O
  (#279). The editor lists these devices with the same options as the
  hand-written ones (accessory type per channel, SingleAccessory, Battery,
  HumiditySensor/LightSensor, opt-in virtual channels and buttons).
- German inline help for every node in the editor (bridge, homematic,
  switch, pseudobutton, programmable switch, universal, tv; garage and
  irrigation had help before) (#112).
- Test suite with device fixtures for 383 device types (from the pydevccu
  catalogue), role and service snapshots, and an end-to-end harness (fake
  Node-RED and fake ccu-connection against the real HAP-NodeJS).

### Fixed

- HmIP actuators (switches, dimmers, blinds, shutters, HmIPW DIN-rail
  actuators): HomeKit now shows the state the device actually has, not the
  last value HomeKit itself wrote. Every HmIP actuator has a transmitter
  channel that reports the real output and three virtual receiver channels
  that are control inputs; HomeKit, direct links, CCU programs and the
  device's own button each use their own receiver, and a receiver only
  reflects its own last command. Accessories used to read their state from
  the receiver HomeKit writes to, so a lamp dimmed by a program, a wall
  button or the local key kept its old value in the Home app. State reads
  now come from the transmitter for every module and for the generic
  mapping (`homematic-devices/lib/state-source.js`), writes still go to
  the receiver (#319, #369, #252, #294). Found on an HmIP-PDT in the
  OpenCCU hardware test and verified there.
- HmIP wall buttons and remotes (HmIP-WRC2/WRC6/BRC2/KRC4/RC8, keys on
  actuators): every key channel now reports its presses. HmIP devices only
  send a key press to the CCU once the datapoint has been declared "in
  use" by a program, a direct link or an XML-RPC client; a button that no
  CCU program used stayed silent in HomeKit. The generic mapping now
  declares `PRESS_SHORT`/`PRESS_LONG` of every key channel it maps
  (`reportValueUsage`). Found with the second button of an HmIP-WRC2 in the
  OpenCCU hardware test.
- HmIP multi-mode inputs (HmIPW-DRI16/DRI32/FIO6, HmIP-FCI1/FCI6,
  HmIP-DSD-PCB, HmIP-MIO16-PCB, keys of HmIP-DRDI3/DRSI/DRBLI): an input
  is mapped by its operating mode. In the factory-default key mode such
  an input only sends key presses and never a STATE, so the contact sensor
  3.3.0 created for it stayed "closed" forever (found on an HmIPW-DRI16).
  The node now reads `CHANNEL_OPERATION_MODE` from the channel's MASTER
  paramset when publishing: key mode ("Taster") → StatelessProgrammableSwitch
  with single and long press, switch mode ("Schalter", one short press per
  flip, no STATE either) → StatelessProgrammableSwitch with single press,
  binary-sensor mode ("Binärsensor") → ContactSensor, Door or Window as
  before, inactive → nothing; key channels get the usage report above. A
  mode changed in the WebUI is picked up at the next deploy or restart.
  For a DRI16 whose inputs
  were never switched to a contact mode this replaces the dead contact
  sensors by buttons in the Home app.
- Buttons: a held key produces exactly one long press in HomeKit. The CCU
  repeats `PRESS_LONG` every few hundred milliseconds for as long as a key
  is down, and every repeat used to become another long-press event (a
  toggle switch on a key-mode DRI16 input produced eight of them per
  flip). Only the first `PRESS_LONG` of a hold is forwarded; the hold
  ends with `PRESS_LONG_RELEASE` or after 1.5 s without a repeat. Applies
  to every generic key channel and the DRI16/DRI32 inputs.
- Bridge name: the bridge keeps exactly the name configured in the bridge
  node. hap-nodejs 2.x appends four hex digits by default ("RedMatic
  Bridge 25F0"); 3.3.0 did not, and the upgrade test showed the changed
  name as the only difference on the bridge accessory.
- The CCU's own virtual remote (HmIP-RCV-50, HM-RCV-50) is opt-in: it
  mapped to a 50-button accessory on every bridge, which is noise for most
  homes. Tick it in the device list to publish it (useful to trigger
  HomeKit automations from CCU programs by "pressing" a virtual key).
- First deploy: the homematic node no longer publishes "0 devices" when it
  is deployed together with a new ccu-connection node or on a box without
  cached CCU metadata. The ccu-connection reports its interfaces as
  connected before it has fetched the device list, and the node used to
  publish at that moment, so nothing appeared in HomeKit until Node-RED
  was restarted. It now waits until the device list and the channel names
  have arrived and stopped changing (status "waiting for devices", a few
  seconds, at most a minute) before publishing. Reproduced on both lab
  boxes.
- Universal node: writes from HomeKit are forwarded to the node output
  again. The migration to hap-nodejs 2.x had silently broken this (the
  change event no longer carries the old request context; the node now
  forwards on the event's `write` reason). Found in the OpenCCU hardware
  test, covered by a test now.
- Thermostats (HmIP-WTH/-BWTH/-STH/-eTRV, HmIP-HEATING groups, HM-CC-RT-DN,
  HM-TC-IT-WM-W-EU, HM-CC-VG-1): changing the temperature in the Home app
  no longer makes the thermostat jump to 21 °C first (#245, #225). The
  setpoint HomeKit restores when switching to HEAT is the one last read or
  written, the mode write waits for a temperature write from the same
  request, and a setpoint that was just written is never overridden. A
  setpoint at the off temperature (4.5 °C) is reported as OFF in every mode
  instead of "heating to 4.5 °C" after a restart (#335). Shared logic lives
  in `homematic-devices/lib/thermostat.js` with tests.
- One unreachable device no longer takes every accessory of the bridge
  down with it (#312, #194): HAP-NodeJS 2.x answers batched reads with a
  status per characteristic, so only the unreachable accessory shows
  "No Response".
- HmIPW-DRD3: the three dimmer outputs can be split into one accessory
  per output (`SingleAccessory` off), each named after its channel; the
  brightness bookkeeping is per output instead of shared (PR #353 idea,
  re-implemented on the existing module so the default layout stays
  identical for paired homes).
- TV node: default port stored as a string so Node-RED ≥ 1.3 validates it
  (PR #345, #344).

### Changed

- Bridge mDNS: new **auto** default that advertises through a running
  avahi-daemon (OpenCCU) over D-Bus and falls back to hap-nodejs' own
  responder on hosts without one (official CCU firmware), so both
  firmwares work without configuration; `ciao`, `bonjour-hap` and `avahi`
  can still be forced.
- **HAP library: `hap-nodejs` 0.4.52 (2019) → `@homebridge/hap-nodejs` 2.x**. Pairings, accessory identities and service numbering are kept
  (storage stays in `<userDir>/homekit`, UUIDs are still derived from the
  bridge MAC and the CCU addresses), so controllers do not need to re-pair
  and rooms/automations survive. Internally: `HAPStorage` instead of
  `hap.init`, `Categories`/`HAPStatus`/`HapStatusError` instead of the
  removed `Accessory.Categories`/`HAPServer.Status`, `Battery` instead of
  the removed `BatteryService` (same service UUID), async `publish()`.
- Bridge: the mDNS advertiser is configurable (see above) for network
  setups where the default does not work (#348); the
  accessory limit follows hap-nodejs (149 per bridge) with a hint to use a
  second bridge; the bridge label in the editor shows the bridge name
  (#224). A failed publish now reports the error instead of leaving the
  bridge half-published.
- Homematic device editor: the device list and the per-channel options are
  now served by the runtime (`homematic-devices/options.json` +
  `homematic-devices/lib/catalogue.js`) instead of a 500-line hard-coded
  table inside the editor; the stored configuration format is unchanged.
  Devices that are missing from the list can no longer disagree with what
  the runtime supports. Fixes the two ZEL (Roto) device types, which the
  old editor spelled differently from the runtime and therefore never
  listed. Settings of devices that are temporarily not listed (interface
  down) are kept instead of being dropped on save.
- TV node: uses the accessory `paired`/`unpaired` events instead of the
  removed HAP server events.
- Supported platforms: Node.js ≥ 22.12 and Node-RED ≥ 4 (`engines` and
  `node-red.version` are declared now; the palette manager refuses older
  runtimes instead of failing later).
- Tooling: xo replaced by ESLint 9 + Prettier (also linting the editor
  scripts in the node `.html` files), `node --test` unit tests, GitHub
  Actions CI (lint, Node 22/24 × Node-RED 4/5, native-dependency scan) and a
  tag-driven release workflow with npm provenance. The published package is
  reduced to `nodes/`, `homematic-devices/` and this changelog.
- A guard (`tools/check-native.js`, run in CI) fails the build if any
  production dependency needs a compiler, an install script or ships a
  binary — the package must stay installable on a CCU.

### Removed

- **Camera node** (`redmatic-homekit-camera`) and the
  `homebridge-camera-ffmpeg` dependency. It needed an `ffmpeg` binary
  that RedMatic 9 no longer ships and a rewrite against the hap-nodejs 2.x
  `CameraController` API. Use Homebridge with homebridge-camera-ffmpeg or
  Scrypted for cameras. Existing flows keep importing; the node shows up as
  an unknown type and must be deleted.
- **Zigbee node** (`redmatic-homekit-zigbee-devices`) and the
  `zigbee-devices/` adapters. Its upstream node-red-contrib-zigbee has
  been unmaintained since 2022 and depends on native serialport code that
  cannot be installed on a CCU. zigbee2mqtt plus the universal node is the
  supported way to bring Zigbee devices into HomeKit.
- `create-todo.js` maintainer leftover.
