Enhancements
- Refactored sensor handling into shared protocol abstractions with a new unified sensor base:
- Added
MatterSensorandHAPSensorimplementations insrc/sensorBase.ts. - Added
UpdateSensororchestration insrc/updateSensor.ts. - Simplified platform classes by delegating sensor behavior to shared abstractions.
- Added
- Improved runtime platform selection and startup behavior:
- Strengthened HAP/Matter proxy logic in
src/utils.ts. - Added explicit protocol selection flow from platform constructors to update sensor initialization.
- Added debug-level protocol selection logs for easier troubleshooting without noisy normal logs.
- Strengthened HAP/Matter proxy logic in
Bug Fixes
- Fixed Matter startup regression where cached Matter accessories could be treated as orphaned on restart:
- Ensured stable proxy instantiation/delegation for Homebridge platform lifecycle handling.
- Improved Matter capability detection compatibility across Homebridge API shapes.
- Prevented mixed protocol registration by explicitly selecting
hapormatterfor sensor wiring.
- Hardened accessory handling across platform implementations:
- Improved update/failure sensor registration and restore behavior in both HAP and Matter paths.
Other
- Updated tests for platform proxy behavior and protocol selection edge cases in
src/utils.test.ts. - Updated dependencies and lockfile metadata.
- Regenerated docs and TypeDoc assets.
Full Changelog: v3.0.1...v3.0.2