An oven represents a device that contains one or more cabinets, and optionally a single cooktop, that are all capable of heating food. Examples of consumer products implementing this device type include ovens, wall ovens, convection ovens, etc.

MatterSpecification.v13.Device § 13.9

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

Hierarchy (view full)

Properties

behaviors: {}
defaults: StateOf<{}>

Access default state values.

deviceRevision: number
deviceType: DeviceTypeId
name
requirements: typeof OvenRequirements

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: 123;
        name: "Oven";
        requirements: typeof OvenRequirements;
    }>, {}>

  • 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: 123;
        name: "Oven";
        requirements: typeof OvenRequirements;
    }>, With<{}, BL>>