homebridge-zencontrol-tpi 1.0.1 → 1.0.2
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/dist/lightAccessory.js +2 -2
- package/dist/platform.js +5 -5
- package/package.json +1 -1
package/dist/lightAccessory.js
CHANGED
|
@@ -224,12 +224,12 @@ export class ZencontrolLightPlatformAccessory {
|
|
|
224
224
|
const brightness = arcLevel > 0 ? Math.max(1, Math.round(arcLevelToPercentage(arcLevel))) : 0;
|
|
225
225
|
const on = arcLevel > 0;
|
|
226
226
|
if (brightness !== this.knownBrightness) {
|
|
227
|
-
this.platform.log.
|
|
227
|
+
this.platform.log.info(`Received from controller: ${this.accessory.displayName} brightness to ${brightness}`);
|
|
228
228
|
this.knownBrightness = brightness;
|
|
229
229
|
this.service.updateCharacteristic(this.platform.Characteristic.Brightness, brightness);
|
|
230
230
|
}
|
|
231
231
|
if (on !== this.knownOn) {
|
|
232
|
-
this.platform.log.
|
|
232
|
+
this.platform.log.info(`Received from controller: ${this.accessory.displayName} on/off to ${on ? 'on' : 'off'}`);
|
|
233
233
|
this.knownOn = on;
|
|
234
234
|
this.service.updateCharacteristic(this.platform.Characteristic.On, on);
|
|
235
235
|
}
|
package/dist/platform.js
CHANGED
|
@@ -205,7 +205,7 @@ export class ZencontrolTPIPlatform {
|
|
|
205
205
|
let acc;
|
|
206
206
|
if (existingAccessory) {
|
|
207
207
|
// the accessory already exists
|
|
208
|
-
this.log.
|
|
208
|
+
this.log.debug('Restoring existing light accessory from cache:', existingAccessory.displayName);
|
|
209
209
|
this.updateAccessory(existingAccessory, { address, label, model, serial });
|
|
210
210
|
// create the accessory handler for the restored accessory
|
|
211
211
|
// this is imported from `platformAccessory.ts`
|
|
@@ -235,7 +235,7 @@ export class ZencontrolTPIPlatform {
|
|
|
235
235
|
const existingAccessory = this.accessories.get(uuid);
|
|
236
236
|
let acc;
|
|
237
237
|
if (existingAccessory) {
|
|
238
|
-
this.log.
|
|
238
|
+
this.log.debug('Restoring existing relay accessory from cache:', existingAccessory.displayName);
|
|
239
239
|
this.updateAccessory(existingAccessory, { address, label, model, serial });
|
|
240
240
|
acc = new ZencontrolRelayPlatformAccessory(this, existingAccessory);
|
|
241
241
|
}
|
|
@@ -254,7 +254,7 @@ export class ZencontrolTPIPlatform {
|
|
|
254
254
|
const existingAccessory = this.accessories.get(uuid);
|
|
255
255
|
let acc;
|
|
256
256
|
if (existingAccessory) {
|
|
257
|
-
this.log.
|
|
257
|
+
this.log.debug('Restoring existing temperature accessory from cache:', existingAccessory.displayName);
|
|
258
258
|
this.updateAccessory(existingAccessory, { address, label, model, serial });
|
|
259
259
|
acc = new ZencontrolTemperaturePlatformAccessory(this, existingAccessory);
|
|
260
260
|
}
|
|
@@ -273,7 +273,7 @@ export class ZencontrolTPIPlatform {
|
|
|
273
273
|
const existingAccessory = this.accessories.get(uuid);
|
|
274
274
|
let acc;
|
|
275
275
|
if (existingAccessory) {
|
|
276
|
-
this.log.
|
|
276
|
+
this.log.debug('Restoring existing humidity accessory from cache:', existingAccessory.displayName);
|
|
277
277
|
this.updateAccessory(existingAccessory, { address, label, model, serial });
|
|
278
278
|
acc = new ZencontrolHumidityPlatformAccessory(this, existingAccessory);
|
|
279
279
|
}
|
|
@@ -292,7 +292,7 @@ export class ZencontrolTPIPlatform {
|
|
|
292
292
|
const existingAccessory = this.accessories.get(uuid);
|
|
293
293
|
let acc;
|
|
294
294
|
if (existingAccessory) {
|
|
295
|
-
this.log.
|
|
295
|
+
this.log.debug('Restoring existing lux accessory from cache:', existingAccessory.displayName);
|
|
296
296
|
this.updateAccessory(existingAccessory, { address, label, model, serial });
|
|
297
297
|
acc = new ZencontrolLuxPlatformAccessory(this, existingAccessory);
|
|
298
298
|
}
|