UNPKG

homebridge

Version:
39 lines 1.65 kB
/** * ValveConfigurationAndControl Cluster Behavior * * Handles open/close commands for water valves and irrigation controllers. */ import { ValveConfigurationAndControlServer } from '@matter/main/behaviors/valve-configuration-and-control'; import { ValveConfigurationAndControl } from '@matter/main/clusters/valve-configuration-and-control'; /** * Default ValveConfigurationAndControl Server. * * matter.js's base ValveConfigurationAndControlServer does NOT implement the * open/close commands — invoking them throws NotImplementedError. This default * implementation reflects the command in the cluster state, so valves without * plugin handlers still respond to open/close from controllers and the UI. */ export declare class DefaultValveConfigurationAndControlServer extends ValveConfigurationAndControlServer { open(_request: ValveConfigurationAndControl.OpenRequest): Promise<void>; close(): Promise<void>; } /** * Custom ValveConfigurationAndControl Server that calls plugin handlers. * Extends the default server so the super.open()/super.close() calls update * the cluster state (the matter.js base would throw NotImplementedError). */ export declare class HomebridgeValveConfigurationAndControlServer extends DefaultValveConfigurationAndControlServer { /** * Get the registry for this behavior's endpoint */ private getRegistry; /** * Handle 'open' command */ open(request: ValveConfigurationAndControl.OpenRequest): Promise<void>; /** * Handle 'close' command */ close(): Promise<void>; } //# sourceMappingURL=ValveConfigurationAndControlBehavior.d.ts.map