Repository navigation
v5.5.0 - #1469
Merged
Merged
v5.5.0#1469
Conversation
Homebridge 2.5.1 warns at registration for clusters a device type does
not carry and for attribute names a cluster does not have.
- plug: drop the `electricalMeasurement` block. It is not a Matter
cluster, so matter.js always discarded it and Homebridge now warns.
Not replaced with electricalPowerMeasurement: nothing in the plugin
updates power readings yet, so it would expose a permanent empty
reading on every plug, metering or not.
- motion: OccupancySensing's Occupancy attribute is a bitmap, so the
initial value is now `{ occupied: false }` instead of `0`, and the
descriptor read in GenericDevice returns `{ occupied }` instead of 1/0.
meter and humidifier still declare relativeHumidityMeasurement on device
types (TemperatureSensor, Fan) that do not list it, even as optional, so
Homebridge will keep warning for them; fixing that needs a different
device composition and is left for a separate change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LzktUspaxcZ9Dh5WVEtf5W
…1468) ## What changed node-switchbot 6.1.4 (OpenWonderLabs/node-switchbot#368) resolves new SwitchBotAPI device types. This makes them selectable in the plugin and gives each an accessory: | Device type | Accessory | Why | | --- | --- | --- | | `Curtain4` (also `Curtain 4`) | `Curtain3Device` (Window Covering) | Same OpenAPI commands as the Curtain 3; Matter treats it as a curtain | | `Robot Vacuum Cleaner S30` | `VacuumDevice` | Same as the S20 | | `Robot Vacuum Cleaner K11 Plus Pro` | `WoSweeperDevice` | Same as the K11+ | `config.schema.json` is regenerated from `DEVICE_TYPES`. Tests in `test/device/model-identities.spec.ts` check that each type normalizes and creates the right accessory, and the existing check that normalized types never fall back to `GenericDevice` covers them too. Not added: Art Frame 2 / AI Art Frame 2 and E Ink Photo Magnet (node-switchbot#366). HomeKit and Matter have no picture-frame accessory, and the generic fallback would show them as a Switch that does nothing useful. The existing `AI Art Frame` type has the same issue. No config migration needed. The node-switchbot range (`^6.1.2`) already allows 6.1.4; the lockfile bump comes from the `deps/node-switchbot` PR. ## Checks `npm run build`, `npm run test` (248 passed, 1 skipped) and `npm run lint` pass locally. --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
homebridge-switchbot 5.5.0
Releases what was waiting on
beta-5.4.2(published as5.4.2-beta.0). 5.4.2 was cut fromlatestbefore these landed.^6.1.2range allows.electricalMeasurementcluster, and motion sensors report occupancy as the{ occupied }bitmap. Homebridge 2.5.1 warns about both otherwise.Labelled
minorlike v5.4.0, since it adds device types. No config migration needed.Generated by Claude Code