Skip to content

v2.3.1

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 00:42
· 1 commit to latest since this release

Summary

A correctness and security release. Pair-setup is hardened (the SRP key now mixes in the setup-code verifier, and fast-srp-hap 2.0.5 hardens the server exponent). Camera, data stream, server, accessory, remote and characteristic handling get a large set of fixes from a full code review, alongside fixes for user-reported issues and dependency updates. ciao, bonjour-hap and fast-srp-hap move to their new stable releases.

API changes

  • Added: HomeKit definitions from Apple's v891 metadata.
  • Added (lock): AccessCodeManagement for the Access Code service, and NFCAccessManagement for the HomeKit half of Apple Home Key.
  • Added: encodeErrorStatus / decodeErrorStatus for the Error Status characteristic, and setOperatingState on the doorbell for too-hot or too-cold reporting.
  • Changed (TypeScript only): stricter types. Characteristic change context, data stream message fields and DataStreamParser.decode() are unknown; HAPStorage.storage().getItem<T>() returns T | undefined; tlv.encode() and uuid.unparse() check their input. JavaScript plugins are not affected.
  • Changed: every const enum is a normal enum. Values are unchanged except DataFormatTags.INTEGER_RANGE_STOP_39, corrected from 46 to 47.
  • Changed: addBridgedAccessory() throws on a duplicate UUID. removeBridgedAccessory() no longer removes listeners the plugin added.
  • Changed: a fractional minStep on an integer characteristic is ignored with a warning.
  • Changed: a data stream sendRequest() / sendResponse() before hello throws HDSConnectionError, and pending requests fail at once when the connection closes.

Other changes

  • Users: pairing files in persist/ are saved readable by their owner only. After running as another user (for example with sudo), chown them back; HAP-NodeJS says so in its error. A corrupt HAP-NodeJS file in persist/ is set aside as .<name>.corrupt-<time> instead of breaking start-up.
  • Cameras: a camera restored from cache gets the motion or occupancy sensor it was configured with, and the delegate gets a STOP after a failed START or RECONFIGURE.
  • Dependencies: @homebridge/ciao 1.4.1, bonjour-hap 3.11.1, fast-srp-hap 2.0.5, plus routine dependency updates.
  • Full detail in CHANGELOG.md.

🤖 Generated with Claude Code