Variable CompleteInstanceConst
CompleteInstance: MutableCluster<{ attributes: { currentPosition: Attribute<number, any>; multiPressMax: FixedAttribute<number, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitchMultiPress: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; numberOfPositions: FixedAttribute<number, any>; }; events: { initialPress: Event<TypeFromFields<{ newPosition: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitch: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; longPress: Event<TypeFromFields<{ newPosition: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitchLongPress: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; longRelease: Event<TypeFromFields<{ previousPosition: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitchLongPress: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; multiPressComplete: Event<TypeFromFields<{ previousPosition: FieldType<number>; totalNumberOfPressesCounted: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitchMultiPress: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; multiPressOngoing: Event<TypeFromFields<{ currentNumberOfPressesCounted: FieldType<number>; newPosition: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitchMultiPress: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; shortRelease: Event<TypeFromFields<{ previousPosition: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ momentarySwitchRelease: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; switchLatched: Event<TypeFromFields<{ newPosition: FieldType<number>; }>, any> & { isConditional: true; mandatoryIf: [] | [{ latchingSwitch: boolean; }]; optional: true; optionalIf: [] | ConditionalFeatureList<BitSchema>; }; }; features: { latchingSwitch: BitFlag; momentarySwitch: BitFlag; momentarySwitchLongPress: BitFlag; momentarySwitchMultiPress: BitFlag; momentarySwitchRelease: BitFlag; }; id: 59; name: "Switch"; revision: 1; }, []> = ... Type declaration
Readonly
attributes: {
currentPosition: Attribute<number, any>;
multiPressMax: FixedAttribute<number, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitchMultiPress: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
numberOfPositions: FixedAttribute<number, any>;
}
Readonly
events: {
initialPress: Event<TypeFromFields<{
newPosition: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitch: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
longPress: Event<TypeFromFields<{
newPosition: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitchLongPress: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
longRelease: Event<TypeFromFields<{
previousPosition: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitchLongPress: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
multiPressComplete: Event<TypeFromFields<{
previousPosition: FieldType<number>;
totalNumberOfPressesCounted: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitchMultiPress: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
multiPressOngoing: Event<TypeFromFields<{
currentNumberOfPressesCounted: FieldType<number>;
newPosition: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitchMultiPress: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
shortRelease: Event<TypeFromFields<{
previousPosition: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
momentarySwitchRelease: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
switchLatched: Event<TypeFromFields<{
newPosition: FieldType<number>;
}>, any> & {
isConditional: true;
mandatoryIf: [] | [{
latchingSwitch: boolean;
}];
optional: true;
optionalIf: [] | ConditionalFeatureList<BitSchema>;
};
}
Readonly
features: {
latchingSwitch: BitFlag;
momentarySwitch: BitFlag;
momentarySwitchLongPress: BitFlag;
momentarySwitchMultiPress: BitFlag;
momentarySwitchRelease: BitFlag;
}
Readonly
latchingSwitch: BitFlag
Readonly
momentarySwitch: BitFlag
Readonly
momentarySwitchLongPress: BitFlag
Readonly
momentarySwitchMultiPress: BitFlag
Readonly
momentarySwitchRelease: BitFlag
Readonly
id: 59
Readonly
name: "Switch"
Readonly
revision: 1
Indicates the position of the switch. The valid range is zero to NumberOfPositions-1. CurrentPosition value 0 shall be assigned to the default position of the switch: for example the "open" state of a rocker switch, or the "idle" state of a push button switch.