@matterbridge/core 3.7.0-dev-20260318-c9f4120 → 3.7.0-dev-20260318-1de8eae

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.
@@ -41,6 +41,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
41
41
  const device = this.endpoint.stateOf(MatterbridgeServer);
42
42
  device.log.info(`Play (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
43
43
  await device.commandHandler.executeHandler('MediaPlayback.play', {
44
+ command: 'play',
44
45
  request: {},
45
46
  cluster: MediaPlaybackServer.id,
46
47
  attributes: this.state,
@@ -54,6 +55,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
54
55
  const device = this.endpoint.stateOf(MatterbridgeServer);
55
56
  device.log.info(`Pause (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
56
57
  await device.commandHandler.executeHandler('MediaPlayback.pause', {
58
+ command: 'pause',
57
59
  request: {},
58
60
  cluster: MediaPlaybackServer.id,
59
61
  attributes: this.state,
@@ -67,6 +69,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
67
69
  const device = this.endpoint.stateOf(MatterbridgeServer);
68
70
  device.log.info(`Stop (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
69
71
  await device.commandHandler.executeHandler('MediaPlayback.stop', {
72
+ command: 'stop',
70
73
  request: {},
71
74
  cluster: MediaPlaybackServer.id,
72
75
  attributes: this.state,
@@ -80,6 +83,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
80
83
  const device = this.endpoint.stateOf(MatterbridgeServer);
81
84
  device.log.info(`Previous (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
82
85
  await device.commandHandler.executeHandler('MediaPlayback.previous', {
86
+ command: 'previous',
83
87
  request: {},
84
88
  cluster: MediaPlaybackServer.id,
85
89
  attributes: this.state,
@@ -91,6 +95,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
91
95
  const device = this.endpoint.stateOf(MatterbridgeServer);
92
96
  device.log.info(`Next (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
93
97
  await device.commandHandler.executeHandler('MediaPlayback.next', {
98
+ command: 'next',
94
99
  request: {},
95
100
  cluster: MediaPlaybackServer.id,
96
101
  attributes: this.state,
@@ -102,6 +107,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
102
107
  const device = this.endpoint.stateOf(MatterbridgeServer);
103
108
  device.log.info(`SkipForward (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
104
109
  await device.commandHandler.executeHandler('MediaPlayback.skipForward', {
110
+ command: 'skipForward',
105
111
  request,
106
112
  cluster: MediaPlaybackServer.id,
107
113
  attributes: this.state,
@@ -113,6 +119,7 @@ export class MatterbridgeMediaPlaybackServer extends MediaPlaybackServer {
113
119
  const device = this.endpoint.stateOf(MatterbridgeServer);
114
120
  device.log.info(`SkipBackward (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
115
121
  await device.commandHandler.executeHandler('MediaPlayback.skipBackward', {
122
+ command: 'skipBackward',
116
123
  request,
117
124
  cluster: MediaPlaybackServer.id,
118
125
  attributes: this.state,
@@ -130,6 +137,7 @@ export class MatterbridgeKeypadInputServer extends KeypadInputServer {
130
137
  const device = this.endpoint.stateOf(MatterbridgeServer);
131
138
  device.log.info(`SendKey keyCode ${request.keyCode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
132
139
  await device.commandHandler.executeHandler('KeypadInput.sendKey', {
140
+ command: 'sendKey',
133
141
  request,
134
142
  cluster: KeypadInputServer.id,
135
143
  attributes: this.state,
@@ -16,6 +16,7 @@ export class ClosureControlServer extends ClosureControlBehavior.with(ClosureCon
16
16
  const device = this.endpoint.stateOf(MatterbridgeServer);
17
17
  device.log.info(`MoveTo (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
18
18
  await device.commandHandler.executeHandler('ClosureControl.moveTo', {
19
+ command: 'moveTo',
19
20
  request,
20
21
  cluster: ClosureControlServer.id,
21
22
  attributes: this.state,
@@ -35,6 +36,7 @@ export class ClosureControlServer extends ClosureControlBehavior.with(ClosureCon
35
36
  const device = this.endpoint.stateOf(MatterbridgeServer);
36
37
  device.log.info(`Stop (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
37
38
  await device.commandHandler.executeHandler('ClosureControl.stop', {
39
+ command: 'stop',
38
40
  request: {},
39
41
  cluster: ClosureControlServer.id,
40
42
  attributes: this.state,
@@ -16,6 +16,7 @@ export class ClosureDimensionServer extends ClosureDimensionBehavior.with(Closur
16
16
  const device = this.endpoint.stateOf(MatterbridgeServer);
17
17
  device.log.info(`SetTarget (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
18
18
  await device.commandHandler.executeHandler('ClosureDimension.setTarget', {
19
+ command: 'setTarget',
19
20
  request,
20
21
  cluster: ClosureDimensionServer.id,
21
22
  attributes: this.state,
@@ -34,6 +35,7 @@ export class ClosureDimensionServer extends ClosureDimensionBehavior.with(Closur
34
35
  const device = this.endpoint.stateOf(MatterbridgeServer);
35
36
  device.log.info(`Step (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
36
37
  await device.commandHandler.executeHandler('ClosureDimension.step', {
38
+ command: 'step',
37
39
  request,
38
40
  cluster: ClosureDimensionServer.id,
39
41
  attributes: this.state,
@@ -59,6 +59,7 @@ export class MatterbridgeDishwasherModeServer extends DishwasherModeServer {
59
59
  const device = this.endpoint.stateOf(MatterbridgeServer);
60
60
  device.log.info(`ChangeToMode (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
61
61
  await device.commandHandler.executeHandler('DishwasherMode.changeToMode', {
62
+ command: 'changeToMode',
62
63
  request,
63
64
  cluster: DishwasherModeServer.id,
64
65
  attributes: this.state,
@@ -61,6 +61,7 @@ export class MatterbridgeEnergyEvseServer extends EnergyEvseServer.with(EnergyEv
61
61
  const device = this.endpoint.stateOf(MatterbridgeServer);
62
62
  device.log.info(`Disable charging (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
63
63
  await device.commandHandler.executeHandler('EnergyEvse.disable', {
64
+ command: 'disable',
64
65
  request: {},
65
66
  cluster: EnergyEvseServer.id,
66
67
  attributes: this.state,
@@ -76,6 +77,7 @@ export class MatterbridgeEnergyEvseServer extends EnergyEvseServer.with(EnergyEv
76
77
  const device = this.endpoint.stateOf(MatterbridgeServer);
77
78
  device.log.info(`EnableCharging (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
78
79
  await device.commandHandler.executeHandler('EnergyEvse.enableCharging', {
80
+ command: 'enableCharging',
79
81
  request,
80
82
  cluster: EnergyEvseServer.id,
81
83
  attributes: this.state,
@@ -111,6 +113,7 @@ export class MatterbridgeEnergyEvseModeServer extends EnergyEvseModeServer {
111
113
  const device = this.endpoint.stateOf(MatterbridgeServer);
112
114
  device.log.info(`Changing mode to ${request.newMode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
113
115
  await device.commandHandler.executeHandler('EnergyEvseMode.changeToMode', {
116
+ command: 'changeToMode',
114
117
  request,
115
118
  cluster: EnergyEvseModeServer.id,
116
119
  attributes: this.state,
@@ -67,6 +67,7 @@ export class MatterbridgeLaundryWasherModeServer extends LaundryWasherModeServer
67
67
  const device = this.endpoint.stateOf(MatterbridgeServer);
68
68
  device.log.info(`ChangeToMode (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
69
69
  await device.commandHandler.executeHandler('LaundryWasherMode.changeToMode', {
70
+ command: 'changeToMode',
70
71
  request,
71
72
  cluster: LaundryWasherModeServer.id,
72
73
  attributes: this.state,
@@ -51,6 +51,7 @@ export class MatterbridgeMicrowaveOvenControlServer extends MicrowaveOvenControl
51
51
  const device = this.endpoint.stateOf(MatterbridgeServer);
52
52
  device.log.info(`MatterbridgeMicrowaveOvenControlServer: setCookingParameters (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
53
53
  await device.commandHandler.executeHandler('MicrowaveOvenControl.setCookingParameters', {
54
+ command: 'setCookingParameters',
54
55
  request,
55
56
  cluster: MicrowaveOvenControlServer.id,
56
57
  attributes: this.state,
@@ -91,6 +92,7 @@ export class MatterbridgeMicrowaveOvenControlServer extends MicrowaveOvenControl
91
92
  const device = this.endpoint.stateOf(MatterbridgeServer);
92
93
  device.log.info(`MatterbridgeMicrowaveOvenControlServer: addMoreTime (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
93
94
  await device.commandHandler.executeHandler('MicrowaveOvenControl.addMoreTime', {
95
+ command: 'addMoreTime',
94
96
  request,
95
97
  cluster: MicrowaveOvenControlServer.id,
96
98
  attributes: this.state,
@@ -101,6 +101,7 @@ export class MatterbridgeRvcRunModeServer extends RvcRunModeServer {
101
101
  const device = this.endpoint.stateOf(MatterbridgeServer);
102
102
  device.log.info(`Changing mode to ${request.newMode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
103
103
  await device.commandHandler.executeHandler('RvcRunMode.changeToMode', {
104
+ command: 'changeToMode',
104
105
  request,
105
106
  cluster: RvcRunModeServer.id,
106
107
  attributes: this.state,
@@ -132,6 +133,7 @@ export class MatterbridgeRvcCleanModeServer extends RvcCleanModeServer {
132
133
  const device = this.endpoint.stateOf(MatterbridgeServer);
133
134
  device.log.info(`Changing mode to ${request.newMode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
134
135
  await device.commandHandler.executeHandler('RvcCleanMode.changeToMode', {
136
+ command: 'changeToMode',
135
137
  request,
136
138
  cluster: RvcCleanModeServer.id,
137
139
  attributes: this.state,
@@ -152,6 +154,7 @@ export class MatterbridgeRvcOperationalStateServer extends RvcOperationalStateSe
152
154
  const device = this.endpoint.stateOf(MatterbridgeServer);
153
155
  device.log.info(`Pause (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
154
156
  await device.commandHandler.executeHandler('RvcOperationalState.pause', {
157
+ command: 'pause',
155
158
  request: {},
156
159
  cluster: RvcOperationalStateServer.id,
157
160
  attributes: this.state,
@@ -169,6 +172,7 @@ export class MatterbridgeRvcOperationalStateServer extends RvcOperationalStateSe
169
172
  const device = this.endpoint.stateOf(MatterbridgeServer);
170
173
  device.log.info(`Resume (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
171
174
  await device.commandHandler.executeHandler('RvcOperationalState.resume', {
175
+ command: 'resume',
172
176
  request: {},
173
177
  cluster: RvcOperationalStateServer.id,
174
178
  attributes: this.state,
@@ -186,6 +190,7 @@ export class MatterbridgeRvcOperationalStateServer extends RvcOperationalStateSe
186
190
  const device = this.endpoint.stateOf(MatterbridgeServer);
187
191
  device.log.info(`GoHome (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
188
192
  await device.commandHandler.executeHandler('RvcOperationalState.goHome', {
193
+ command: 'goHome',
189
194
  request: {},
190
195
  cluster: RvcOperationalStateServer.id,
191
196
  attributes: this.state,
@@ -26,6 +26,7 @@ export class MatterbridgeLevelTemperatureControlServer extends TemperatureContro
26
26
  const device = this.endpoint.stateOf(MatterbridgeServer);
27
27
  device.log.info(`SetTemperature (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
28
28
  await device.commandHandler.executeHandler('TemperatureControl.setTemperature', {
29
+ command: 'setTemperature',
29
30
  request,
30
31
  cluster: TemperatureControlServer.id,
31
32
  attributes: this.state,
@@ -49,6 +50,7 @@ export class MatterbridgeNumberTemperatureControlServer extends TemperatureContr
49
50
  const device = this.endpoint.stateOf(MatterbridgeServer);
50
51
  device.log.info(`SetTemperature (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
51
52
  await device.commandHandler.executeHandler('TemperatureControl.setTemperature', {
53
+ command: 'setTemperature',
52
54
  request,
53
55
  cluster: TemperatureControlServer.id,
54
56
  attributes: this.state,
@@ -63,6 +63,7 @@ export class MatterbridgeWaterHeaterManagementServer extends WaterHeaterManageme
63
63
  const device = this.endpoint.stateOf(MatterbridgeServer);
64
64
  device.log.info(`Boost (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
65
65
  await device.commandHandler.executeHandler('WaterHeaterManagement.boost', {
66
+ command: 'boost',
66
67
  request,
67
68
  cluster: WaterHeaterManagementServer.id,
68
69
  attributes: this.state,
@@ -75,6 +76,7 @@ export class MatterbridgeWaterHeaterManagementServer extends WaterHeaterManageme
75
76
  const device = this.endpoint.stateOf(MatterbridgeServer);
76
77
  device.log.info(`Cancel boost (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
77
78
  await device.commandHandler.executeHandler('WaterHeaterManagement.cancelBoost', {
79
+ command: 'cancelBoost',
78
80
  request: {},
79
81
  cluster: WaterHeaterManagementServer.id,
80
82
  attributes: this.state,
@@ -89,6 +91,7 @@ export class MatterbridgeWaterHeaterModeServer extends WaterHeaterModeServer {
89
91
  const device = this.endpoint.stateOf(MatterbridgeServer);
90
92
  device.log.info(`Changing mode to ${request.newMode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
91
93
  await device.commandHandler.executeHandler('WaterHeaterMode.changeToMode', {
94
+ command: 'changeToMode',
92
95
  request,
93
96
  cluster: WaterHeaterModeServer.id,
94
97
  attributes: this.state,
@@ -255,7 +255,7 @@ export async function createMatterbridgeEnvironment(name, createOnly = false) {
255
255
  matterbridge = await Matterbridge.loadInstance(false);
256
256
  expect(matterbridge).toBeDefined();
257
257
  expect(matterbridge).toBeInstanceOf(Matterbridge);
258
- matterbridge.matterbridgeVersion = '3.6.2';
258
+ matterbridge.matterbridgeVersion = '3.7.0';
259
259
  matterbridge.bridgeMode = 'bridge';
260
260
  matterbridge.rootDirectory = path.join(HOMEDIR);
261
261
  matterbridge.homeDirectory = path.join(HOMEDIR);
@@ -70,6 +70,7 @@ export class MatterbridgeIdentifyServer extends IdentifyServer {
70
70
  const device = this.endpoint.stateOf(MatterbridgeServer);
71
71
  device.log.info(`Identifying device for ${request.identifyTime} seconds (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
72
72
  await device.commandHandler.executeHandler('Identify.identify', {
73
+ command: 'identify',
73
74
  request,
74
75
  cluster: IdentifyServer.id,
75
76
  attributes: this.state,
@@ -82,6 +83,7 @@ export class MatterbridgeIdentifyServer extends IdentifyServer {
82
83
  const device = this.endpoint.stateOf(MatterbridgeServer);
83
84
  device.log.info(`Triggering effect ${request.effectIdentifier} variant ${request.effectVariant} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
84
85
  await device.commandHandler.executeHandler('Identify.triggerEffect', {
86
+ command: 'triggerEffect',
85
87
  request,
86
88
  cluster: IdentifyServer.id,
87
89
  attributes: this.state,
@@ -96,6 +98,7 @@ export class MatterbridgeOnOffServer extends OnOffServer {
96
98
  const device = this.endpoint.stateOf(MatterbridgeServer);
97
99
  device.log.info(`Switching device on (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
98
100
  await device.commandHandler.executeHandler('OnOff.on', {
101
+ command: 'on',
99
102
  request: {},
100
103
  cluster: OnOffServer.id,
101
104
  attributes: this.state,
@@ -108,6 +111,7 @@ export class MatterbridgeOnOffServer extends OnOffServer {
108
111
  const device = this.endpoint.stateOf(MatterbridgeServer);
109
112
  device.log.info(`Switching device off (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
110
113
  await device.commandHandler.executeHandler('OnOff.off', {
114
+ command: 'off',
111
115
  request: {},
112
116
  cluster: OnOffServer.id,
113
117
  attributes: this.state,
@@ -120,6 +124,7 @@ export class MatterbridgeOnOffServer extends OnOffServer {
120
124
  const device = this.endpoint.stateOf(MatterbridgeServer);
121
125
  device.log.info(`Toggle device on/off (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
122
126
  await device.commandHandler.executeHandler('OnOff.toggle', {
127
+ command: 'toggle',
123
128
  request: {},
124
129
  cluster: OnOffServer.id,
125
130
  attributes: this.state,
@@ -134,6 +139,7 @@ export class MatterbridgeLevelControlServer extends LevelControlServer {
134
139
  const device = this.endpoint.stateOf(MatterbridgeServer);
135
140
  device.log.info(`Setting level to ${request.level} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
136
141
  await device.commandHandler.executeHandler('LevelControl.moveToLevel', {
142
+ command: 'moveToLevel',
137
143
  request,
138
144
  cluster: LevelControlServer.id,
139
145
  attributes: this.state,
@@ -146,6 +152,7 @@ export class MatterbridgeLevelControlServer extends LevelControlServer {
146
152
  const device = this.endpoint.stateOf(MatterbridgeServer);
147
153
  device.log.info(`Setting level to ${request.level} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
148
154
  await device.commandHandler.executeHandler('LevelControl.moveToLevelWithOnOff', {
155
+ command: 'moveToLevelWithOnOff',
149
156
  request,
150
157
  cluster: LevelControlServer.id,
151
158
  attributes: this.state,
@@ -160,6 +167,7 @@ export class MatterbridgeColorControlServer extends ColorControlServer.with(Colo
160
167
  const device = this.endpoint.stateOf(MatterbridgeServer);
161
168
  device.log.info(`Setting hue to ${request.hue} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
162
169
  await device.commandHandler.executeHandler('ColorControl.moveToHue', {
170
+ command: 'moveToHue',
163
171
  request,
164
172
  cluster: ColorControlServer.id,
165
173
  attributes: this.state,
@@ -172,6 +180,7 @@ export class MatterbridgeColorControlServer extends ColorControlServer.with(Colo
172
180
  const device = this.endpoint.stateOf(MatterbridgeServer);
173
181
  device.log.info(`Setting saturation to ${request.saturation} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
174
182
  await device.commandHandler.executeHandler('ColorControl.moveToSaturation', {
183
+ command: 'moveToSaturation',
175
184
  request,
176
185
  cluster: ColorControlServer.id,
177
186
  attributes: this.state,
@@ -184,6 +193,7 @@ export class MatterbridgeColorControlServer extends ColorControlServer.with(Colo
184
193
  const device = this.endpoint.stateOf(MatterbridgeServer);
185
194
  device.log.info(`Setting hue to ${request.hue} and saturation to ${request.saturation} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
186
195
  await device.commandHandler.executeHandler('ColorControl.moveToHueAndSaturation', {
196
+ command: 'moveToHueAndSaturation',
187
197
  request,
188
198
  cluster: ColorControlServer.id,
189
199
  attributes: this.state,
@@ -196,6 +206,7 @@ export class MatterbridgeColorControlServer extends ColorControlServer.with(Colo
196
206
  const device = this.endpoint.stateOf(MatterbridgeServer);
197
207
  device.log.info(`Setting color to ${request.colorX}, ${request.colorY} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
198
208
  await device.commandHandler.executeHandler('ColorControl.moveToColor', {
209
+ command: 'moveToColor',
199
210
  request,
200
211
  cluster: ColorControlServer.id,
201
212
  attributes: this.state,
@@ -208,6 +219,7 @@ export class MatterbridgeColorControlServer extends ColorControlServer.with(Colo
208
219
  const device = this.endpoint.stateOf(MatterbridgeServer);
209
220
  device.log.info(`Setting color temperature to ${request.colorTemperatureMireds} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
210
221
  await device.commandHandler.executeHandler('ColorControl.moveToColorTemperature', {
222
+ command: 'moveToColorTemperature',
211
223
  request,
212
224
  cluster: ColorControlServer.id,
213
225
  attributes: this.state,
@@ -222,6 +234,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
222
234
  const device = this.endpoint.stateOf(MatterbridgeServer);
223
235
  device.log.info(`Setting hue to ${request.hue} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
224
236
  await device.commandHandler.executeHandler('ColorControl.moveToHue', {
237
+ command: 'moveToHue',
225
238
  request,
226
239
  cluster: ColorControlServer.id,
227
240
  attributes: this.state,
@@ -234,6 +247,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
234
247
  const device = this.endpoint.stateOf(MatterbridgeServer);
235
248
  device.log.info(`Setting enhanced hue to ${request.enhancedHue} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
236
249
  await device.commandHandler.executeHandler('ColorControl.enhancedMoveToHue', {
250
+ command: 'enhancedMoveToHue',
237
251
  request,
238
252
  cluster: ColorControlServer.id,
239
253
  attributes: this.state,
@@ -246,6 +260,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
246
260
  const device = this.endpoint.stateOf(MatterbridgeServer);
247
261
  device.log.info(`Setting saturation to ${request.saturation} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
248
262
  await device.commandHandler.executeHandler('ColorControl.moveToSaturation', {
263
+ command: 'moveToSaturation',
249
264
  request,
250
265
  cluster: ColorControlServer.id,
251
266
  attributes: this.state,
@@ -258,6 +273,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
258
273
  const device = this.endpoint.stateOf(MatterbridgeServer);
259
274
  device.log.info(`Setting hue to ${request.hue} and saturation to ${request.saturation} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
260
275
  await device.commandHandler.executeHandler('ColorControl.moveToHueAndSaturation', {
276
+ command: 'moveToHueAndSaturation',
261
277
  request,
262
278
  cluster: ColorControlServer.id,
263
279
  attributes: this.state,
@@ -270,6 +286,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
270
286
  const device = this.endpoint.stateOf(MatterbridgeServer);
271
287
  device.log.info(`Setting enhanced hue to ${request.enhancedHue} and saturation to ${request.saturation} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
272
288
  await device.commandHandler.executeHandler('ColorControl.enhancedMoveToHueAndSaturation', {
289
+ command: 'enhancedMoveToHueAndSaturation',
273
290
  request,
274
291
  cluster: ColorControlServer.id,
275
292
  attributes: this.state,
@@ -282,6 +299,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
282
299
  const device = this.endpoint.stateOf(MatterbridgeServer);
283
300
  device.log.info(`Setting color to ${request.colorX}, ${request.colorY} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
284
301
  await device.commandHandler.executeHandler('ColorControl.moveToColor', {
302
+ command: 'moveToColor',
285
303
  request,
286
304
  cluster: ColorControlServer.id,
287
305
  attributes: this.state,
@@ -294,6 +312,7 @@ export class MatterbridgeEnhancedColorControlServer extends ColorControlServer.w
294
312
  const device = this.endpoint.stateOf(MatterbridgeServer);
295
313
  device.log.info(`Setting color temperature to ${request.colorTemperatureMireds} with transitionTime ${request.transitionTime} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
296
314
  await device.commandHandler.executeHandler('ColorControl.moveToColorTemperature', {
315
+ command: 'moveToColorTemperature',
297
316
  request,
298
317
  cluster: ColorControlServer.id,
299
318
  attributes: this.state,
@@ -308,6 +327,7 @@ export class MatterbridgeLiftWindowCoveringServer extends WindowCoveringServer.w
308
327
  const device = this.endpoint.stateOf(MatterbridgeServer);
309
328
  device.log.info(`Opening cover (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
310
329
  await device.commandHandler.executeHandler('WindowCovering.upOrOpen', {
330
+ command: 'upOrOpen',
311
331
  request: {},
312
332
  cluster: WindowCoveringServer.id,
313
333
  attributes: this.state,
@@ -320,6 +340,7 @@ export class MatterbridgeLiftWindowCoveringServer extends WindowCoveringServer.w
320
340
  const device = this.endpoint.stateOf(MatterbridgeServer);
321
341
  device.log.info(`Closing cover (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
322
342
  await device.commandHandler.executeHandler('WindowCovering.downOrClose', {
343
+ command: 'downOrClose',
323
344
  request: {},
324
345
  cluster: WindowCoveringServer.id,
325
346
  attributes: this.state,
@@ -332,6 +353,7 @@ export class MatterbridgeLiftWindowCoveringServer extends WindowCoveringServer.w
332
353
  const device = this.endpoint.stateOf(MatterbridgeServer);
333
354
  device.log.info(`Stopping cover (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
334
355
  await device.commandHandler.executeHandler('WindowCovering.stopMotion', {
356
+ command: 'stopMotion',
335
357
  request: {},
336
358
  cluster: WindowCoveringServer.id,
337
359
  attributes: this.state,
@@ -344,6 +366,7 @@ export class MatterbridgeLiftWindowCoveringServer extends WindowCoveringServer.w
344
366
  const device = this.endpoint.stateOf(MatterbridgeServer);
345
367
  device.log.info(`Setting cover lift percentage to ${request.liftPercent100thsValue} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
346
368
  await device.commandHandler.executeHandler('WindowCovering.goToLiftPercentage', {
369
+ command: 'goToLiftPercentage',
347
370
  request,
348
371
  cluster: WindowCoveringServer.id,
349
372
  attributes: this.state,
@@ -360,6 +383,7 @@ export class MatterbridgeLiftTiltWindowCoveringServer extends WindowCoveringServ
360
383
  const device = this.endpoint.stateOf(MatterbridgeServer);
361
384
  device.log.info(`Opening cover (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
362
385
  await device.commandHandler.executeHandler('WindowCovering.upOrOpen', {
386
+ command: 'upOrOpen',
363
387
  request: {},
364
388
  cluster: WindowCoveringServer.id,
365
389
  attributes: this.state,
@@ -372,6 +396,7 @@ export class MatterbridgeLiftTiltWindowCoveringServer extends WindowCoveringServ
372
396
  const device = this.endpoint.stateOf(MatterbridgeServer);
373
397
  device.log.info(`Closing cover (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
374
398
  await device.commandHandler.executeHandler('WindowCovering.downOrClose', {
399
+ command: 'downOrClose',
375
400
  request: {},
376
401
  cluster: WindowCoveringServer.id,
377
402
  attributes: this.state,
@@ -384,6 +409,7 @@ export class MatterbridgeLiftTiltWindowCoveringServer extends WindowCoveringServ
384
409
  const device = this.endpoint.stateOf(MatterbridgeServer);
385
410
  device.log.info(`Stopping cover (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
386
411
  await device.commandHandler.executeHandler('WindowCovering.stopMotion', {
412
+ command: 'stopMotion',
387
413
  request: {},
388
414
  cluster: WindowCoveringServer.id,
389
415
  attributes: this.state,
@@ -396,6 +422,7 @@ export class MatterbridgeLiftTiltWindowCoveringServer extends WindowCoveringServ
396
422
  const device = this.endpoint.stateOf(MatterbridgeServer);
397
423
  device.log.info(`Setting cover lift percentage to ${request.liftPercent100thsValue} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
398
424
  await device.commandHandler.executeHandler('WindowCovering.goToLiftPercentage', {
425
+ command: 'goToLiftPercentage',
399
426
  request,
400
427
  cluster: WindowCoveringServer.id,
401
428
  attributes: this.state,
@@ -408,6 +435,7 @@ export class MatterbridgeLiftTiltWindowCoveringServer extends WindowCoveringServ
408
435
  const device = this.endpoint.stateOf(MatterbridgeServer);
409
436
  device.log.info(`Setting cover tilt percentage to ${request.tiltPercent100thsValue} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
410
437
  await device.commandHandler.executeHandler('WindowCovering.goToTiltPercentage', {
438
+ command: 'goToTiltPercentage',
411
439
  request,
412
440
  cluster: WindowCoveringServer.id,
413
441
  attributes: this.state,
@@ -424,6 +452,7 @@ export class MatterbridgeDoorLockServer extends DoorLockServer {
424
452
  const device = this.endpoint.stateOf(MatterbridgeServer);
425
453
  device.log.info(`Locking door (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
426
454
  await device.commandHandler.executeHandler('DoorLock.lockDoor', {
455
+ command: 'lockDoor',
427
456
  request: {},
428
457
  cluster: DoorLockServer.id,
429
458
  attributes: this.state,
@@ -436,6 +465,7 @@ export class MatterbridgeDoorLockServer extends DoorLockServer {
436
465
  const device = this.endpoint.stateOf(MatterbridgeServer);
437
466
  device.log.info(`Unlocking door (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
438
467
  await device.commandHandler.executeHandler('DoorLock.unlockDoor', {
468
+ command: 'unlockDoor',
439
469
  request: {},
440
470
  cluster: DoorLockServer.id,
441
471
  attributes: this.state,
@@ -450,6 +480,7 @@ export class MatterbridgeFanControlServer extends FanControlServer.with(FanContr
450
480
  const device = this.endpoint.stateOf(MatterbridgeServer);
451
481
  device.log.info(`Stepping fan with direction ${request.direction} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
452
482
  await device.commandHandler.executeHandler('FanControl.step', {
483
+ command: 'step',
453
484
  request,
454
485
  cluster: FanControlServer.id,
455
486
  attributes: this.state,
@@ -491,6 +522,7 @@ export class MatterbridgeThermostatServer extends ThermostatServer.with(Thermost
491
522
  const device = this.endpoint.stateOf(MatterbridgeServer);
492
523
  device.log.info(`Setting setpoint by ${request.amount} in mode ${request.mode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
493
524
  await device.commandHandler.executeHandler('Thermostat.setpointRaiseLower', {
525
+ command: 'setpointRaiseLower',
494
526
  request,
495
527
  cluster: ThermostatServer.id,
496
528
  attributes: this.state,
@@ -506,6 +538,7 @@ export class MatterbridgePresetThermostatServer extends ThermostatServer.with(Th
506
538
  const device = this.endpoint.stateOf(MatterbridgeServer);
507
539
  device.log.info(`Setting setpoint by ${request.amount} in mode ${request.mode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
508
540
  await device.commandHandler.executeHandler('Thermostat.setpointRaiseLower', {
541
+ command: 'setpointRaiseLower',
509
542
  request,
510
543
  cluster: ThermostatServer.id,
511
544
  attributes: this.state,
@@ -520,6 +553,7 @@ export class MatterbridgePresetThermostatServer extends ThermostatServer.with(Th
520
553
  const presetHandle = request.presetHandle ? `0x${Buffer.from(request.presetHandle).toString('hex')}` : 'null';
521
554
  device.log.info(`Setting preset to ${presetHandle} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
522
555
  await device.commandHandler.executeHandler('Thermostat.setActivePresetRequest', {
556
+ command: 'setActivePresetRequest',
523
557
  request,
524
558
  cluster: ThermostatServer.id,
525
559
  attributes: this.state,
@@ -536,6 +570,7 @@ export class MatterbridgeValveConfigurationAndControlServer extends ValveConfigu
536
570
  const device = this.endpoint.stateOf(MatterbridgeServer);
537
571
  device.log.info(`Opening valve to ${request.targetLevel ? request.targetLevel + '%' : 'fully opened'} ${request.openDuration ? 'for ' + request.openDuration + 's' : 'until closed'} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
538
572
  await device.commandHandler.executeHandler('ValveConfigurationAndControl.open', {
573
+ command: 'open',
539
574
  request,
540
575
  cluster: ValveConfigurationAndControlServer.id,
541
576
  attributes: this.state,
@@ -554,6 +589,7 @@ export class MatterbridgeValveConfigurationAndControlServer extends ValveConfigu
554
589
  const device = this.endpoint.stateOf(MatterbridgeServer);
555
590
  device.log.info(`Closing valve (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
556
591
  await device.commandHandler.executeHandler('ValveConfigurationAndControl.close', {
592
+ command: 'close',
557
593
  request: {},
558
594
  cluster: ValveConfigurationAndControlServer.id,
559
595
  attributes: this.state,
@@ -573,6 +609,7 @@ export class MatterbridgeSmokeCoAlarmServer extends SmokeCoAlarmServer.with(Smok
573
609
  const device = this.endpoint.stateOf(MatterbridgeServer);
574
610
  device.log.info(`Testing SmokeCOAlarm (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
575
611
  await device.commandHandler.executeHandler('SmokeCoAlarm.selfTestRequest', {
612
+ command: 'selfTestRequest',
576
613
  request: {},
577
614
  cluster: SmokeCoAlarmServer.id,
578
615
  attributes: this.state,
@@ -586,6 +623,7 @@ export class MatterbridgeBooleanStateConfigurationServer extends BooleanStateCon
586
623
  const device = this.endpoint.stateOf(MatterbridgeServer);
587
624
  device.log.info(`Enabling/disabling alarm ${request.alarmsToEnableDisable} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
588
625
  await device.commandHandler.executeHandler('BooleanStateConfiguration.enableDisableAlarm', {
626
+ command: 'enableDisableAlarm',
589
627
  request,
590
628
  cluster: BooleanStateConfigurationServer.id,
591
629
  attributes: this.state,
@@ -610,6 +648,7 @@ export class MatterbridgeOperationalStateServer extends OperationalStateServer {
610
648
  const device = this.endpoint.stateOf(MatterbridgeServer);
611
649
  device.log.info(`Pause (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
612
650
  await device.commandHandler.executeHandler('OperationalState.pause', {
651
+ command: 'pause',
613
652
  request: {},
614
653
  cluster: OperationalStateServer.id,
615
654
  attributes: this.state,
@@ -626,6 +665,7 @@ export class MatterbridgeOperationalStateServer extends OperationalStateServer {
626
665
  const device = this.endpoint.stateOf(MatterbridgeServer);
627
666
  device.log.info(`Stop (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
628
667
  await device.commandHandler.executeHandler('OperationalState.stop', {
668
+ command: 'stop',
629
669
  request: {},
630
670
  cluster: OperationalStateServer.id,
631
671
  attributes: this.state,
@@ -642,6 +682,7 @@ export class MatterbridgeOperationalStateServer extends OperationalStateServer {
642
682
  const device = this.endpoint.stateOf(MatterbridgeServer);
643
683
  device.log.info(`Start (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
644
684
  await device.commandHandler.executeHandler('OperationalState.start', {
685
+ command: 'start',
645
686
  request: {},
646
687
  cluster: OperationalStateServer.id,
647
688
  attributes: this.state,
@@ -658,6 +699,7 @@ export class MatterbridgeOperationalStateServer extends OperationalStateServer {
658
699
  const device = this.endpoint.stateOf(MatterbridgeServer);
659
700
  device.log.info(`Resume (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
660
701
  await device.commandHandler.executeHandler('OperationalState.resume', {
702
+ command: 'resume',
661
703
  request: {},
662
704
  cluster: OperationalStateServer.id,
663
705
  attributes: this.state,
@@ -676,6 +718,7 @@ export class MatterbridgeServiceAreaServer extends ServiceAreaServer {
676
718
  const device = this.endpoint.stateOf(MatterbridgeServer);
677
719
  device.log.info(`Selecting areas ${request.newAreas} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
678
720
  await device.commandHandler.executeHandler('ServiceArea.selectAreas', {
721
+ command: 'selectAreas',
679
722
  request,
680
723
  cluster: ServiceAreaServer.id,
681
724
  attributes: this.state,
@@ -698,6 +741,7 @@ export class MatterbridgeModeSelectServer extends ModeSelectServer {
698
741
  const device = this.endpoint.stateOf(MatterbridgeServer);
699
742
  device.log.info(`Changing mode to ${request.newMode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
700
743
  await device.commandHandler.executeHandler('ModeSelect.changeToMode', {
744
+ command: 'changeToMode',
701
745
  request,
702
746
  cluster: ModeSelectServer.id,
703
747
  attributes: this.state,
@@ -712,6 +756,7 @@ export class MatterbridgeHepaFilterMonitoringServer extends HepaFilterMonitoring
712
756
  const device = this.endpoint.stateOf(MatterbridgeServer);
713
757
  device.log.info(`Resetting condition (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
714
758
  await device.commandHandler.executeHandler('HepaFilterMonitoring.resetCondition', {
759
+ command: 'resetCondition',
715
760
  request: {},
716
761
  cluster: MatterbridgeHepaFilterMonitoringServer.id,
717
762
  attributes: this.state,
@@ -727,6 +772,7 @@ export class MatterbridgeActivatedCarbonFilterMonitoringServer extends Activated
727
772
  const device = this.endpoint.stateOf(MatterbridgeServer);
728
773
  device.log.info(`Resetting condition (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
729
774
  await device.commandHandler.executeHandler('ActivatedCarbonFilterMonitoring.resetCondition', {
775
+ command: 'resetCondition',
730
776
  request: {},
731
777
  cluster: MatterbridgeActivatedCarbonFilterMonitoringServer.id,
732
778
  attributes: this.state,
@@ -742,6 +788,7 @@ export class MatterbridgeDeviceEnergyManagementServer extends DeviceEnergyManage
742
788
  const device = this.endpoint.stateOf(MatterbridgeServer);
743
789
  device.log.info(`Adjusting power to ${request.power} duration ${request.duration} cause ${request.cause} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
744
790
  await device.commandHandler.executeHandler('DeviceEnergyManagement.powerAdjustRequest', {
791
+ command: 'powerAdjustRequest',
745
792
  request,
746
793
  cluster: DeviceEnergyManagementServer.id,
747
794
  attributes: this.state,
@@ -753,6 +800,7 @@ export class MatterbridgeDeviceEnergyManagementServer extends DeviceEnergyManage
753
800
  const device = this.endpoint.stateOf(MatterbridgeServer);
754
801
  device.log.info(`Cancelling power adjustment (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
755
802
  await device.commandHandler.executeHandler('DeviceEnergyManagement.cancelPowerAdjustRequest', {
803
+ command: 'cancelPowerAdjustRequest',
756
804
  request: {},
757
805
  cluster: DeviceEnergyManagementServer.id,
758
806
  attributes: this.state,
@@ -766,6 +814,7 @@ export class MatterbridgeDeviceEnergyManagementModeServer extends DeviceEnergyMa
766
814
  const device = this.endpoint.stateOf(MatterbridgeServer);
767
815
  device.log.info(`Changing mode to ${request.newMode} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
768
816
  await device.commandHandler.executeHandler('DeviceEnergyManagementMode.changeToMode', {
817
+ command: 'changeToMode',
769
818
  request,
770
819
  cluster: DeviceEnergyManagementModeServer.id,
771
820
  attributes: this.state,
@@ -243,7 +243,7 @@ export class MatterbridgeEndpoint extends Endpoint {
243
243
  return this;
244
244
  }
245
245
  async executeCommandHandler(command, request, cluster, attributes, endpoint) {
246
- await this.commandHandler.executeHandler(command, { request, cluster, attributes, endpoint });
246
+ await this.commandHandler.executeHandler(command, { command, request, cluster, attributes, endpoint });
247
247
  }
248
248
  async invokeBehaviorCommand(cluster, command, params) {
249
249
  await invokeBehaviorCommand(this, cluster, command, params);