Update Fan.ts
This commit is contained in:
parent
1a2e5c051d
commit
e2d30353fb
@ -72,7 +72,7 @@ export class Fan implements AccessoryPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shngActiveCallback(value: unknown): void {
|
shngActiveCallback(value: unknown): void {
|
||||||
this.platform.log.debug('shngCallback:', this.accessory.name, '=', value, '(' + typeof value + ')');
|
this.platform.log.debug('shngActiveCallback:', this.accessory.name, '=', value, '(' + typeof value + ')');
|
||||||
if (typeof value === 'boolean') {
|
if (typeof value === 'boolean') {
|
||||||
this.active = value;
|
this.active = value;
|
||||||
this.deviceService.updateCharacteristic(this.platform.Characteristic.Active, this.active);
|
this.deviceService.updateCharacteristic(this.platform.Characteristic.Active, this.active);
|
||||||
@ -82,7 +82,7 @@ export class Fan implements AccessoryPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shngRotationSpeedCallback(value: unknown): void {
|
shngRotationSpeedCallback(value: unknown): void {
|
||||||
this.platform.log.debug('shngCallback:', this.accessory.name, '=', value, '(' + typeof value + ')');
|
this.platform.log.debug('shngRotationSpeedCallback:', this.accessory.name, '=', value, '(' + typeof value + ')');
|
||||||
if (typeof value === 'number') {
|
if (typeof value === 'number') {
|
||||||
this.rotationSpeed = value;
|
this.rotationSpeed = value;
|
||||||
this.deviceService.updateCharacteristic(this.platform.Characteristic.RotationSpeed, this.rotationSpeed);
|
this.deviceService.updateCharacteristic(this.platform.Characteristic.RotationSpeed, this.rotationSpeed);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user