@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
33 lines • 1.12 kB
TypeScript
import { HttpStatus } from '@nestjs/common';
import { DevicesService } from './devices.service';
export declare class DeviceController {
private readonly deviceService;
private readonly logger;
constructor(deviceService: DevicesService);
getAllDevices(): Promise<({
deviceId: string;
name: string;
model: string;
type: string;
iotTopic: import("../..").Optional<string>;
bleAddress: import("../..").Optional<string>;
states: any;
history: any;
} | undefined)[]>;
getByModel(model: string): Promise<{
deviceId: string;
name: string;
model: string;
type: string;
iotTopic: import("../..").Optional<string>;
bleAddress: import("../..").Optional<string>;
states: any;
history: any;
}[]>;
getDevice(deviceId: string, stateName?: string): any;
refreshDevice(deviceId: string): void;
setState(deviceId: string, stateName: string, stateData: any): HttpStatus.NOT_FOUND | {
commandId: string[];
};
}
//# sourceMappingURL=device.controller.d.ts.map