Action priorities define wether or not an action will be trigered in the system. The priority of the triggered action is compared to the priority of the previous action. If it is lower then the vertex controller can’t do the desired action. If the priority of the current action is greater or equal to the previous one then this action can be done.
Each action triggered within the E2D system (button push, detecting the presence) has its own individual default priority.
The priorities have values from 0 to 255, but values from 245 to 255 have a particular functions. After performing these actions, the priority is to reset according to this formula:
where:
PN - the priority saved after the action had been performed
PP - the previous priority of the action
PA - the current priority of the action
The table below shows that for prtiority numbers from 0 to 244 the priority level will stay the same after the action is performed. This means that for logic purposes the number 245 to 255 are most important and after they are performed their prority changes to a much lower one as defined in the table.
Priority of action before being performed | Priority of action after being performed |
0 | 0 |
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
… | … |
242 | 242 |
243 | 243 |
244 | 244 |
245 | 10 |
246 | 9 |
247 | 8 |
248 | 7 |
… | … |
253 | 2 |
254 | 1 |
255 | 0 |
In the E2D system, we have a set of default priorities for typical actions. They are listed in the table below:
Event | Default priority |
---|---|
Single button | 254 |
Toggle button ON/OFF | 254 |
Triple button 1/2/3 | 254 |
Direct value | 254 |
Dim button ON/HOLD UP/HOLD DOWN/OFF | 254 |
Input Unit short press/long press | 254 |
CIRCADIAN | 0 |
Motion sensor Presence | 255 |
Motion senor Transition | 0 |
Motion sensor no presence | 254 |
Daylight harvesting | 0 |
Example 1
The action coming from the push-button has a priority equal to 2. Previously to push-button, there was another action that had a priority equal also to 2. The priorities are equal, so push-button action can be done.
[{"id":"82f23d3.6d714c","type":"vertex action","z":"48c64e7.cdb30b","name":"","typeButton":"toggle","bPayload":{"ON":{"action":"maxlevel","group":"de782b48a32127ca0261e36a119e8ebf","param":null,"priority":"2"},"OFF":{"action":"minlevel","group":"de782b48a32127ca0261e36a119e8ebf","param":null,"priority":"2"}},"bState":false,"defaultpriority":false,"x":490,"y":100,"wires":[["3f884023.a9f3e"]]}]
if, for example, the priority value is changed to 1 in one of the actions, it will not be possible to change the status of our luminaire with lower priority value.
Another example
[{"id":"48c64e7.cdb30b","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"3f884023.a9f3e","type":"vertex cluster","z":"48c64e7.cdb30b","rate":90,"x":690,"y":180,"wires":[]},{"id":"c1070445.623b28","type":"dali2devs","z":"48c64e7.cdb30b","name":"","uid":"00E19278B125080C63","dali2dev":"0","devStatus":2,"instanceType":1,"dali2t1":90,"dali2t2":"","instanceData":{"InstanceStatusFlags":2,"InstanceType":1,"Resolution":1,"InstanceError":false,"InstanceActive":true,"InstanceGroup0":255,"InstanceGroup1":255,"InstanceGroup2":255,"EventScheme":2,"EventPriority":3,"EventFilter":84,"EventFilterSize":1,"FeatureType":[],"InputValue":0,"InstanceDetails":{"ShortTimer":25,"ShortTimerMin":10,"DoubleTimer":0,"DoubleTimerMin":10,"RepeatTimer":8,"StuckTimer":20},"DataModelRecipe":["Dali2Instance301_config"],"INSTNR":0},"mode":"normal","x":270,"y":100,"wires":[["82f23d3.6d714c"]]},{"id":"82f23d3.6d714c","type":"vertex action","z":"48c64e7.cdb30b","name":"","typeButton":"toggle","bPayload":{"ON":{"action":"maxlevel","group":"de782b48a32127ca0261e36a119e8ebf","param":null,"priority":"254"},"OFF":{"action":"minlevel","group":"de782b48a32127ca0261e36a119e8ebf","param":null,"priority":"254"}},"bState":false,"defaultpriority":false,"x":490,"y":100,"wires":[["3f884023.a9f3e"]]},{"id":"caee1607.c1bbe8","type":"vertex action","z":"48c64e7.cdb30b","name":"","typeButton":"motionsensor","bPayload":{"PRESENCE":{"action":"setbrightness","group":"de782b48a32127ca0261e36a119e8ebf","param":"50","priority":"255"},"TRANSITION":{"action":"noreact","group":"de782b48a32127ca0261e36a119e8ebf","param":null,"priority":"0"},"NOPRESENCE":{"action":"setbrightness","group":"de782b48a32127ca0261e36a119e8ebf","param":"0","priority":"254"}},"bState":false,"defaultpriority":false,"x":490,"y":220,"wires":[["3f884023.a9f3e"]]},{"id":"81f67286.ec559","type":"dali2devs","z":"48c64e7.cdb30b","name":"SENSOR","uid":"003A7CD9CDF782494F","dali2dev":"0","devStatus":2,"instanceType":3,"dali2t1":"10","dali2t2":"","instanceData":{"InstanceStatusFlags":2,"InstanceType":3,"Resolution":2,"InstanceError":false,"InstanceActive":true,"InstanceGroup0":255,"InstanceGroup1":255,"InstanceGroup2":255,"EventScheme":2,"EventPriority":4,"EventFilter":27,"EventFilterSize":3,"FeatureType":[],"InputValue":255,"InstanceDetails":{"DeadtimeTimer":2,"HoldTimer":1,"ReportTimer":20,"Catching":0},"DataModelRecipe":["Dali2Instance303_config"],"INSTNR":0},"mode":"normal","x":260,"y":220,"wires":[["caee1607.c1bbe8"]]},{"id":"204da3d1.fb104c","type":"comment","z":"48c64e7.cdb30b","name":"Priority 254","info":"","x":490,"y":60,"wires":[]},{"id":"29fc36ce.5890ca","type":"comment","z":"48c64e7.cdb30b","name":"Priority 255 at PRESENCE","info":"","x":470,"y":180,"wires":[]}]
Add Comment