Variable CompleteInstanceConst Complete Instance : MutableCluster < { attributes : { currentPosition : Attribute < number , any > ; multiPressMax : FixedAttribute < number , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; numberOfPositions : FixedAttribute < number , any > ; } ; events : { initialPress : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitch : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; longPress : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchLongPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; longRelease : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchLongPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; multiPressComplete : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; multiPressOngoing : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; shortRelease : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchRelease : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; switchLatched : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { latchingSwitch : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; } ; features : { latchingSwitch : BitFlag ; momentarySwitch : BitFlag ; momentarySwitchLongPress : BitFlag ; momentarySwitchMultiPress : BitFlag ; momentarySwitchRelease : BitFlag ; } ; id : 59 ; name : "Switch" ; revision : 1 ; } , [ ] > Type declaration Readonlyattributes : { currentPosition : Attribute < number , any > ; multiPressMax : FixedAttribute < number , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; numberOfPositions : FixedAttribute < number , any > ; } Readonlycurrent Position : Attribute < number , any > Readonlymulti Press Max : FixedAttribute < number , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlynumber Of Positions : FixedAttribute < number , any > Readonlyevents : { initialPress : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitch : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; longPress : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchLongPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; longRelease : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchLongPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; multiPressComplete : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; multiPressOngoing : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; shortRelease : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchRelease : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; switchLatched : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { latchingSwitch : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } ; } Readonlyinitial Press : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitch : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlylong Press : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchLongPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlylong Release : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchLongPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlymulti Press Complete : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlymulti Press Ongoing : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchMultiPress : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlyshort Release : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { momentarySwitchRelease : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlyswitch Latched : Event < TypeFromFields , any > & { isConditional : true ; mandatoryIf : [ ] | [ { latchingSwitch : boolean ; } ] ; optional : true ; optionalIf : [ ] | ConditionalFeatureList ; } Readonlyfeatures : { latchingSwitch : BitFlag ; momentarySwitch : BitFlag ; momentarySwitchLongPress : BitFlag ; momentarySwitchMultiPress : BitFlag ; momentarySwitchRelease : BitFlag ; } Readonlylatching Switch : BitFlag Readonlymomentary Switch : BitFlag Readonlymomentary Switch Long Press : BitFlag Readonlymomentary Switch Multi Press : BitFlag Readonlymomentary Switch Release : BitFlag Readonlyid : 59 Readonlyname : "Switch" Readonlyrevision : 1 Defined in packages/types/dist/esm/clusters/switch.d.ts:1018
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.