homebridge-smartthings-oauth 1.0.27 → 1.0.29
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
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
|
+
## [1.0.29] - Complete Samsung TV Experience & Reference Implementation Alignment
|
|
4
|
+
### Fixed
|
|
5
|
+
- **🚨 CRITICAL: Volume Slider Component Targeting**: Fixed volume slider targeting wrong device components (was controlling light sensor instead of TV audio)
|
|
6
|
+
- **Volume Slider Tile Placement**: Volume slider now appears within the same TV tile in HomeKit (not as separate accessory)
|
|
7
|
+
- **Direct API Calls**: Volume slider now uses direct SmartThings API calls to main TV component, ensuring reliable volume control
|
|
8
|
+
- **Component Confusion**: Added strict `componentId === 'main'` check to prevent volume slider creation on sensor components
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **Volume Slider Architecture**: Simplified to work as a service within the same TV accessory (same HomeKit tile)
|
|
12
|
+
- **TelevisionSpeaker Conflicts**: When volume slider is enabled, TelevisionSpeaker completely disables volume controls to prevent conflicts
|
|
13
|
+
- **API Communication**: Volume slider bypasses internal component status and uses direct API calls for immediate responsiveness
|
|
14
|
+
## [1.0.28] - Complete Samsung TV Experience & Reference Implementation Alignment
|
|
15
|
+
### Fixed
|
|
16
|
+
- **🚨 CRITICAL: Volume Slider Component Targeting**: Fixed volume slider targeting wrong device components (was controlling light sensor instead of TV audio)
|
|
17
|
+
- **Volume Slider Tile Placement**: Volume slider now appears within the same TV tile in HomeKit (not as separate accessory)
|
|
18
|
+
- **Direct API Calls**: Volume slider now uses direct SmartThings API calls to main TV component, ensuring reliable volume control
|
|
19
|
+
- **Component Confusion**: Added strict `componentId === 'main'` check to prevent volume slider creation on sensor components
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- **Volume Slider Architecture**: Simplified to work as a service within the same TV accessory (same HomeKit tile)
|
|
23
|
+
- **TelevisionSpeaker Conflicts**: When volume slider is enabled, TelevisionSpeaker completely disables volume controls to prevent conflicts
|
|
24
|
+
- **API Communication**: Volume slider bypasses internal component status and uses direct API calls for immediate responsiveness
|
|
3
25
|
## [1.0.27] - Complete Samsung TV Experience & Reference Implementation Alignment
|
|
4
26
|
### Fixed
|
|
5
27
|
- **🚨 CRITICAL: Volume Slider Component Targeting**: Fixed volume slider targeting wrong device components (was controlling light sensor instead of TV audio)
|
|
@@ -2,6 +2,7 @@ import { PlatformAccessory, Service } from 'homebridge';
|
|
|
2
2
|
import { BaseService } from './baseService';
|
|
3
3
|
import { MultiServiceAccessory } from '../multiServiceAccessory';
|
|
4
4
|
import { IKHomeBridgeHomebridgePlatform } from '../platform';
|
|
5
|
+
import { ShortEvent } from '../webhook/subscriptionHandler';
|
|
5
6
|
/**
|
|
6
7
|
* Volume Slider Service (Within Same TV Accessory)
|
|
7
8
|
* Creates a lightbulb service within the TV accessory for volume control.
|
|
@@ -42,6 +43,10 @@ export declare class VolumeSliderService extends BaseService {
|
|
|
42
43
|
* Check if the given capabilities support volume slider functionality
|
|
43
44
|
*/
|
|
44
45
|
static supportsVolumeSlider(capabilities: string[]): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Process webhook events for real-time updates
|
|
48
|
+
*/
|
|
49
|
+
processEvent(event: ShortEvent): void;
|
|
45
50
|
/**
|
|
46
51
|
* Cleanup method to stop polling when accessory is removed
|
|
47
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeSliderService.d.ts","sourceRoot":"","sources":["../../src/services/volumeSliderService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,iBAAiB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"volumeSliderService.d.ts","sourceRoot":"","sources":["../../src/services/volumeSliderService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,iBAAiB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,mBAAmB,CAAK;IAChC,OAAO,CAAC,YAAY,CAA6B;gBAG/C,QAAQ,EAAE,8BAA8B,EACxC,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EAAE,EACtB,qBAAqB,EAAE,qBAAqB,EAC5C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,GAAG;IAgCnB,OAAO,CAAC,kBAAkB;IA4B1B;;;OAGG;YACW,KAAK;IAsBnB;;;OAGG;YACW,KAAK;IAuBnB;;OAEG;YACW,aAAa;IA4B3B;;OAEG;YACW,aAAa;IA0C3B;;OAEG;WACW,2BAA2B,IAAI,MAAM,EAAE;IAIrD;;OAEG;WACW,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO;IAInE;;OAEG;IACI,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAkB5C;;OAEG;IACI,OAAO,IAAI,IAAI;CAOvB"}
|
|
@@ -45,11 +45,15 @@ class VolumeSliderService extends baseService_1.BaseService {
|
|
|
45
45
|
this.log.info(`🎚️ Starting Volume Slider polling with ${pollInterval / 1000}s interval for ${this.name} (syncs with IR remote)`);
|
|
46
46
|
this.pollInterval = setInterval(async () => {
|
|
47
47
|
try {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
this.log.debug(`🔄 Volume slider polling for ${this.name}...`);
|
|
49
|
+
// Use the proper status mechanism instead of direct API calls
|
|
50
|
+
if (await this.getStatus()) {
|
|
51
|
+
// Update characteristics from device status
|
|
52
|
+
const onValue = await this.getOn();
|
|
53
|
+
const brightnessValue = await this.getBrightness();
|
|
54
|
+
this.service.updateCharacteristic(this.platform.Characteristic.On, onValue);
|
|
55
|
+
this.service.updateCharacteristic(this.platform.Characteristic.Brightness, brightnessValue);
|
|
56
|
+
}
|
|
53
57
|
}
|
|
54
58
|
catch (error) {
|
|
55
59
|
this.log.debug(`Volume slider polling error for ${this.name}:`, error);
|
|
@@ -61,62 +65,50 @@ class VolumeSliderService extends baseService_1.BaseService {
|
|
|
61
65
|
* On = true means NOT muted, On = false means muted
|
|
62
66
|
*/
|
|
63
67
|
async getOn() {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
return new Promise((resolve) => {
|
|
69
|
+
this.getStatus().then(success => {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
if (!success) {
|
|
72
|
+
this.log.debug(`Could not get status for mute check on ${this.name}`);
|
|
73
|
+
resolve(true); // Default to not muted if we can't get status
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
try {
|
|
77
|
+
// Get mute status from device status (main component)
|
|
78
|
+
const muteValue = (_d = (_c = (_b = (_a = this.deviceStatus.status) === null || _a === void 0 ? void 0 : _a.main) === null || _b === void 0 ? void 0 : _b.audioMute) === null || _c === void 0 ? void 0 : _c.mute) === null || _d === void 0 ? void 0 : _d.value;
|
|
79
|
+
const isNotMuted = muteValue !== 'muted';
|
|
80
|
+
this.log.debug(`Volume slider On state for ${this.name}: ${isNotMuted} (mute: ${muteValue}) from main component`);
|
|
81
|
+
resolve(isNotMuted);
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
this.log.debug(`Error parsing mute status for ${this.name}:`, error);
|
|
85
|
+
resolve(true); // Default to not muted
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
77
90
|
}
|
|
78
91
|
/**
|
|
79
92
|
* Set On state (toggle mute)
|
|
80
93
|
* On = true means unmute, On = false means mute
|
|
81
94
|
*/
|
|
82
95
|
async setOn(value) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
// Turning off = mute
|
|
98
|
-
this.log.debug(`Volume slider turning OFF (muting) ${this.name}`);
|
|
99
|
-
await this.platform.axInstance.post(`devices/${this.accessory.context.device.deviceId}/commands`, {
|
|
100
|
-
commands: [{
|
|
101
|
-
component: 'main', // Always target main component
|
|
102
|
-
capability: 'audioMute',
|
|
103
|
-
command: 'mute',
|
|
104
|
-
}],
|
|
105
|
-
});
|
|
106
|
-
this.log.info(`✅ Volume slider muted successfully for ${this.name}`);
|
|
107
|
-
}
|
|
108
|
-
// Refresh status after a short delay
|
|
109
|
-
setTimeout(async () => {
|
|
110
|
-
try {
|
|
111
|
-
await this.multiServiceAccessory.refreshStatus();
|
|
112
|
-
}
|
|
113
|
-
catch (error) {
|
|
114
|
-
this.log.debug(`Status refresh after mute toggle failed for ${this.name}:`, error);
|
|
115
|
-
}
|
|
96
|
+
if (!this.multiServiceAccessory.isOnline()) {
|
|
97
|
+
this.log.error(`${this.name} is offline`);
|
|
98
|
+
throw new this.platform.api.hap.HapStatusError(-70402 /* this.platform.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE */);
|
|
99
|
+
}
|
|
100
|
+
const command = value ? 'unmute' : 'mute';
|
|
101
|
+
this.log.debug(`Volume slider turning ${value ? 'ON (unmuting)' : 'OFF (muting)'} ${this.name}`);
|
|
102
|
+
const success = await this.multiServiceAccessory.sendCommand('audioMute', command);
|
|
103
|
+
if (success) {
|
|
104
|
+
this.log.info(`✅ Volume slider ${command}d successfully for ${this.name}`);
|
|
105
|
+
// Force a status refresh after a delay to get updated values
|
|
106
|
+
setTimeout(() => {
|
|
107
|
+
this.multiServiceAccessory.forceNextStatusRefresh();
|
|
116
108
|
}, 1000);
|
|
117
109
|
}
|
|
118
|
-
|
|
119
|
-
this.log.error(`❌ Failed to
|
|
110
|
+
else {
|
|
111
|
+
this.log.error(`❌ Failed to ${command} volume slider for ${this.name}`);
|
|
120
112
|
throw new this.platform.api.hap.HapStatusError(-70402 /* this.platform.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE */);
|
|
121
113
|
}
|
|
122
114
|
}
|
|
@@ -124,76 +116,73 @@ class VolumeSliderService extends baseService_1.BaseService {
|
|
|
124
116
|
* Get Brightness (represents volume level 0-100)
|
|
125
117
|
*/
|
|
126
118
|
async getBrightness() {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
119
|
+
return new Promise((resolve) => {
|
|
120
|
+
this.getStatus().then(success => {
|
|
121
|
+
var _a, _b, _c, _d;
|
|
122
|
+
if (!success) {
|
|
123
|
+
this.log.debug(`Could not get status for volume check on ${this.name}`);
|
|
124
|
+
resolve(0); // Default to 0 volume if we can't get status
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
try {
|
|
128
|
+
// Get volume from device status (main component)
|
|
129
|
+
const volume = (_d = (_c = (_b = (_a = this.deviceStatus.status) === null || _a === void 0 ? void 0 : _a.main) === null || _b === void 0 ? void 0 : _b.audioVolume) === null || _c === void 0 ? void 0 : _c.volume) === null || _d === void 0 ? void 0 : _d.value;
|
|
130
|
+
if (typeof volume === 'number') {
|
|
131
|
+
const boundedVolume = Math.max(0, Math.min(100, volume)); // Bound between 0-100
|
|
132
|
+
this.log.debug(`Volume slider brightness for ${this.name}: ${boundedVolume}% (from main component)`);
|
|
133
|
+
resolve(boundedVolume);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
this.log.warn(`⚠️ No audioVolume data in main component for ${this.name}`);
|
|
137
|
+
resolve(0);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
this.log.debug(`Error parsing volume status for ${this.name}:`, error);
|
|
142
|
+
resolve(0); // Default to 0 volume
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Set Brightness (set volume level 0-100)
|
|
149
150
|
*/
|
|
150
151
|
async setBrightness(value) {
|
|
151
|
-
var _a, _b;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}],
|
|
163
|
-
});
|
|
152
|
+
var _a, _b, _c, _d;
|
|
153
|
+
if (!this.multiServiceAccessory.isOnline()) {
|
|
154
|
+
this.log.error(`${this.name} is offline`);
|
|
155
|
+
throw new this.platform.api.hap.HapStatusError(-70402 /* this.platform.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE */);
|
|
156
|
+
}
|
|
157
|
+
const volume = Math.max(0, Math.min(100, value)); // Bound between 0-100
|
|
158
|
+
this.log.debug(`Volume slider setting brightness to ${volume}% for ${this.name}`);
|
|
159
|
+
// Set volume using proper command mechanism
|
|
160
|
+
const success = await this.multiServiceAccessory.sendCommand('audioVolume', 'setVolume', [volume]);
|
|
161
|
+
if (success) {
|
|
162
|
+
this.log.info(`✅ Volume slider set successfully to ${volume}% for ${this.name}`);
|
|
164
163
|
// If setting volume above 0 and TV is muted, automatically unmute
|
|
165
164
|
if (volume > 0) {
|
|
166
165
|
try {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
capability: 'audioMute',
|
|
175
|
-
command: 'unmute',
|
|
176
|
-
}],
|
|
177
|
-
});
|
|
166
|
+
// Check current mute status from device status
|
|
167
|
+
if (await this.getStatus()) {
|
|
168
|
+
const muteValue = (_d = (_c = (_b = (_a = this.deviceStatus.status) === null || _a === void 0 ? void 0 : _a.main) === null || _b === void 0 ? void 0 : _b.audioMute) === null || _c === void 0 ? void 0 : _c.mute) === null || _d === void 0 ? void 0 : _d.value;
|
|
169
|
+
if (muteValue === 'muted') {
|
|
170
|
+
this.log.debug(`Auto-unmuting ${this.name} because volume was set to ${volume}%`);
|
|
171
|
+
await this.multiServiceAccessory.sendCommand('audioMute', 'unmute');
|
|
172
|
+
}
|
|
178
173
|
}
|
|
179
174
|
}
|
|
180
175
|
catch (error) {
|
|
181
176
|
this.log.debug(`Could not check/set mute state during volume change for ${this.name}:`, error);
|
|
182
177
|
}
|
|
183
178
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
try {
|
|
188
|
-
await this.multiServiceAccessory.refreshStatus();
|
|
189
|
-
}
|
|
190
|
-
catch (error) {
|
|
191
|
-
this.log.debug(`Status refresh after volume change failed for ${this.name}:`, error);
|
|
192
|
-
}
|
|
179
|
+
// Force a status refresh after a delay to get updated values
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
this.multiServiceAccessory.forceNextStatusRefresh();
|
|
193
182
|
}, 1000);
|
|
194
183
|
}
|
|
195
|
-
|
|
196
|
-
this.log.error(`❌ Failed to set volume for slider ${this.name}
|
|
184
|
+
else {
|
|
185
|
+
this.log.error(`❌ Failed to set volume for slider ${this.name}`);
|
|
197
186
|
throw new this.platform.api.hap.HapStatusError(-70402 /* this.platform.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE */);
|
|
198
187
|
}
|
|
199
188
|
}
|
|
@@ -209,6 +198,27 @@ class VolumeSliderService extends baseService_1.BaseService {
|
|
|
209
198
|
static supportsVolumeSlider(capabilities) {
|
|
210
199
|
return capabilities.includes('audioVolume') || capabilities.includes('audioMute');
|
|
211
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Process webhook events for real-time updates
|
|
203
|
+
*/
|
|
204
|
+
processEvent(event) {
|
|
205
|
+
this.log.debug(`Volume slider received event for ${this.name}: ${event.capability}.${event.attribute} = ${event.value}`);
|
|
206
|
+
try {
|
|
207
|
+
if (event.capability === 'audioMute' && event.attribute === 'mute') {
|
|
208
|
+
const isNotMuted = event.value !== 'muted';
|
|
209
|
+
this.service.updateCharacteristic(this.platform.Characteristic.On, isNotMuted);
|
|
210
|
+
this.log.debug(`Volume slider mute state updated via webhook for ${this.name}: ${isNotMuted}`);
|
|
211
|
+
}
|
|
212
|
+
else if (event.capability === 'audioVolume' && event.attribute === 'volume') {
|
|
213
|
+
const volume = Math.max(0, Math.min(100, Number(event.value) || 0));
|
|
214
|
+
this.service.updateCharacteristic(this.platform.Characteristic.Brightness, volume);
|
|
215
|
+
this.log.debug(`Volume slider volume updated via webhook for ${this.name}: ${volume}%`);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
this.log.debug(`Error processing event for volume slider ${this.name}:`, error);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
212
222
|
/**
|
|
213
223
|
* Cleanup method to stop polling when accessory is removed
|
|
214
224
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeSliderService.js","sourceRoot":"","sources":["../../src/services/volumeSliderService.ts"],"names":[],"mappings":";;;AACA,+CAA4C;
|
|
1
|
+
{"version":3,"file":"volumeSliderService.js","sourceRoot":"","sources":["../../src/services/volumeSliderService.ts"],"names":[],"mappings":";;;AACA,+CAA4C;AAK5C;;;;;;;GAOG;AACH,MAAa,mBAAoB,SAAQ,yBAAW;IAKlD,YACE,QAAwC,EACxC,SAA4B,EAC5B,WAAmB,EACnB,YAAsB,EACtB,qBAA4C,EAC5C,IAAY,EACZ,YAAiB;QAEjB,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,qBAAqB,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;QAZ3F,wBAAmB,GAAG,CAAC,CAAC;QAc9B,iEAAiE;QACjE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,IAAI,SAAS,CAAC;YACxD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,SAAS,EAAE,cAAc,CAAC,CAAC;QAE/F,uBAAuB;QACvB,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,IAAI,SAAS,CAAC,CAAC;QAEpF,0EAA0E;QAC1E,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;aAC5D,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC5B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAEhC,sEAAsE;QACtE,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC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,GAAG,SAAS,CAAC;YAC9B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qCAAqC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;CACF;AAtPD,kDAsPC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"displayName": "Homebridge Smartthings oAuth Plugin",
|
|
4
4
|
"name": "homebridge-smartthings-oauth",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.29",
|
|
6
6
|
"description": "Connects SmartThings devices to Homebridge. Automatically discovers devices.",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"repository": {
|