homebridge-mi-flora-care
Version:
This is a homebridge plugin for the Xiaomi Mi Flora / Xiaomi Flower Care devices.
60 lines • 2.25 kB
TypeScript
import { API, Logger, Service, CharacteristicValue, AccessoryPlugin, AccessoryConfig } from 'homebridge';
export declare class MiFloraCareAccessory implements AccessoryPlugin {
readonly log: Logger;
readonly config: AccessoryConfig;
readonly api: API;
private readonly Service;
private readonly Characteristic;
private readonly PlantSensor;
private readonly informationService;
private readonly batteryService;
private readonly lightService;
private readonly tempService;
private readonly humidityService;
private readonly humidityAlertService;
private readonly lowLightAlertService;
private readonly fakeGatoHistoryService;
private readonly plantSensorService;
private readonly name;
private readonly displayName;
private readonly deviceId;
private storedData;
private interval;
private humidityAlert;
private humidityAlertLevel;
private lowLightAlert;
private lowLightAlertLevel;
private lowBatteryWarningLevel;
private static _waitScan;
private _opts;
private miFloraDevice;
constructor(log: Logger, config: AccessoryConfig, api: API);
getServices(): Service[];
/**
* own characteristics and services
*
* @returns Service
*/
private _createPlantService;
private _createInformationService;
private _createBatteryService;
private _createTemperatureService;
private _createLightService;
private _createHumidityService;
private _createFakeGatoHistoryService;
private _updateData;
private _updateFirmware;
private _scan;
private _refreshInfo;
getFirmwareRevision(): Promise<CharacteristicValue>;
getBatteryLevel(): Promise<CharacteristicValue>;
getStatusActive(): Promise<CharacteristicValue>;
getStatusLowBattery(): Promise<CharacteristicValue>;
getStatusLowMoisture(): Promise<CharacteristicValue>;
getStatusLowLight(): Promise<CharacteristicValue>;
getCurrentAmbientLightLevel(): Promise<CharacteristicValue>;
getCurrentTemperature(): Promise<CharacteristicValue>;
getCurrentMoisture(): Promise<CharacteristicValue>;
getCurrentFertility(): Promise<CharacteristicValue>;
}
//# sourceMappingURL=miFloraAccessory.d.ts.map