UNPKG

@dotwee/homebridge-z2m

Version:

Expose your Zigbee devices to HomeKit with ease, by integrating Zigbee2MQTT with Homebridge.

12 lines 1.02 kB
import { Characteristic, Service, WithUUID } from 'homebridge'; import { ExposesEntry } from './z2mModels'; export declare function errorToString(e: unknown): string; export declare function getOrAddCharacteristic(service: Service, characteristic: WithUUID<{ new (): Characteristic; }>): Characteristic; export declare function roundToDecimalPlaces(input: number, decimalPlaces: number): number; export declare function copyExposesRangeToCharacteristic(exposes: ExposesEntry, characteristic: Characteristic): boolean; export declare function groupByEndpoint<Entry extends ExposesEntry>(entries: Entry[]): Map<string | undefined, Entry[]>; export declare function getAllEndpoints(entries: ExposesEntry[], parentEndpoint?: string): (string | undefined)[]; export declare function sanitizeAndFilterExposesEntries(input: ExposesEntry[], filter?: (entry: ExposesEntry) => boolean, valueFilter?: (entry: ExposesEntry) => string[], parentEndpoint?: string | undefined): ExposesEntry[]; //# sourceMappingURL=helpers.d.ts.map