import { PlatformAccessory, Service } from "homebridge"; import { LoxoneControlPlatform } from "./platform.js"; import { States } from "./loxone/types.js"; export declare class AccessoryBase { readonly platform: LoxoneControlPlatform; readonly accessory: PlatformAccessory; readonly identifier: string; service: Service | undefined; states: States; constructor(platform: LoxoneControlPlatform, accessory: PlatformAccessory, identifier: string); protected get modelName(): string; /** * Call immediately after sending a command that MUST change state — i.e. the * caller has already compared current vs. target and they differ. Loxone * echoes a status push for any real change, so silence within * COMMAND_ECHO_TIMEOUT proves the data path is dead and recovery starts at * once instead of waiting on the 20s socket / 600s silence watchdogs. * * Opt-in on purpose: never call this after a no-op (target === current) or a * momentary command (stop / FullUp / FullDown / shade / auto / NoAuto / * pushbuttons), because those legitimately produce no status update and would * trigger a needless recovery. See sendCommandSafe for the full list. */ protected expectEcho(): void; private setupAccessoryInformation; /** * Get initials from the device name (e.g. "Kitchen Blinds" → "KB"). */ protected get namePrefix(): string; /** * Set both Name and ConfiguredName on a service. * HomeKit uses ConfiguredName for display after pairing. */ protected setServiceName(service: Service, name: string): void; toggleState: () => Promise; setStateOn: () => Promise; setState: (newStates: States, stateText?: string) => void; }