UNPKG

homebridge-sleeptracker

Version:

Homebridge plugin for SleepTracker smart beds - Control your bed's position and features through HomeKit

18 lines 802 B
import { Commands, DeviceSnapshot, HelloData, EnvironmentSensorData } from './types'; export declare class SleepTrackerClient { private readonly username; private readonly password; private readonly deviceId; private readonly authApi; private readonly api; private token; private tokenExpiration; constructor(username: string, password: string, deviceId: string); private authenticate; getDeviceInfo(deviceId: string): Promise<HelloData>; getDeviceSnapshot(command: Commands): Promise<DeviceSnapshot>; private getCommandValue; sendCommand(deviceId: string, command: Commands, side?: number, targetPosition?: number): Promise<void>; getEnvironmentSensorData(deviceId: string): Promise<EnvironmentSensorData>; } //# sourceMappingURL=client.d.ts.map