MomentarySwitchLongPressComponent: {
    events: {
        longPress: Event<TypeFromFields, any>;
        longRelease: Event<TypeFromFields, any>;
    };
}

A SwitchCluster supports these elements if it supports feature MomentarySwitchLongPress.

Type declaration

  • Readonlyevents: {
        longPress: Event<TypeFromFields, any>;
        longRelease: Event<TypeFromFields, any>;
    }
    • ReadonlylongPress: Event<TypeFromFields, any>

      This event shall be generated, when the momentary switch has been pressed for a "long" time (this time interval is manufacturer determined (e.g. since it depends on the switch physics)).

      MatterSpecification.v13.Cluster § 1.13.6.3

    • ReadonlylongRelease: Event<TypeFromFields, any>

      This event shall be generated, when the momentary switch has been released (after debouncing) and after having been pressed for a long time, i.e. this event shall be generated when the switch is released if a LongPress event has been generated since the previous InitialPress event. Also see Section 1.13.7, “Sequence of generated events”.

      MatterSpecification.v13.Cluster § 1.13.6.5