matterbridge-mqtt 0.0.2 → 0.0.3
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.
- package/CHANGELOG.md +7 -5
- package/README.md +81 -2
- package/dist/module.js +154 -10
- package/dist/mqtt.js +145 -0
- package/matterbridge-mqtt-local.config.json +20 -0
- package/matterbridge-mqtt-local.schema.json +115 -0
- package/matterbridge-mqtt-private.config.json +20 -0
- package/matterbridge-mqtt-private.schema.json +115 -0
- package/matterbridge-mqtt.config.json +20 -0
- package/matterbridge-mqtt.schema.json +115 -0
- package/npm-shrinkwrap.json +550 -27
- package/package.json +20 -8
- package/dist/module.d.ts +0 -9
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Matterbridge mqtt plugin",
|
|
3
|
+
"description": "matterbridge-mqtt v. 1.0.0 by https://github.com/Luligu",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["host", "port", "topic"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"title": "Plugin Name",
|
|
9
|
+
"description": "Plugin name",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"readOnly": true,
|
|
12
|
+
"ui:widget": "hidden"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"title": "Plugin Type",
|
|
16
|
+
"description": "Plugin type",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"readOnly": true,
|
|
19
|
+
"ui:widget": "hidden"
|
|
20
|
+
},
|
|
21
|
+
"host": {
|
|
22
|
+
"title": "MQTT Host",
|
|
23
|
+
"description": "MQTT server host (IP address or hostname with mqtt:// or mqtts:// or ws:// or wss:// prefix) or mqtt+unix://<SOCKET_PATH> for Unix socket on Linux (e.g. mqtt+unix:///var/run/mosquitto/mqtt.sock). For secure connections, use the mqtts:// or wss:// prefix and ensure your certificates are configured. If you use a hostname, make sure that the hostname is resolvable by the system running matterbridge.",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"default": "mqtt://localhost"
|
|
26
|
+
},
|
|
27
|
+
"port": {
|
|
28
|
+
"title": "MQTT Port",
|
|
29
|
+
"description": "MQTT server port (i.e. 1883 for mqtt://, 8883 for mqtts://, 9001 for ws:// or 9443 for wss://). For Unix socket, this value is ignored.",
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 1883
|
|
32
|
+
},
|
|
33
|
+
"protocolVersion": {
|
|
34
|
+
"title": "MQTT Protocol Version",
|
|
35
|
+
"description": "MQTT server protocol version 3, 4 or 5 (default 5). Version 5 is recommended for most modern MQTT brokers.",
|
|
36
|
+
"type": "number",
|
|
37
|
+
"default": 5
|
|
38
|
+
},
|
|
39
|
+
"username": {
|
|
40
|
+
"title": "MQTT Username",
|
|
41
|
+
"description": "MQTT server authentication user. Only required if the MQTT server requires authentication (i.e allow_anonymous false)",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"password": {
|
|
45
|
+
"title": "MQTT Password",
|
|
46
|
+
"description": "MQTT server authentication password. Only required if the MQTT server requires authentication (i.e allow_anonymous false)",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"ui:widget": "password"
|
|
49
|
+
},
|
|
50
|
+
"clientId": {
|
|
51
|
+
"title": "MQTT Client ID",
|
|
52
|
+
"description": "MQTT clientId identifier. If not set, a random clientId will be generated.",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"ca": {
|
|
56
|
+
"title": "MQTT CA Certificate",
|
|
57
|
+
"description": "Absolute path to the SSL/TLS CA certificate used to sign both the server and client certificates (PEM format). Required for secure connections (i.e. mqtts://) with self-signed certificates.",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"rejectUnauthorized": {
|
|
61
|
+
"title": "MQTT Reject Unauthorized",
|
|
62
|
+
"description": "Reject unauthorized MQTT server. Only used for secure connections (i.e. mqtts://).",
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"default": true
|
|
65
|
+
},
|
|
66
|
+
"cert": {
|
|
67
|
+
"title": "MQTT Client Certificate",
|
|
68
|
+
"description": "Absolute path to the SSL/TLS MQTT client certificate (PEM format). Only required if the MQTT server requires a client certificate for authentication (i.e. require_certificate true).",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"key": {
|
|
72
|
+
"title": "MQTT Client Private Key",
|
|
73
|
+
"description": "Absolute path to the SSL/TLS MQTT client private key (PEM format). Only required if the MQTT server requires a client certificate for authentication (i.e. require_certificate true).",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"topic": {
|
|
77
|
+
"title": "MQTT Topic",
|
|
78
|
+
"description": "MQTT base topic for MQTT messages.",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"default": "matterbridge"
|
|
81
|
+
},
|
|
82
|
+
"whiteList": {
|
|
83
|
+
"title": "White List",
|
|
84
|
+
"description": "Only the devices in the list will be exposed. If the list is empty, all the devices will be exposed.",
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"uniqueItems": true,
|
|
90
|
+
"selectFrom": "name"
|
|
91
|
+
},
|
|
92
|
+
"blackList": {
|
|
93
|
+
"title": "Black List",
|
|
94
|
+
"description": "The devices in the list will not be exposed. If the list is empty, no devices will be excluded.",
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"uniqueItems": true,
|
|
100
|
+
"selectFrom": "name"
|
|
101
|
+
},
|
|
102
|
+
"debug": {
|
|
103
|
+
"title": "Enable Debug",
|
|
104
|
+
"description": "Enable the debug for the plugin (development only)",
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": false
|
|
107
|
+
},
|
|
108
|
+
"unregisterOnShutdown": {
|
|
109
|
+
"title": "Unregister On Shutdown",
|
|
110
|
+
"description": "Unregister all devices on shutdown (development only)",
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "matterbridge-mqtt",
|
|
3
|
+
"type": "DynamicPlatform",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"host": "mqtt://localhost",
|
|
6
|
+
"port": 1883,
|
|
7
|
+
"protocolVersion": 5,
|
|
8
|
+
"username": "",
|
|
9
|
+
"password": "",
|
|
10
|
+
"clientId": "",
|
|
11
|
+
"ca": "",
|
|
12
|
+
"rejectUnauthorized": true,
|
|
13
|
+
"cert": "",
|
|
14
|
+
"key": "",
|
|
15
|
+
"topic": "matterbridge",
|
|
16
|
+
"whiteList": [],
|
|
17
|
+
"blackList": [],
|
|
18
|
+
"debug": false,
|
|
19
|
+
"unregisterOnShutdown": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Matterbridge mqtt plugin",
|
|
3
|
+
"description": "matterbridge-mqtt v. 1.0.0 by https://github.com/Luligu",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["host", "port", "topic"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"title": "Plugin Name",
|
|
9
|
+
"description": "Plugin name",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"readOnly": true,
|
|
12
|
+
"ui:widget": "hidden"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"title": "Plugin Type",
|
|
16
|
+
"description": "Plugin type",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"readOnly": true,
|
|
19
|
+
"ui:widget": "hidden"
|
|
20
|
+
},
|
|
21
|
+
"host": {
|
|
22
|
+
"title": "MQTT Host",
|
|
23
|
+
"description": "MQTT server host (IP address or hostname with mqtt:// or mqtts:// or ws:// or wss:// prefix) or mqtt+unix://<SOCKET_PATH> for Unix socket on Linux (e.g. mqtt+unix:///var/run/mosquitto/mqtt.sock). For secure connections, use the mqtts:// or wss:// prefix and ensure your certificates are configured. If you use a hostname, make sure that the hostname is resolvable by the system running matterbridge.",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"default": "mqtt://localhost"
|
|
26
|
+
},
|
|
27
|
+
"port": {
|
|
28
|
+
"title": "MQTT Port",
|
|
29
|
+
"description": "MQTT server port (i.e. 1883 for mqtt://, 8883 for mqtts://, 9001 for ws:// or 9443 for wss://). For Unix socket, this value is ignored.",
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 1883
|
|
32
|
+
},
|
|
33
|
+
"protocolVersion": {
|
|
34
|
+
"title": "MQTT Protocol Version",
|
|
35
|
+
"description": "MQTT server protocol version 3, 4 or 5 (default 5). Version 5 is recommended for most modern MQTT brokers.",
|
|
36
|
+
"type": "number",
|
|
37
|
+
"default": 5
|
|
38
|
+
},
|
|
39
|
+
"username": {
|
|
40
|
+
"title": "MQTT Username",
|
|
41
|
+
"description": "MQTT server authentication user. Only required if the MQTT server requires authentication (i.e allow_anonymous false)",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"password": {
|
|
45
|
+
"title": "MQTT Password",
|
|
46
|
+
"description": "MQTT server authentication password. Only required if the MQTT server requires authentication (i.e allow_anonymous false)",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"ui:widget": "password"
|
|
49
|
+
},
|
|
50
|
+
"clientId": {
|
|
51
|
+
"title": "MQTT Client ID",
|
|
52
|
+
"description": "MQTT clientId identifier. If not set, a random clientId will be generated.",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"ca": {
|
|
56
|
+
"title": "MQTT CA Certificate",
|
|
57
|
+
"description": "Absolute path to the SSL/TLS CA certificate used to sign both the server and client certificates (PEM format). Required for secure connections (i.e. mqtts://) with self-signed certificates.",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"rejectUnauthorized": {
|
|
61
|
+
"title": "MQTT Reject Unauthorized",
|
|
62
|
+
"description": "Reject unauthorized MQTT server. Only used for secure connections (i.e. mqtts://).",
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"default": true
|
|
65
|
+
},
|
|
66
|
+
"cert": {
|
|
67
|
+
"title": "MQTT Client Certificate",
|
|
68
|
+
"description": "Absolute path to the SSL/TLS MQTT client certificate (PEM format). Only required if the MQTT server requires a client certificate for authentication (i.e. require_certificate true).",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"key": {
|
|
72
|
+
"title": "MQTT Client Private Key",
|
|
73
|
+
"description": "Absolute path to the SSL/TLS MQTT client private key (PEM format). Only required if the MQTT server requires a client certificate for authentication (i.e. require_certificate true).",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"topic": {
|
|
77
|
+
"title": "MQTT Topic",
|
|
78
|
+
"description": "MQTT base topic for MQTT messages.",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"default": "matterbridge"
|
|
81
|
+
},
|
|
82
|
+
"whiteList": {
|
|
83
|
+
"title": "White List",
|
|
84
|
+
"description": "Only the devices in the list will be exposed. If the list is empty, all the devices will be exposed.",
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"uniqueItems": true,
|
|
90
|
+
"selectFrom": "name"
|
|
91
|
+
},
|
|
92
|
+
"blackList": {
|
|
93
|
+
"title": "Black List",
|
|
94
|
+
"description": "The devices in the list will not be exposed. If the list is empty, no devices will be excluded.",
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"uniqueItems": true,
|
|
100
|
+
"selectFrom": "name"
|
|
101
|
+
},
|
|
102
|
+
"debug": {
|
|
103
|
+
"title": "Enable Debug",
|
|
104
|
+
"description": "Enable the debug for the plugin (development only)",
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": false
|
|
107
|
+
},
|
|
108
|
+
"unregisterOnShutdown": {
|
|
109
|
+
"title": "Unregister On Shutdown",
|
|
110
|
+
"description": "Unregister all devices on shutdown (development only)",
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|