DoorPositionSensorComponent: {
    attributes: {
        doorClosedEvents: OptionalWritableAttribute<number, any>;
        doorOpenEvents: OptionalWritableAttribute<number, any>;
        doorState: Attribute<DoorLock.DoorState | null, any>;
        openPeriod: OptionalWritableAttribute<number, any>;
    };
    events: {
        doorStateChange: Event<TypeFromFields, any>;
    };
}

A DoorLockCluster supports these elements if it supports feature DoorPositionSensor.

Type declaration

  • Readonlyattributes: {
        doorClosedEvents: OptionalWritableAttribute<number, any>;
        doorOpenEvents: OptionalWritableAttribute<number, any>;
        doorState: Attribute<DoorLock.DoorState | null, any>;
        openPeriod: OptionalWritableAttribute<number, any>;
    }
    • ReadonlydoorClosedEvents: OptionalWritableAttribute<number, any>

      This attribute shall hold the number of door closed events that have occurred since it was last zeroed.

      MatterSpecification.v13.Cluster § 5.2.9.7

    • ReadonlydoorOpenEvents: OptionalWritableAttribute<number, any>

      This attribute shall hold the number of door open events that have occurred since it was last zeroed.

      MatterSpecification.v13.Cluster § 5.2.9.6

    • ReadonlydoorState: Attribute<DoorLock.DoorState | null, any>

      Indicates the current door state as defined in DoorStateEnum.

      Null only if an internal error prevents the retrieval of the current door state.

      MatterSpecification.v13.Cluster § 5.2.9.5

    • ReadonlyopenPeriod: OptionalWritableAttribute<number, any>

      This attribute shall hold the number of minutes the door has been open since the last time it transitioned from closed to open.

      MatterSpecification.v13.Cluster § 5.2.9.8

  • Readonlyevents: {
        doorStateChange: Event<TypeFromFields, any>;
    }
    • ReadonlydoorStateChange: Event<TypeFromFields, any>

      The door lock server sends out a DoorStateChange event when the door lock door state changes.

      MatterSpecification.v13.Cluster § 5.2.11.2