UNPKG

homebridge-lg-ac

Version:

A Homebridge plugin for controlling/monitoring LG AirConditioning device via LG ThinQ platform.

49 lines 1.91 kB
import { Session } from './Session'; import { Gateway } from './Gateway'; import { Auth } from './Auth'; export declare class API { protected country: string; protected language: string; protected _homes: any; protected _gateway: Gateway | undefined; protected session: Session; protected auth: Auth; protected userNumber: string; protected username: string; protected password: string; client_id: string; httpClient: import("axios").AxiosInstance; logger: any; constructor(country?: string, language?: string); getRequest(uri: any, headers?: any): Promise<any>; postRequest(uri: any, data: any, headers?: any): Promise<any>; protected request(method: any, uri: string, data?: any, headers?: any, retry?: boolean): any; protected get defaultHeaders(): { 'x-api-key': string; 'x-thinq-app-ver': string; 'x-thinq-app-type': string; 'x-thinq-app-level': string; 'x-thinq-app-os': string; 'x-thinq-app-logintype': string; 'x-service-code': string; 'x-country-code': string; 'x-language-code': string; 'x-service-phase': string; 'x-origin': string; 'x-model-name': string; 'x-os-version': string; 'x-app-version': string; 'x-message-id': string; 'user-agent': string; }; getSingleDevice(device_id: string): Promise<any>; getListDevices(): Promise<Record<string, any>[]>; getListHomes(): Promise<any>; sendCommandToDevice(device_id: string, values: Record<string, any>, command: 'Set' | 'Operation', ctrlKey?: string): Promise<any>; setRefreshToken(refreshToken: any): void; setUsernamePassword(username: any, password: any): void; gateway(): Promise<Gateway>; ready(): Promise<void>; refreshNewToken(session?: Session | null): Promise<void>; } //# sourceMappingURL=API.d.ts.map