import { PlatformAccessory, CharacteristicSetCallback, CharacteristicGetCallback } from 'homebridge'; import { GriddyResponse, GriddyItem } from './griddy-api'; import { ExampleHomebridgePlatform } from './platform'; /** * Platform Accessory * An instance of this class is created for each accessory your platform registers * Each accessory may expose multiple services of different service types. */ export declare class ExamplePlatformAccessory { private readonly platform; private readonly accessory; private priceService; private intensityService; private lowPriceService; private latestGriddyData; private history; /** * These are just used to create a working example * You should implement your own code to track the state of your accessory */ constructor(platform: ExampleHomebridgePlatform, accessory: PlatformAccessory); update(): Promise; /** * Handle the "GET" requests from HomeKit * These are sent when HomeKit wants to know the current state of the accessory, for example, checking if a Light bulb is on. * * GET requests should return as fast as possbile. A long delay here will result in * HomeKit being unresponsive and a bad user experience in general. * * If your device takes time to respond you should update the status of your device * asynchronously instead using the `updateCharacteristic` method instead. * @example * this.service.updateCharacteristic(this.platform.Characteristic.On, true) */ getStatus(callback: CharacteristicGetCallback): void; getLevel(callback: CharacteristicSetCallback): void; getIntensity(callback: CharacteristicSetCallback): void; getIsHigh(callback: CharacteristicSetCallback): void; getIsLow(callback: CharacteristicSetCallback): void; calculateIntensity(data: GriddyResponse, history: GriddyItem[]): number; defineLow(data: GriddyResponse, history: GriddyItem[]): boolean; defineHigh(data: GriddyResponse, history: GriddyItem[]): boolean; calculateLow(data: GriddyResponse, history: GriddyItem[]): number; calculateHigh(data: GriddyResponse): number; handleNoData(): void; } //# sourceMappingURL=platformAccessory.d.ts.map