@homebridge-plugins/homebridge-matter 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AskMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Ask2AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="EditMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,3 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="benpotter" />
3
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/homebridge-matter.iml" filepath="$PROJECT_DIR$/.idea/homebridge-matter.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
package/README.md ADDED
@@ -0,0 +1,215 @@
1
+ <p align="center">
2
+
3
+ <img src="https://github.com/homebridge/branding/raw/latest/logos/homebridge-wordmark-logo-vertical.png" width="150">
4
+
5
+ </p>
6
+
7
+ <span align="center">
8
+
9
+ # Homebridge Platform Plugin Template
10
+
11
+ </span>
12
+
13
+ > [!IMPORTANT]
14
+ > **Homebridge v2.0 Information**
15
+ >
16
+ > This template currently has a
17
+ > - `package.json -> engines.homebridge` value of `"^1.8.0 || ^2.0.0-beta.0"`
18
+ > - `package.json -> devDependencies.homebridge` value of `"^2.0.0-beta.0"`
19
+ >
20
+ > This is to ensure that your plugin will build and run on both Homebridge v1 and v2.
21
+ >
22
+ > Once Homebridge v2.0 has been released, you can remove the `-beta.0` in both places.
23
+
24
+ ---
25
+
26
+ This is a template Homebridge dynamic platform plugin and can be used as a base to help you get started developing your own plugin.
27
+
28
+ This template should be used in conjunction with the [developer documentation](https://developers.homebridge.io/). A full list of all supported service types, and their characteristics is available on this site.
29
+
30
+ ### Clone As Template
31
+
32
+ Click the link below to create a new GitHub Repository using this template, or click the *Use This Template* button above.
33
+
34
+ <span align="center">
35
+
36
+ ### [Create New Repository From Template](https://github.com/homebridge/homebridge-plugin-template/generate)
37
+
38
+ </span>
39
+
40
+ ### Setup Development Environment
41
+
42
+ To develop Homebridge plugins you must have Node.js 18 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:
43
+
44
+ - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
45
+
46
+ ### Install Development Dependencies
47
+
48
+ Using a terminal, navigate to the project folder and run this command to install the development dependencies:
49
+
50
+ ```shell
51
+ npm install
52
+ ```
53
+
54
+ ### Update package.json
55
+
56
+ Open the [`package.json`](./package.json) and change the following attributes:
57
+
58
+ - `name` - this should be prefixed with `homebridge-` or `@username/homebridge-`, is case-sensitive, and contains no spaces nor special characters apart from a dash `-`
59
+ - `displayName` - this is the "nice" name displayed in the Homebridge UI
60
+ - `homepage` - link to your GitHub repo's `README.md`
61
+ - `repository.url` - link to your GitHub repo
62
+ - `bugs.url` - link to your GitHub repo issues page
63
+
64
+ When you are ready to publish the plugin you should set `private` to false, or remove the attribute entirely.
65
+
66
+ ### Update Plugin Defaults
67
+
68
+ Open the [`src/settings.ts`](./src/settings.ts) file and change the default values:
69
+
70
+ - `PLATFORM_NAME` - Set this to be the name of your platform. This is the name of the platform that users will use to register the plugin in the Homebridge `config.json`.
71
+ - `PLUGIN_NAME` - Set this to be the same name you set in the [`package.json`](./package.json) file.
72
+
73
+ Open the [`config.schema.json`](./config.schema.json) file and change the following attribute:
74
+
75
+ - `pluginAlias` - set this to match the `PLATFORM_NAME` you defined in the previous step.
76
+
77
+ See the [Homebridge API docs](https://developers.homebridge.io/#/config-schema#default-values) for more details on the other attributes you can set in the `config.schema.json` file.
78
+
79
+ ### Build Plugin
80
+
81
+ TypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.
82
+
83
+ ```shell
84
+ npm run build
85
+ ```
86
+
87
+ ### Link To Homebridge
88
+
89
+ Run this command so your global installation of Homebridge can discover the plugin in your development environment:
90
+
91
+ ```shell
92
+ npm link
93
+ ```
94
+
95
+ You can now start Homebridge, use the `-D` flag, so you can see debug log messages in your plugin:
96
+
97
+ ```shell
98
+ homebridge -D
99
+ ```
100
+
101
+ ### Watch For Changes and Build Automatically
102
+
103
+ If you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes, you first need to add your plugin as a platform in `./test/hbConfig/config.json`:
104
+ ```
105
+ {
106
+ ...
107
+ "platforms": [
108
+ {
109
+ "name": "Config",
110
+ "port": 8581,
111
+ "platform": "config"
112
+ },
113
+ {
114
+ "name": "<PLUGIN_NAME>",
115
+ //... any other options, as listed in config.schema.json ...
116
+ "platform": "<PLATFORM_NAME>"
117
+ }
118
+ ]
119
+ }
120
+ ```
121
+
122
+ and then you can run:
123
+
124
+ ```shell
125
+ npm run watch
126
+ ```
127
+
128
+ This will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.
129
+
130
+ ### Customise Plugin
131
+
132
+ You can now start customising the plugin template to suit your requirements.
133
+
134
+ - [`src/platform.ts`](./src/platform.ts) - this is where your device setup and discovery should go.
135
+ - [`src/platformAccessory.ts`](./src/platformAccessory.ts) - this is where your accessory control logic should go, you can rename or create multiple instances of this file for each accessory type you need to implement as part of your platform plugin. You can refer to the [developer documentation](https://developers.homebridge.io/) to see what characteristics you need to implement for each service type.
136
+ - [`config.schema.json`](./config.schema.json) - update the config schema to match the config you expect from the user. See the [Plugin Config Schema Documentation](https://developers.homebridge.io/#/config-schema).
137
+
138
+ ### Versioning Your Plugin
139
+
140
+ Given a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:
141
+
142
+ 1. **MAJOR** version when you make breaking changes to your plugin,
143
+ 2. **MINOR** version when you add functionality in a backwards compatible manner, and
144
+ 3. **PATCH** version when you make backwards compatible bug fixes.
145
+
146
+ You can use the `npm version` command to help you with this:
147
+
148
+ ```shell
149
+ # major update / breaking changes
150
+ npm version major
151
+
152
+ # minor update / new features
153
+ npm version update
154
+
155
+ # patch / bugfixes
156
+ npm version patch
157
+ ```
158
+
159
+ ### Publish Package
160
+
161
+ When you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:
162
+
163
+ ```shell
164
+ npm publish
165
+ ```
166
+
167
+ If you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.
168
+
169
+ #### Publishing Beta Versions
170
+
171
+ You can publish *beta* versions of your plugin for other users to test before you release it to everyone.
172
+
173
+ ```shell
174
+ # create a new pre-release version (eg. 2.1.0-beta.1)
175
+ npm version prepatch --preid beta
176
+
177
+ # publish to @beta
178
+ npm publish --tag beta
179
+ ```
180
+
181
+ Users can then install the *beta* version by appending `@beta` to the install command, for example:
182
+
183
+ ```shell
184
+ sudo npm install -g homebridge-example-plugin@beta
185
+ ```
186
+
187
+ ### Best Practices
188
+
189
+ Consider creating your plugin with the [Homebridge Verified](https://github.com/homebridge/verified) criteria in mind. This will help you to create a plugin that is easy to use and works well with Homebridge.
190
+ You can then submit your plugin to the Homebridge Verified list for review.
191
+ The most up-to-date criteria can be found [here](https://github.com/homebridge/verified#requirements).
192
+ For reference, the current criteria are:
193
+
194
+ - **General**
195
+ - The plugin must be of type [dynamic platform](https://developers.homebridge.io/#/#dynamic-platform-template).
196
+ - The plugin must not offer the same nor less functionality than that of any existing **verified** plugin.
197
+ - **Repo**
198
+ - The plugin must be published to NPM and the source code available on a GitHub repository, with issues enabled.
199
+ - A GitHub release should be created for every new version of your plugin, with release notes.
200
+ - **Environment**
201
+ - The plugin must run on all [supported LTS versions of Node.js](https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js), at the time of writing this is Node v18, v20 and v22.
202
+ - The plugin must successfully install and not start unless it is configured.
203
+ - The plugin must not execute post-install scripts that modify the users' system in any way.
204
+ - The plugin must not require the user to run Homebridge in a TTY or with non-standard startup parameters, even for initial configuration.
205
+ - **Codebase**
206
+ - The plugin must implement the [Homebridge Plugin Settings GUI](https://developers.homebridge.io/#/config-schema).
207
+ - The plugin must not contain any analytics or calls that enable you to track the user.
208
+ - If the plugin needs to write files to disk (cache, keys, etc.), it must store them inside the Homebridge storage directory.
209
+ - The plugin must not throw unhandled exceptions, the plugin must catch and log its own errors.
210
+
211
+ ### Useful Links
212
+
213
+ Note these links are here for help but are not supported/verified by the Homebridge team
214
+
215
+ - [Custom Characteristics](https://github.com/homebridge/homebridge-plugin-template/issues/20)
@@ -0,0 +1,18 @@
1
+ {
2
+ "pluginAlias": "Matter",
3
+ "pluginType": "platform",
4
+ "singular": true,
5
+ "strictValidation": false,
6
+ "schema": {
7
+ "type": "object",
8
+ "required": ["name"],
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "name": {
12
+ "title": "Name",
13
+ "type": "string",
14
+ "default": "Example Dynamic Platform"
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,6 @@
1
+ import type { API } from 'homebridge';
2
+ /**
3
+ * This method registers the platform with Homebridge
4
+ */
5
+ declare const _default: (api: API) => void;
6
+ export default _default;
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { ExampleHomebridgePlatform } from './platform.js';
2
+ import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
3
+ /**
4
+ * This method registers the platform with Homebridge
5
+ */
6
+ export default (api) => {
7
+ api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, ExampleHomebridgePlatform);
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE3D;;GAEG;AACH,eAAe,CAAC,GAAQ,EAAE,EAAE;IAC1B,GAAG,CAAC,gBAAgB,CAAC,WAAW,EAAE,aAAa,EAAE,yBAAyB,CAAC,CAAC;AAC9E,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { API, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig } from 'homebridge';
2
+ /**
3
+ * MatterPlatform
4
+ * Demonstrates all available Matter device types in Homebridge
5
+ */
6
+ export declare class ExampleHomebridgePlatform implements DynamicPlatformPlugin {
7
+ readonly log: Logging;
8
+ readonly config: PlatformConfig;
9
+ readonly api: API;
10
+ readonly accessories: Map<string, PlatformAccessory>;
11
+ constructor(log: Logging, config: PlatformConfig, api: API);
12
+ /**
13
+ * Required for DynamicPlatformPlugin
14
+ * Called when homebridge restores cached accessories from disk at startup
15
+ */
16
+ configureAccessory(accessory: PlatformAccessory): void;
17
+ /**
18
+ * Register all Matter accessory examples
19
+ */
20
+ private registerMatterAccessories;
21
+ /**
22
+ * Lighting Devices
23
+ */
24
+ private registerLightingDevices;
25
+ /**
26
+ * Switches and Outlets
27
+ */
28
+ private registerSwitchesAndOutlets;
29
+ /**
30
+ * Sensors
31
+ */
32
+ private registerSensors;
33
+ /**
34
+ * HVAC Devices
35
+ */
36
+ private registerHVAC;
37
+ /**
38
+ * Security Devices
39
+ */
40
+ private registerSecurity;
41
+ /**
42
+ * Other Devices
43
+ */
44
+ private registerOtherDevices;
45
+ }
@@ -0,0 +1,625 @@
1
+ /**
2
+ * MatterPlatform
3
+ * Demonstrates all available Matter device types in Homebridge
4
+ */
5
+ export class ExampleHomebridgePlatform {
6
+ log;
7
+ config;
8
+ api;
9
+ // Track restored cached accessories (required for DynamicPlatformPlugin)
10
+ accessories = new Map();
11
+ constructor(log, config, api) {
12
+ this.log = log;
13
+ this.config = config;
14
+ this.api = api;
15
+ this.log.debug('Finished initializing platform:', this.config.name);
16
+ // Check if the user has matter enabled
17
+ if (!this.api.isMatterEnabled?.()) {
18
+ this.log.warn('Matter is not enabled in Homebridge. Please enable Matter in the Homebridge settings to use this plugin.');
19
+ return;
20
+ }
21
+ // Register Matter accessories when Homebridge has finished launching
22
+ this.api.on('didFinishLaunching', () => {
23
+ this.log.debug('Executed didFinishLaunching callback');
24
+ this.registerMatterAccessories();
25
+ });
26
+ }
27
+ /**
28
+ * Required for DynamicPlatformPlugin
29
+ * Called when homebridge restores cached accessories from disk at startup
30
+ */
31
+ configureAccessory(accessory) {
32
+ this.log.info('Loading accessory from cache:', accessory.displayName);
33
+ this.accessories.set(accessory.UUID, accessory);
34
+ }
35
+ /**
36
+ * Register all Matter accessory examples
37
+ */
38
+ registerMatterAccessories() {
39
+ this.log.info('Registering Matter accessories...');
40
+ // Register each device type
41
+ this.registerLightingDevices();
42
+ // this.registerSwitchesAndOutlets();
43
+ // this.registerSensors();
44
+ // this.registerHVAC();
45
+ // this.registerSecurity();
46
+ // this.registerOtherDevices();
47
+ this.log.info('Finished registering Matter accessories');
48
+ }
49
+ /**
50
+ * Lighting Devices
51
+ */
52
+ registerLightingDevices() {
53
+ // 1. On/Off Light
54
+ this.api.registerMatterAccessory({
55
+ uuid: 'matter-onoff-light',
56
+ displayName: 'On/Off Light',
57
+ deviceType: this.api.matterDeviceTypes.OnOffLight,
58
+ serialNumber: 'LIGHT-001',
59
+ manufacturer: 'Matter Examples',
60
+ model: 'OnOffLight v1',
61
+ clusters: {
62
+ onOff: {
63
+ onOff: false,
64
+ },
65
+ },
66
+ handlers: {
67
+ onOff: {
68
+ on: async () => {
69
+ this.log.info('[On/Off Light] Turned ON');
70
+ },
71
+ off: async () => {
72
+ this.log.info('[On/Off Light] Turned OFF');
73
+ },
74
+ },
75
+ },
76
+ });
77
+ // 2. Dimmable Light
78
+ this.api.registerMatterAccessory({
79
+ uuid: 'matter-dimmable-light',
80
+ displayName: 'Dimmable Light',
81
+ deviceType: this.api.matterDeviceTypes.DimmableLight,
82
+ serialNumber: 'LIGHT-002',
83
+ manufacturer: 'Matter Examples',
84
+ model: 'DimmableLight v1',
85
+ clusters: {
86
+ onOff: {
87
+ onOff: false,
88
+ },
89
+ levelControl: {
90
+ currentLevel: 127, // 50% brightness (1-254 scale)
91
+ minLevel: 1,
92
+ maxLevel: 254,
93
+ },
94
+ },
95
+ handlers: {
96
+ onOff: {
97
+ on: async () => {
98
+ this.log.info('[Dimmable Light] Turned ON');
99
+ },
100
+ off: async () => {
101
+ this.log.info('[Dimmable Light] Turned OFF');
102
+ },
103
+ },
104
+ levelControl: {
105
+ moveToLevel: async (args) => {
106
+ this.log.info(`[Dimmable Light] Brightness changed to ${args.level} (${Math.round(args.level / 254 * 100)}%)`);
107
+ },
108
+ },
109
+ },
110
+ });
111
+ //
112
+ // // 3. Color Temperature Light
113
+ // this.api.registerMatterAccessory({
114
+ // uuid: 'matter-color-temp-light',
115
+ // displayName: 'Color Temperature Light',
116
+ // deviceType: this.api.matterDeviceTypes.ColorTemperatureLight,
117
+ // serialNumber: 'LIGHT-003',
118
+ // manufacturer: 'Matter Examples',
119
+ // model: 'ColorTempLight v1',
120
+ //
121
+ // clusters: {
122
+ // onOff: {
123
+ // onOff: false,
124
+ // },
125
+ // levelControl: {
126
+ // currentLevel: 127,
127
+ // minLevel: 1,
128
+ // maxLevel: 254,
129
+ // },
130
+ // colorControl: {
131
+ // colorMode: 2, // Color temperature mode
132
+ // colorTemperatureMireds: 250, // ~4000K
133
+ // colorTempPhysicalMinMireds: 147, // 6800K
134
+ // colorTempPhysicalMaxMireds: 454, // 2200K
135
+ // },
136
+ // },
137
+ //
138
+ // handlers: {
139
+ // onOff: {
140
+ // on: async () => {
141
+ // this.log.info('[Color Temp Light] Turned ON');
142
+ // },
143
+ // off: async () => {
144
+ // this.log.info('[Color Temp Light] Turned OFF');
145
+ // },
146
+ // },
147
+ // levelControl: {
148
+ // moveToLevel: async (args: any) => {
149
+ // this.log.info(`[Color Temp Light] Brightness changed to ${args.level}`);
150
+ // },
151
+ // },
152
+ // colorControl: {
153
+ // moveToColorTemperature: async (args: any) => {
154
+ // const kelvin = Math.round(1000000 / args.colorTemperatureMireds);
155
+ // this.log.info(`[Color Temp Light] Color temperature changed to ${args.colorTemperatureMireds} mireds (~${kelvin}K)`);
156
+ // },
157
+ // },
158
+ // },
159
+ // });
160
+ //
161
+ // // 4. Extended Color Light (RGB)
162
+ // this.api.registerMatterAccessory({
163
+ // uuid: 'matter-rgb-light',
164
+ // displayName: 'RGB Color Light',
165
+ // deviceType: this.api.matterDeviceTypes.ExtendedColorLight,
166
+ // serialNumber: 'LIGHT-004',
167
+ // manufacturer: 'Matter Examples',
168
+ // model: 'RGBLight v1',
169
+ //
170
+ // clusters: {
171
+ // onOff: {
172
+ // onOff: false,
173
+ // },
174
+ // levelControl: {
175
+ // currentLevel: 127,
176
+ // minLevel: 1,
177
+ // maxLevel: 254,
178
+ // },
179
+ // colorControl: {
180
+ // colorMode: 1, // Hue/Saturation mode
181
+ // currentHue: 0, // Red
182
+ // currentSaturation: 254, // Full saturation
183
+ // colorCapabilities: 0x0001, // Hue/Saturation support
184
+ // },
185
+ // },
186
+ //
187
+ // handlers: {
188
+ // onOff: {
189
+ // on: async () => {
190
+ // this.log.info('[RGB Light] Turned ON');
191
+ // },
192
+ // off: async () => {
193
+ // this.log.info('[RGB Light] Turned OFF');
194
+ // },
195
+ // },
196
+ // levelControl: {
197
+ // moveToLevel: async (args: any) => {
198
+ // this.log.info(`[RGB Light] Brightness changed to ${args.level}`);
199
+ // },
200
+ // },
201
+ // colorControl: {
202
+ // moveToHue: async (args: any) => {
203
+ // this.log.info(`[RGB Light] Hue changed to ${args.hue}`);
204
+ // },
205
+ // moveToSaturation: async (args: any) => {
206
+ // this.log.info(`[RGB Light] Saturation changed to ${args.saturation}`);
207
+ // },
208
+ // moveToHueAndSaturation: async (args: any) => {
209
+ // this.log.info(`[RGB Light] Color changed to H:${args.hue} S:${args.saturation}`);
210
+ // },
211
+ // },
212
+ // },
213
+ // });
214
+ }
215
+ /**
216
+ * Switches and Outlets
217
+ */
218
+ registerSwitchesAndOutlets() {
219
+ // 5. On/Off Switch
220
+ this.api.registerMatterAccessory({
221
+ uuid: 'matter-switch',
222
+ displayName: 'On/Off Switch',
223
+ deviceType: this.api.matterDeviceTypes.OnOffSwitch,
224
+ serialNumber: 'SWITCH-001',
225
+ manufacturer: 'Matter Examples',
226
+ model: 'Switch v1',
227
+ clusters: {
228
+ onOff: {
229
+ onOff: false,
230
+ },
231
+ },
232
+ handlers: {
233
+ onOff: {
234
+ on: async () => {
235
+ this.log.info('[Switch] Turned ON');
236
+ },
237
+ off: async () => {
238
+ this.log.info('[Switch] Turned OFF');
239
+ },
240
+ },
241
+ },
242
+ });
243
+ // 6. On/Off Outlet
244
+ this.api.registerMatterAccessory({
245
+ uuid: 'matter-outlet',
246
+ displayName: 'Smart Outlet',
247
+ deviceType: this.api.matterDeviceTypes.OnOffOutlet,
248
+ serialNumber: 'OUTLET-001',
249
+ manufacturer: 'Matter Examples',
250
+ model: 'Outlet v1',
251
+ clusters: {
252
+ onOff: {
253
+ onOff: false,
254
+ },
255
+ },
256
+ handlers: {
257
+ onOff: {
258
+ on: async () => {
259
+ this.log.info('[Outlet] Turned ON');
260
+ },
261
+ off: async () => {
262
+ this.log.info('[Outlet] Turned OFF');
263
+ },
264
+ },
265
+ },
266
+ });
267
+ // 7. Dimmable Outlet
268
+ this.api.registerMatterAccessory({
269
+ uuid: 'matter-dimmable-outlet',
270
+ displayName: 'Dimmable Outlet',
271
+ deviceType: this.api.matterDeviceTypes.DimmableOutlet,
272
+ serialNumber: 'OUTLET-002',
273
+ manufacturer: 'Matter Examples',
274
+ model: 'DimmableOutlet v1',
275
+ clusters: {
276
+ onOff: {
277
+ onOff: false,
278
+ },
279
+ levelControl: {
280
+ currentLevel: 127,
281
+ minLevel: 1,
282
+ maxLevel: 254,
283
+ },
284
+ },
285
+ handlers: {
286
+ onOff: {
287
+ on: async () => {
288
+ this.log.info('[Dimmable Outlet] Turned ON');
289
+ },
290
+ off: async () => {
291
+ this.log.info('[Dimmable Outlet] Turned OFF');
292
+ },
293
+ },
294
+ levelControl: {
295
+ moveToLevel: async (args) => {
296
+ this.log.info(`[Dimmable Outlet] Level changed to ${args.level}`);
297
+ },
298
+ },
299
+ },
300
+ });
301
+ }
302
+ /**
303
+ * Sensors
304
+ */
305
+ registerSensors() {
306
+ // 8. Temperature Sensor
307
+ this.api.registerMatterAccessory({
308
+ uuid: 'matter-temp-sensor',
309
+ displayName: 'Temperature Sensor',
310
+ deviceType: this.api.matterDeviceTypes.TemperatureSensor,
311
+ serialNumber: 'TEMP-001',
312
+ manufacturer: 'Matter Examples',
313
+ model: 'TempSensor v1',
314
+ clusters: {
315
+ temperatureMeasurement: {
316
+ measuredValue: 2100, // 21.00°C (in hundredths of degree Celsius)
317
+ minMeasuredValue: -5000, // -50°C
318
+ maxMeasuredValue: 10000, // 100°C
319
+ },
320
+ },
321
+ });
322
+ // 9. Humidity Sensor
323
+ this.api.registerMatterAccessory({
324
+ uuid: 'matter-humidity-sensor',
325
+ displayName: 'Humidity Sensor',
326
+ deviceType: this.api.matterDeviceTypes.HumiditySensor,
327
+ serialNumber: 'HUM-001',
328
+ manufacturer: 'Matter Examples',
329
+ model: 'HumiditySensor v1',
330
+ clusters: {
331
+ relativeHumidityMeasurement: {
332
+ measuredValue: 5000, // 50% (in hundredths of percent)
333
+ minMeasuredValue: 0,
334
+ maxMeasuredValue: 10000, // 100%
335
+ },
336
+ },
337
+ });
338
+ // 10. Light Sensor
339
+ this.api.registerMatterAccessory({
340
+ uuid: 'matter-light-sensor',
341
+ displayName: 'Light Sensor',
342
+ deviceType: this.api.matterDeviceTypes.LightSensor,
343
+ serialNumber: 'LIGHT-SENSOR-001',
344
+ manufacturer: 'Matter Examples',
345
+ model: 'LightSensor v1',
346
+ clusters: {
347
+ illuminanceMeasurement: {
348
+ measuredValue: 1000, // Lux value
349
+ minMeasuredValue: 1,
350
+ maxMeasuredValue: 65535,
351
+ },
352
+ },
353
+ });
354
+ // 11. Motion Sensor
355
+ this.api.registerMatterAccessory({
356
+ uuid: 'matter-motion-sensor',
357
+ displayName: 'Motion Sensor',
358
+ deviceType: this.api.matterDeviceTypes.MotionSensor,
359
+ serialNumber: 'MOTION-001',
360
+ manufacturer: 'Matter Examples',
361
+ model: 'MotionSensor v1',
362
+ clusters: {
363
+ occupancySensing: {
364
+ occupancy: 0, // 0 = not occupied, 1 = occupied
365
+ occupancySensorType: 0, // PIR sensor
366
+ },
367
+ },
368
+ });
369
+ // 12. Contact Sensor
370
+ this.api.registerMatterAccessory({
371
+ uuid: 'matter-contact-sensor',
372
+ displayName: 'Contact Sensor',
373
+ deviceType: this.api.matterDeviceTypes.ContactSensor,
374
+ serialNumber: 'CONTACT-001',
375
+ manufacturer: 'Matter Examples',
376
+ model: 'ContactSensor v1',
377
+ clusters: {
378
+ booleanState: {
379
+ stateValue: false, // false = contact, true = no contact
380
+ },
381
+ },
382
+ });
383
+ // 13. Leak Sensor
384
+ this.api.registerMatterAccessory({
385
+ uuid: 'matter-leak-sensor',
386
+ displayName: 'Water Leak Sensor',
387
+ deviceType: this.api.matterDeviceTypes.LeakSensor,
388
+ serialNumber: 'LEAK-001',
389
+ manufacturer: 'Matter Examples',
390
+ model: 'LeakSensor v1',
391
+ clusters: {
392
+ booleanState: {
393
+ stateValue: false, // false = no leak, true = leak detected
394
+ },
395
+ },
396
+ });
397
+ // 14. Smoke Sensor
398
+ this.api.registerMatterAccessory({
399
+ uuid: 'matter-smoke-sensor',
400
+ displayName: 'Smoke/CO Alarm',
401
+ deviceType: this.api.matterDeviceTypes.SmokeSensor,
402
+ serialNumber: 'SMOKE-001',
403
+ manufacturer: 'Matter Examples',
404
+ model: 'SmokeCOAlarm v1',
405
+ clusters: {
406
+ smokeCoAlarm: {
407
+ smokeState: 0, // 0 = normal, 1 = warning, 2 = critical
408
+ coState: 0, // 0 = normal, 1 = warning, 2 = critical
409
+ batteryAlert: 0, // 0 = normal, 1 = warning, 2 = critical
410
+ },
411
+ },
412
+ });
413
+ }
414
+ /**
415
+ * HVAC Devices
416
+ */
417
+ registerHVAC() {
418
+ // 15. Thermostat
419
+ this.api.registerMatterAccessory({
420
+ uuid: 'matter-thermostat',
421
+ displayName: 'Thermostat',
422
+ deviceType: this.api.matterDeviceTypes.Thermostat,
423
+ serialNumber: 'THERMO-001',
424
+ manufacturer: 'Matter Examples',
425
+ model: 'Thermostat v1',
426
+ clusters: {
427
+ thermostat: {
428
+ localTemperature: 2100, // 21°C (in hundredths)
429
+ occupiedCoolingSetpoint: 2400, // 24°C
430
+ occupiedHeatingSetpoint: 2000, // 20°C
431
+ systemMode: 1, // 0 = Off, 1 = Auto, 3 = Cool, 4 = Heat
432
+ controlSequenceOfOperation: 4, // Cooling and heating
433
+ },
434
+ },
435
+ handlers: {
436
+ thermostat: {
437
+ setpointRaiseLower: async (args) => {
438
+ this.log.info(`[Thermostat] Setpoint changed by ${args.amount / 10}°C`);
439
+ },
440
+ },
441
+ },
442
+ });
443
+ // 16. Fan
444
+ this.api.registerMatterAccessory({
445
+ uuid: 'matter-fan',
446
+ displayName: 'Fan',
447
+ deviceType: this.api.matterDeviceTypes.Fan,
448
+ serialNumber: 'FAN-001',
449
+ manufacturer: 'Matter Examples',
450
+ model: 'Fan v1',
451
+ clusters: {
452
+ fanControl: {
453
+ fanMode: 0, // 0 = Off, 1 = Low, 2 = Medium, 3 = High, 4 = On, 5 = Auto, 6 = Smart
454
+ percentCurrent: 0,
455
+ percentSetting: 0,
456
+ },
457
+ },
458
+ handlers: {
459
+ fanControl: {
460
+ step: async (args) => {
461
+ this.log.info(`[Fan] Step ${args.direction === 0 ? 'increase' : 'decrease'}`);
462
+ },
463
+ },
464
+ },
465
+ });
466
+ }
467
+ /**
468
+ * Security Devices
469
+ */
470
+ registerSecurity() {
471
+ // 17. Door Lock
472
+ this.api.registerMatterAccessory({
473
+ uuid: 'matter-door-lock',
474
+ displayName: 'Smart Door Lock',
475
+ deviceType: this.api.matterDeviceTypes.DoorLock,
476
+ serialNumber: 'LOCK-001',
477
+ manufacturer: 'Matter Examples',
478
+ model: 'DoorLock v1',
479
+ clusters: {
480
+ doorLock: {
481
+ lockState: 1, // 0 = not fully locked, 1 = locked, 2 = unlocked
482
+ lockType: 0, // 0 = dead bolt
483
+ actuatorEnabled: true,
484
+ },
485
+ },
486
+ handlers: {
487
+ doorLock: {
488
+ lockDoor: async () => {
489
+ this.log.info('[Door Lock] Locked');
490
+ },
491
+ unlockDoor: async () => {
492
+ this.log.info('[Door Lock] Unlocked');
493
+ },
494
+ },
495
+ },
496
+ });
497
+ }
498
+ /**
499
+ * Other Devices
500
+ */
501
+ registerOtherDevices() {
502
+ // 18. Window Covering
503
+ this.api.registerMatterAccessory({
504
+ uuid: 'matter-window-covering',
505
+ displayName: 'Window Blinds',
506
+ deviceType: this.api.matterDeviceTypes.WindowCovering,
507
+ serialNumber: 'BLIND-001',
508
+ manufacturer: 'Matter Examples',
509
+ model: 'WindowCovering v1',
510
+ clusters: {
511
+ windowCovering: {
512
+ currentPositionLiftPercent100ths: 0, // 0 = fully open, 10000 = fully closed
513
+ targetPositionLiftPercent100ths: 0,
514
+ type: 0, // 0 = rollershade
515
+ configStatus: 0x03, // operational and online
516
+ },
517
+ },
518
+ handlers: {
519
+ windowCovering: {
520
+ upOrOpen: async () => {
521
+ this.log.info('[Window Covering] Opening');
522
+ },
523
+ downOrClose: async () => {
524
+ this.log.info('[Window Covering] Closing');
525
+ },
526
+ stopMotion: async () => {
527
+ this.log.info('[Window Covering] Stopped');
528
+ },
529
+ goToLiftPercentage: async (args) => {
530
+ this.log.info(`[Window Covering] Moving to ${args.liftPercent100thsValue / 100}%`);
531
+ },
532
+ },
533
+ },
534
+ });
535
+ // 19. Generic Switch
536
+ this.api.registerMatterAccessory({
537
+ uuid: 'matter-generic-switch',
538
+ displayName: 'Generic Switch',
539
+ deviceType: this.api.matterDeviceTypes.GenericSwitch,
540
+ serialNumber: 'GSWITCH-001',
541
+ manufacturer: 'Matter Examples',
542
+ model: 'GenericSwitch v1',
543
+ clusters: {
544
+ switch: {
545
+ numberOfPositions: 2,
546
+ currentPosition: 0,
547
+ },
548
+ },
549
+ });
550
+ // 20. Pump
551
+ this.api.registerMatterAccessory({
552
+ uuid: 'matter-pump',
553
+ displayName: 'Water Pump',
554
+ deviceType: this.api.matterDeviceTypes.Pump,
555
+ serialNumber: 'PUMP-001',
556
+ manufacturer: 'Matter Examples',
557
+ model: 'Pump v1',
558
+ clusters: {
559
+ onOff: {
560
+ onOff: false,
561
+ },
562
+ pumpConfigurationAndControl: {
563
+ effectiveOperationMode: 0, // 0 = normal
564
+ effectiveControlMode: 0, // 0 = constant speed
565
+ },
566
+ },
567
+ handlers: {
568
+ onOff: {
569
+ on: async () => {
570
+ this.log.info('[Pump] Turned ON');
571
+ },
572
+ off: async () => {
573
+ this.log.info('[Pump] Turned OFF');
574
+ },
575
+ },
576
+ },
577
+ });
578
+ // 21. Room Air Conditioner
579
+ this.api.registerMatterAccessory({
580
+ uuid: 'matter-air-conditioner',
581
+ displayName: 'Air Conditioner',
582
+ deviceType: this.api.matterDeviceTypes.RoomAirConditioner,
583
+ serialNumber: 'AC-001',
584
+ manufacturer: 'Matter Examples',
585
+ model: 'RoomAC v1',
586
+ clusters: {
587
+ onOff: {
588
+ onOff: false,
589
+ },
590
+ thermostat: {
591
+ localTemperature: 2500, // 25°C
592
+ occupiedCoolingSetpoint: 2200, // 22°C
593
+ systemMode: 3, // Cool mode
594
+ controlSequenceOfOperation: 2, // Cooling only
595
+ },
596
+ fanControl: {
597
+ fanMode: 5, // Auto
598
+ percentCurrent: 50,
599
+ percentSetting: 50,
600
+ },
601
+ },
602
+ handlers: {
603
+ onOff: {
604
+ on: async () => {
605
+ this.log.info('[Air Conditioner] Turned ON');
606
+ },
607
+ off: async () => {
608
+ this.log.info('[Air Conditioner] Turned OFF');
609
+ },
610
+ },
611
+ thermostat: {
612
+ setpointRaiseLower: async (args) => {
613
+ this.log.info(`[Air Conditioner] Temperature setpoint changed by ${args.amount / 10}°C`);
614
+ },
615
+ },
616
+ fanControl: {
617
+ step: async (args) => {
618
+ this.log.info(`[Air Conditioner] Fan step ${args.direction === 0 ? 'increase' : 'decrease'}`);
619
+ },
620
+ },
621
+ },
622
+ });
623
+ }
624
+ }
625
+ //# sourceMappingURL=platform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,yBAAyB;IAKlB;IACA;IACA;IANlB,yEAAyE;IACzD,WAAW,GAAmC,IAAI,GAAG,EAAE,CAAC;IAExE,YACkB,GAAY,EACZ,MAAsB,EACtB,GAAQ;QAFR,QAAG,GAAH,GAAG,CAAS;QACZ,WAAM,GAAN,MAAM,CAAgB;QACtB,QAAG,GAAH,GAAG,CAAK;QAExB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iCAAiC,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEpE,uCAAuC;QACvC,I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Q,EAAE;gBACR,KAAK,EAAE;oBACL,KAAK,EAAE,KAAK;iBACb;gBACD,UAAU,EAAE;oBACV,gBAAgB,EAAE,IAAI,EAAE,OAAO;oBAC/B,uBAAuB,EAAE,IAAI,EAAE,OAAO;oBACtC,UAAU,EAAE,CAAC,EAAE,YAAY;oBAC3B,0BAA0B,EAAE,CAAC,EAAE,eAAe;iBAC/C;gBACD,UAAU,EAAE;oBACV,OAAO,EAAE,CAAC,EAAE,OAAO;oBACnB,cAAc,EAAE,EAAE;oBAClB,cAAc,EAAE,EAAE;iBACnB;aACF;YAED,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,EAAE,EAAE,KAAK,IAAI,EAAE;wBACb,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;oBAC/C,CAAC;oBACD,GAAG,EAAE,KAAK,IAAI,EAAE;wBACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;oBAChD,CAAC;iBACF;gBACD,UAAU,EAAE;oBACV,kBAAkB,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;wBACtC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,qDAAqD,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,CAAC;oBAC3F,CAAC;iBACF;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;wBACxB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,8BAA8B,IAAI,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;oBAChG,CAAC;iBACF;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This is the name of the platform that users will use to register the plugin in the Homebridge config.json
3
+ */
4
+ export declare const PLATFORM_NAME = "Matter";
5
+ /**
6
+ * This must match the name of your plugin as defined the package.json `name` property
7
+ */
8
+ export declare const PLUGIN_NAME = "@homebridge-plugins/homebridge-matter";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This is the name of the platform that users will use to register the plugin in the Homebridge config.json
3
+ */
4
+ export const PLATFORM_NAME = 'Matter';
5
+ /**
6
+ * This must match the name of your plugin as defined the package.json `name` property
7
+ */
8
+ export const PLUGIN_NAME = '@homebridge-plugins/homebridge-matter';
9
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,uCAAuC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@homebridge-plugins/homebridge-matter",
3
+ "displayName": "Homebridge Matter",
4
+ "type": "module",
5
+ "version": "0.0.1",
6
+ "description": "A short description about what your plugin does.",
7
+ "author": "Your Name",
8
+ "license": "Apache-2.0",
9
+ "homepage": "https://github.com/@homebridge-plugins/homebridge-matter#readme",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/@homebridge-plugins/homebridge-matter.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/@homebridge-plugins/homebridge-matter/issues"
16
+ },
17
+ "keywords": [
18
+ "homebridge-plugin"
19
+ ],
20
+ "main": "dist/index.js",
21
+ "engines": {
22
+ "node": "^20.18.0 || ^22.10.0 || ^24.0.0",
23
+ "homebridge": "^2.0.0-alpha.0"
24
+ },
25
+ "scripts": {
26
+ "build": "rimraf ./dist && tsc",
27
+ "lint": "eslint . --max-warnings=0",
28
+ "prepublishOnly": "npm run lint && npm run build",
29
+ "watch": "npm run build && npm link && nodemon"
30
+ },
31
+ "dependencies": {
32
+ "homebridge-lib": "^7.1.9"
33
+ },
34
+ "devDependencies": {
35
+ "@eslint/js": "^9.37.0",
36
+ "@types/node": "^24.7.0",
37
+ "eslint": "^9.37.0",
38
+ "homebridge": "2.0.0-alpha.43",
39
+ "nodemon": "^3.1.10",
40
+ "rimraf": "^6.0.1",
41
+ "ts-node": "^10.9.2",
42
+ "typescript": "^5.9.3",
43
+ "typescript-eslint": "^8.46.0"
44
+ }
45
+ }