homebridge-freeathome-local-api
Version:
Control your free@home setup using the local API provided by your System Access Point
24 lines • 1.43 kB
TypeScript
import { Characteristic, CharacteristicValue, PlatformAccessory, Service, WithUUID } from "homebridge";
import { FreeAtHomeContext } from "./freeAtHomeContext.js";
import { FreeAtHomeHomebridgePlatform } from "./platform.js";
/** The abstract base class for all free@home accessories.*/
export declare abstract class FreeAtHomeAccessory {
protected readonly platform: FreeAtHomeHomebridgePlatform;
protected readonly accessory: PlatformAccessory<FreeAtHomeContext>;
/** The serial number consisting of the free@home device serial and the channel ID. */
protected readonly serialNumber: string;
/**
* Constructs a new free@home accessory instance.
* @param platform The free@home Homebridge platform controlling the accessory
* @param accessory The platform accessory.
*/
constructor(platform: FreeAtHomeHomebridgePlatform, accessory: PlatformAccessory<FreeAtHomeContext>);
/**
* Asynchonously updates accessory characteristics from a datapoint.
* @param datapoint The updated data point.
* @param value A string representing the new value.
*/
abstract updateDatapoint(datapoint: string, value: string): void;
protected doUpdateDatapoint(acccessoryDisplayType: string, service: Service, characteristic: WithUUID<new () => Characteristic>, characteristicValue: CharacteristicValue): void;
}
//# sourceMappingURL=freeAtHomeAccessory.d.ts.map