UNPKG

@smj0x/homebridge-shortcuts-buttons

Version:

Run any Apple Shortcut with just the tap of a button, and execute a custom unix command (or another shortcut!) after completion to handle its success/failure, using x-callback-url.

23 lines 1.02 kB
import { API, DynamicPlatformPlugin, Logger, PlatformConfig, Nullable, Service, Characteristic } from 'homebridge'; import { HSBConfig } from './config.js'; import { HSBPlatformAccessory } from './accessory.js'; import { HSBXCallbackUrlServer } from './server/index.js'; import { HSBUtils } from './utils.js'; import { ShortcutsRunner } from './shortcutsRunner'; export declare class HSBPlatform implements DynamicPlatformPlugin { readonly log: Logger; readonly api: API; readonly config: HSBConfig; readonly utils: HSBUtils; private readonly device; private shortcutsRunner; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; accessory: Nullable<HSBPlatformAccessory>; server: Nullable<HSBXCallbackUrlServer>; constructor(log: Logger, _config: PlatformConfig, api: API); configureAccessory(accessory: HSBPlatformAccessory): void; discoverDevices(): void; getShortcutsRunner(): ShortcutsRunner; } //# sourceMappingURL=platform.d.ts.map