Skip to content

Commit

Permalink
Dev 2.1.6-dev.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Feb 12, 2025
1 parent b846179 commit d696874
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 52 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ matterbridge-hass v. 0.0.8
### Added

- [docker]: Added health check directly inside the docker image. No need to change configuration.
- [platform]: Added saving to storage the selects for faster loading.
- [platform]: Saving in the storage the selects for faster loading of plugins.
- [icon]: Added matterbridge svg icon (thanks: https://github.com/robvanoostenrijk https://github.com/stuntguy3000).
- [frontend]: Frontend v.2.4.2.

### Changed

- [package]: Update matter.js to 0.12.4-alpha.0-20250212-b2729c9eb

<a href="https://www.buymeacoffee.com/luligugithub">
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
</a>
Expand Down
94 changes: 47 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matterbridge",
"version": "2.1.6-dev.1",
"version": "2.1.6-dev.2",
"description": "Matterbridge plugin manager for Matter",
"author": "https://github.com/Luligu",
"license": "Apache-2.0",
Expand Down Expand Up @@ -130,7 +130,7 @@
"cleanBuildProduction": "npm run clean && npm run buildProduction",
"deepClean": "npx rimraf tsconfig.tsbuildinfo package-lock.json npm-shrinkwrap.json ./dist ./node_modules",
"deepCleanBuild": "npm run deepClean && npm install && npm run build && npm link",
"checkBeforePush": "npm run deepCleanBuild && npm run lint && npm run format && npm run test",
"runMeBeforePublish": "npm run deepCleanBuild && npm run lint && npm run format && npm run test:coverage",
"prepublishOnly": "npm pkg delete devDependencies scripts && npm install --omit=dev && npm shrinkwrap",
"prepublishOnlyProduction": "npm run cleanBuildProduction && npm pkg delete devDependencies scripts types && npx rimraf ./node_modules && npm install --omit=dev && npm shrinkwrap",
"npmPack": "copy package.json package.log && npm run prepublishOnlyProduction && npm pack && copy package.log package.json && npm run deepCleanBuild",
Expand All @@ -148,7 +148,7 @@
"install:jest": "npm install --save-dev jest ts-jest @types/jest eslint-plugin-jest && npm run test"
},
"dependencies": {
"@matter/main": "0.12.3",
"@matter/main": "^0.12.4-alpha.0-20250212-b2729c9eb",
"archiver": "7.0.1",
"express": "4.21.2",
"glob": "11.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/matter/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export {
SwitchesTag,
} from '@matter/main';
export { AttributeElement, ClusterElement, ClusterModel, CommandElement, EventElement, FieldElement } from '@matter/main/model';
// export { logEndpoint, MdnsService, Val } from '@matter/main/protocol';
export { logEndpoint, MdnsService } from '@matter/main/protocol';
6 changes: 6 additions & 0 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ export class Matterbridge extends EventEmitter {
plugin.platform.log.logLevel = plugin.platform.config.debug === true ? LogLevel.DEBUG : this.log.logLevel;
await plugin.platform.onChangeLoggerLevel(plugin.platform.config.debug === true ? LogLevel.DEBUG : this.log.logLevel);
}
// Set the global logger callback for the WebSocketServer to the common minimum logLevel
let callbackLogLevel = LogLevel.NOTICE;
if (this.matterbridgeInformation.loggerLevel === LogLevel.INFO || this.matterbridgeInformation.matterLoggerLevel === MatterLogLevel.INFO) callbackLogLevel = LogLevel.INFO;
if (this.matterbridgeInformation.loggerLevel === LogLevel.DEBUG || this.matterbridgeInformation.matterLoggerLevel === MatterLogLevel.DEBUG) callbackLogLevel = LogLevel.DEBUG;
AnsiLogger.setGlobalCallback(this.frontend.wssSendMessage.bind(this.frontend), callbackLogLevel);
this.log.debug(`WebSocketServer logger global callback set to ${callbackLogLevel}`);
}

/** ***********************************************************************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion src/matterbridgeEndpoint-matterjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ describe('MatterbridgeEndpoint class', () => {
{ deviceType: occupancySensor.code, revision: occupancySensor.revision },
],
}),
).toThrow();
).not.toThrow();
await expect(server.add(child)).resolves.toBeDefined();
logEndpoint(EndpointServer.forEndpoint(child));
});
Expand Down

0 comments on commit d696874

Please sign in to comment.