A humidity sensor (in most cases a Relative humidity sensor) reports humidity measurements.

MatterSpecification.v13.Device § 7.7

interface HumiditySensorDevice {
    behaviors: {
        identify: typeof IdentifyServer;
    } & {
        relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
    };
    defaults: StateOf<{
        identify: typeof IdentifyServer;
    } & {
        relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
    }>;
    deviceClass: DeviceClassification;
    deviceRevision: number;
    deviceType: DeviceTypeId;
    name: "HumiditySensor";
    requirements: typeof HumiditySensorRequirements;
    set(defaults: InputStateOf<{
        identify: typeof IdentifyServer;
    } & {
        relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
    }>): With<For<{
        behaviors: {
            identify: typeof IdentifyServer;
        } & {
            relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
        };
        deviceRevision: 2;
        deviceType: 775;
        name: "HumiditySensor";
        requirements: typeof HumiditySensorRequirements;
    }>, {
        identify: typeof IdentifyServer;
    } & {
        relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
    }>;
    with<const BL>(...behaviors: BL): With<For<{
        behaviors: {
            identify: typeof IdentifyServer;
        } & {
            relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
        };
        deviceRevision: 2;
        deviceType: 775;
        name: "HumiditySensor";
        requirements: typeof HumiditySensorRequirements;
    }>, With<{
        identify: typeof IdentifyServer;
    } & {
        relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
    }, BL>>;
}

Hierarchy (view full)

Properties

behaviors: {
    identify: typeof IdentifyServer;
} & {
    relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
}
defaults: StateOf<{
    identify: typeof IdentifyServer;
} & {
    relativeHumidityMeasurement: typeof RelativeHumidityMeasurementServer;
}>

Access default state values.

deviceRevision: number
deviceType: DeviceTypeId
name
requirements: typeof HumiditySensorRequirements

Methods