On Homebridge installations with multiple plugins based on homebridge-lib, where homebridge-lib is deduped (installed only once instead of per plugin), homebridge-lib would produce a fatal error fatal: config.json: duplicate entry for ... platform and cause the Homebridge process to exit. In particular, this happens on installations that don't use npm to install plugins, like the recent Raspberry Pi installations using the apt package for Homebridge.
Please re-install the affected plugins, and they should pickup the latest homebridge-lib version, v5.6.1.
But during initialisation, the subsequent plugins take on the identity of the first plugin. This causes homebridge-lib to think the same plugin is initialised multiple time, resulting in the duplicate entry fatal error.
Note that the subsequent plugins report the version of the first plugin, instead of their own version.
I think this bug was introduced in homebridge-lib v5.2.0, from January 2022, but is only surfacing now, with the changed Homebridge installation for Raspberry Pi from May 2022.
v5.6.0
Enhancements
ServiceDelegate.History.Motion: add support for Light Level history.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps homebridge-lib from 5.4.1 to 5.6.1.
Release notes
Sourced from homebridge-lib's releases.
Commits
0964b95
5.6.1c76c5c9
5.6.1-0bb23365
Update Platform.js5f2b281
5.6.077151ef
Bump dependenciesee256a8
Update Motion.js6697c34
Update Motion.jsd659608
5.5.0864d2dc
Update package-lock.jsonc4a358d
Update Platform.jsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)