UNPKG

@constructorfleet/ultimate-govee

Version:

Library for interacting with Govee devices written in Typescript.

19 lines 770 B
import { Optional } from '../../../common'; import { DeviceModel } from '../devices.model'; import { DeviceOpState } from './device.state'; import { StateCommandAndStatus } from './states.types'; export declare const PowerStateName: 'power'; export type PowerStateName = typeof PowerStateName; export type PowerType = { isOn?: boolean; state?: { isOn?: boolean; onOff?: boolean; }; }; export declare class PowerState extends DeviceOpState<PowerStateName, Optional<boolean>> { constructor(device: DeviceModel, opType?: number, identifier?: number[]); parseState(data: PowerType): void; protected readonly stateToCommand: (nextState: Optional<boolean>) => Optional<StateCommandAndStatus>; } //# sourceMappingURL=power.state.d.ts.map