homebridge-nanoleaf-multi 1.0.0 → 1.2.1
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/Effect.d.ts +2 -1
- package/dist/Zone.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/types/effects/EffectConfigurationBase.d.ts +1 -0
- package/package.json +3 -2
- package/src/Device.ts +2 -2
- package/src/Effect.ts +13 -8
- package/src/Zone.ts +32 -1
- package/src/types/effects/EffectConfigurationBase.ts +1 -0
package/dist/Effect.d.ts
CHANGED
|
@@ -12,11 +12,12 @@ export default abstract class Effect<EffectConfigurationType extends EffectConfi
|
|
|
12
12
|
get id(): string;
|
|
13
13
|
get name(): string;
|
|
14
14
|
protected get nativeEffectBase(): Partial<NativeEffect>;
|
|
15
|
+
get autoOffDuration(): number;
|
|
15
16
|
protected handleChange(): void;
|
|
16
17
|
abstract getNativeEffectForDevice(device: Device): NativeEffect;
|
|
17
18
|
abstract getColors(): Array<ConstantEffectColorConfiguration | DynamicEffectColorConfiguration | RemoteEffectColorConfiguration>;
|
|
18
|
-
hasColor(colorId: string): boolean;
|
|
19
19
|
abstract setColor(colorId: string, color: ColorHSV): any;
|
|
20
20
|
getDynamicColors(): DynamicEffectColorConfiguration[];
|
|
21
21
|
getRemoteColors(): RemoteEffectColorConfiguration[];
|
|
22
|
+
hasColor(colorId: string): boolean;
|
|
22
23
|
}
|
package/dist/Zone.d.ts
CHANGED
|
@@ -23,4 +23,7 @@ export default class Zone {
|
|
|
23
23
|
setActiveEffectById(effectId: string): Promise<void>;
|
|
24
24
|
setActiveEffect(effect: Effect<any>): Promise<void>;
|
|
25
25
|
getActiveEffectId(): string;
|
|
26
|
+
private autoOffTimeout;
|
|
27
|
+
private setAutoOffTimeout;
|
|
28
|
+
private clearAutoOffTimeout;
|
|
26
29
|
}
|