MomentarySwitchComponent: {
    events: {
        initialPress: Event<TypeFromFields, any>;
    };
}

A SwitchCluster supports these elements if it supports feature MomentarySwitch.

Type declaration

  • Readonlyevents: {
        initialPress: Event<TypeFromFields, any>;
    }
    • ReadonlyinitialPress: Event<TypeFromFields, any>

      This event shall be generated, when the momentary switch starts to be pressed (after debouncing).

      MatterSpecification.v13.Cluster § 1.13.6.2