UNPKG

@olegivaniv/n8n-nodes-overkiz-tahoma

Version:

This is an n8n community node. It lets you use Overkiz (Tahoma) in your n8n workflows.

81 lines (80 loc) 3.52 kB
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IPollFunctions } from 'n8n-workflow'; import type { Command } from 'overkiz-api'; import { API } from 'overkiz-api'; declare const supportedDeviceCommands: { DimmerLight: { commands: { value: string; name: string; commands: (executionCtx: IExecuteFunctions) => Command[]; }[]; }; DimmerHueSatOrCTLight: { commands: { value: string; name: string; commands: (executionCtx: IExecuteFunctions) => Command[]; }[]; }; DimmerColorTemperatureLight: { commands: { value: string; name: string; commands: (executionCtx: IExecuteFunctions) => Command[]; }[]; }; PositionableExteriorVenetianBlind: { commands: { value: string; name: string; commands: (executionCtx: IExecuteFunctions) => Command[]; }[]; }; }; export declare const supportedDeviceTypes: string[]; export declare function getOverkizApi(this: IExecuteFunctions | IPollFunctions | IHookFunctions | ILoadOptionsFunctions): Promise<API>; export declare function getAllObjects(this: IHookFunctions | IPollFunctions | ILoadOptionsFunctions | IExecuteFunctions): Promise<{ name: string; enabled: boolean; available: boolean; type: number; URL: string; widget: string; states: import("overkiz-api").Entry[]; oid: string; definition: import("overkiz-api").Definition; attributes: import("overkiz-api").Entry[]; exec: (...commands: Command[]) => Promise<boolean>; refresh: (stateName: string) => Promise<import("overkiz-api").Entry | undefined>; refreshAll: () => Promise<import("overkiz-api").Entry[]>; getStateValue: (stateName: string) => any; }[]>; export declare function getUsedUIClasses(this: IHookFunctions | IPollFunctions | ILoadOptionsFunctions | IExecuteFunctions): Promise<string[]>; export declare function getSingleObject(this: IHookFunctions | IPollFunctions | ILoadOptionsFunctions | IExecuteFunctions, objectURL: string): Promise<{ name: string; enabled: boolean; available: boolean; type: number; URL: string; widget: string; states: import("overkiz-api").Entry[]; oid: string; definition: import("overkiz-api").Definition; attributes: import("overkiz-api").Entry[]; exec: (...commands: Command[]) => Promise<boolean>; refresh: (stateName: string) => Promise<import("overkiz-api").Entry | undefined>; refreshAll: () => Promise<import("overkiz-api").Entry[]>; getStateValue: (stateName: string) => any; } | undefined>; export declare function getObjectAvailableStates(this: IHookFunctions | IPollFunctions | ILoadOptionsFunctions | IExecuteFunctions, objectURL: string): Promise<import("overkiz-api").StateDefinition[]>; export declare function getObjectAvailableCommands(this: IHookFunctions | IPollFunctions | ILoadOptionsFunctions | IExecuteFunctions, objectUiClass: keyof typeof supportedDeviceCommands): Promise<{ value: string; name: string; commands: (executionCtx: IExecuteFunctions) => Command[]; }[] | { value: string; name: string; commands: (executionCtx: IExecuteFunctions) => Command[]; }[]>; export declare function getObjectCurrentState(this: IHookFunctions | IPollFunctions | ILoadOptionsFunctions | IExecuteFunctions, objectURL: string): Promise<import("overkiz-api").Entry[]>; export {};