homebridge-nanoleaf-multi 1.0.1 → 1.2.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/Effect.d.ts +1 -0
- package/dist/Zone.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/types/effects/EffectConfigurationBase.d.ts +1 -0
- package/package.json +2 -2
- package/src/Device.ts +2 -2
- package/src/Effect.ts +5 -0
- package/src/Zone.ts +40 -2
- package/src/platformFactory.ts +8 -2
- package/src/types/effects/EffectConfigurationBase.ts +1 -0
package/dist/Effect.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ 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>;
|
package/dist/Zone.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import EventEmitter from 'events';
|
|
1
3
|
import { Context, ZoneConfiguration, EffectConfiguration, EffectConfigurationBase } from './types';
|
|
2
4
|
import Effect from './Effect';
|
|
3
5
|
import SolidEffect from './SolidEffect';
|
|
4
6
|
import WaveEffect from './WaveEffect';
|
|
5
7
|
import RandomEffect from './RandomEffect';
|
|
6
|
-
export
|
|
8
|
+
export declare const ZONE_AUTO_OFF_EVENT = "zone_auto_off";
|
|
9
|
+
export default class Zone extends EventEmitter {
|
|
7
10
|
readonly configuration: ZoneConfiguration;
|
|
8
11
|
private context;
|
|
9
12
|
constructor(configuration: ZoneConfiguration, context: Context);
|
|
@@ -23,4 +26,7 @@ export default class Zone {
|
|
|
23
26
|
setActiveEffectById(effectId: string): Promise<void>;
|
|
24
27
|
setActiveEffect(effect: Effect<any>): Promise<void>;
|
|
25
28
|
getActiveEffectId(): string;
|
|
29
|
+
private autoOffTimeout;
|
|
30
|
+
private setAutoOffTimeout;
|
|
31
|
+
private clearAutoOffTimeout;
|
|
26
32
|
}
|