@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
15 lines • 874 B
TypeScript
import { Optional } from '../../../../../common';
import { DeviceOpState, StateCommandAndStatus } from '../../../states';
import { DeviceModel } from '../../../devices.model';
import { PurifierActiveMode } from './purifier.modes';
export declare const FanSpeedStateName: 'fanSpeed';
export type FanSpeedStateName = typeof FanSpeedStateName;
export declare class PurifierFanSpeedState extends DeviceOpState<FanSpeedStateName, Optional<number>> {
private readonly active;
private subscription;
constructor(device: DeviceModel, active?: PurifierActiveMode | undefined, opType?: number, identifier?: number[]);
parseOpCommand(opCommand: number[]): void;
setState(nextState: Optional<number>): string[];
protected readonly stateToCommand: (nextState: Optional<number>) => Optional<StateCommandAndStatus>;
}
//# sourceMappingURL=purifier.fan-speed.d.ts.map