A refrigerator represents a device that contains one or more cabinets that are capable of chilling or freezing food. Examples of consumer products that may make use of this device type include refrigerators, freezers, and wine coolers.

MatterSpecification.v13.Device § 13.2

interface RefrigeratorDevice {
    behaviors: {};
    defaults: StateOf<{}>;
    deviceClass: DeviceClassification;
    deviceRevision: number;
    deviceType: DeviceTypeId;
    name: "Refrigerator";
    requirements: typeof RefrigeratorRequirements;
    set(defaults: InputStateOf<{}>): With<For<{
        behaviors: {};
        deviceRevision: 1;
        deviceType: 112;
        name: "Refrigerator";
        requirements: typeof RefrigeratorRequirements;
    }>, {}>;
    with<const BL>(...behaviors: BL): With<For<{
        behaviors: {};
        deviceRevision: 1;
        deviceType: 112;
        name: "Refrigerator";
        requirements: typeof RefrigeratorRequirements;
    }>, With<{}, BL>>;
}

Hierarchy (view full)

Properties

behaviors: {}
defaults: StateOf<{}>

Access default state values.

deviceRevision: number
deviceType: DeviceTypeId
name
requirements: typeof RefrigeratorRequirements

Methods

  • Define an endpoint like this one with different defaults. Only updates values present in the input object.

    Parameters

    Returns With<For<{
        behaviors: {};
        deviceRevision: 1;
        deviceType: 112;
        name: "Refrigerator";
        requirements: typeof RefrigeratorRequirements;
    }>, {}>

  • Define an endpoint like this one with additional and/or replacement server behaviors.

    Type Parameters

    • const BL extends List

    Parameters

    • Rest...behaviors: BL

    Returns With<For<{
        behaviors: {};
        deviceRevision: 1;
        deviceType: 112;
        name: "Refrigerator";
        requirements: typeof RefrigeratorRequirements;
    }>, With<{}, BL>>