@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.
15 lines • 616 B
TypeScript
import { PlatformAccessory, CharacteristicValue } from 'homebridge';
import { HSBPlatform } from './platform';
export declare class ShortcutButtonAccessory {
private readonly platform;
private readonly accessory;
private service;
constructor(platform: HSBPlatform, accessory: PlatformAccessory);
/**
* Handle "SET" requests from HomeKit
* These are sent when the user changes the state of an accessory, for example, turning on a Light bulb.
*/
setOn(value: CharacteristicValue): Promise<void>;
runShortcut(): Promise<void>;
}
//# sourceMappingURL=platformAccessory.d.ts.map