diff --git a/package-lock.json b/package-lock.json index a08e8d8..d73bf87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,11 +13,11 @@ "node-persist-manager": "1.0.8" }, "devDependencies": { - "@eslint/js": "9.16.0", + "@eslint/js": "9.17.0", "@types/eslint__js": "8.42.3", "@types/jest": "29.5.14", "@types/node": "22.10.2", - "eslint": "9.16.0", + "eslint": "9.17.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-jest": "28.9.0", "eslint-plugin-prettier": "5.2.1", @@ -660,9 +660,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.16.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.16.0.tgz", - "integrity": "sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.17.0.tgz", + "integrity": "sha512-Sxc4hqcs1kTu0iID3kcZDW3JHq2a77HO9P8CP6YEA/FpH3Ll8UXE2r/86Rz9YJLKme39S9vU5OWNjC6Xl0Cr3w==", "dev": true, "license": "MIT", "engines": { @@ -2338,9 +2338,9 @@ } }, "node_modules/eslint": { - "version": "9.16.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.16.0.tgz", - "integrity": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==", + "version": "9.17.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.17.0.tgz", + "integrity": "sha512-evtlNcpJg+cZLcnVKwsai8fExnqjGPicK7gnUtlNuzu+Fv9bI0aLpND5T44VLQtoMEnI57LoXO9XAkIXwohKrA==", "dev": true, "license": "MIT", "dependencies": { @@ -2349,7 +2349,7 @@ "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.9.0", "@eslint/eslintrc": "^3.2.0", - "@eslint/js": "9.16.0", + "@eslint/js": "9.17.0", "@eslint/plugin-kit": "^0.2.3", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -2358,7 +2358,7 @@ "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.5", + "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", diff --git a/package.json b/package.json index 3905505..5079658 100644 --- a/package.json +++ b/package.json @@ -63,11 +63,11 @@ "dev:unlink": "npm unlink matterbridge" }, "devDependencies": { - "@eslint/js": "9.16.0", + "@eslint/js": "9.17.0", "@types/eslint__js": "8.42.3", "@types/jest": "29.5.14", "@types/node": "22.10.2", - "eslint": "9.16.0", + "eslint": "9.17.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-jest": "28.9.0", "eslint-plugin-prettier": "5.2.1", diff --git a/src/platform.ts b/src/platform.ts index 991f732..9993a6e 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -89,6 +89,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf airQuality: MatterbridgeDevice | undefined; airConditioner: MatterbridgeDevice | undefined; airPurifier: MatterbridgeDevice | undefined; + pump: MatterbridgeDevice | undefined; + valve: MatterbridgeDevice | undefined; switchInterval: NodeJS.Timeout | undefined; lightInterval: NodeJS.Timeout | undefined; @@ -826,7 +828,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf this.airPurifier.log.logName = 'Air purifier'; this.airPurifier.createDefaultBridgedDeviceBasicInformationClusterServer( 'Air purifier', - '0x96584864', + '0x96584864AP', 0xfff1, 'Matterbridge', 'Matterbridge Air purifier', @@ -890,7 +892,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf this.airConditioner.log.logName = 'Air conditioner'; this.airConditioner.createDefaultBridgedDeviceBasicInformationClusterServer( 'Air conditioner', - '0x96382864', + '0x96382864AC', 0xfff1, 'Matterbridge', 'Matterbridge Air conditioner', @@ -972,7 +974,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf if (isValidNumber(newValue, 0, 100)) await this.fan?.setAttribute(FanControlCluster.id, 'percentCurrent', newValue, this.fan?.log); }, this.fan.log, - this.fan, ); this.fan.subscribeAttribute( FanControlCluster.id, @@ -982,7 +983,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf if (isValidNumber(newValue, 0, 100)) await this.fan?.setAttribute(FanControlCluster.id, 'speedCurrent', newValue, this.fan?.log); }, this.fan.log, - this.fan, ); /** ********************* Create a waterLeakDetector device ***********************/