homebridge
    Preparing search index...

    Interface ClusterHandlerMap

    Maps known cluster names to their typed handler interfaces.

    Plugin developers get autocomplete for handler methods within each cluster. Handler argument types are derived from matter.js where possible, so they auto-update when the matter.js dependency is bumped.

    const accessory: MatterAccessory = {
    // ...
    handlers: {
    onOff: {
    on: async () => { await device.turnOn() },
    off: async () => { await device.turnOff() },
    },
    levelControl: {
    moveToLevel: async (args) => {
    // args is typed as LevelControl.MoveToLevelRequest
    await device.setBrightness(args?.level ?? 0)
    },
    },
    },
    }
    Index

    Properties

    colorControl: ColorControlHandlers
    fanControl: FanControlHandlers
    levelControl: LevelControlHandlers
    rvcCleanMode: RvcCleanModeHandlers
    rvcOperationalState: RvcOperationalStateHandlers
    rvcRunMode: RvcRunModeHandlers
    serviceArea: ServiceAreaHandlers
    thermostat: ThermostatHandlers
    valveConfigurationAndControl: ValveConfigurationAndControlHandlers
    windowCovering: WindowCoveringHandlers