/
(Classic) Examples of typical programs

This documentation applies to the E2D system using VERTEX 2 & 3 with CLASSIC UI and software versions up to 3.1.29. If you have VERTEX 3 with software version 3.1.30 or higher, go to Glamox Ethernet2DALI

(Classic) Examples of typical programs

Below you have a database of typical programs ready to import during commissioning. Read instructions on how to import programs into your project here.

Remember that after importing the program from the list of programs below, you must configure it for your installation. 

List of programs

Sending information about the light intensity to the BMS 

[{"id":"b6999ee0.9f51f","type":"comment","z":"7400871b.0e1298","name":"Choose light sensor","info":"","x":210,"y":200,"wires":[]},{"id":"f3a7ef27.34ce3","type":"lightsensors","z":"7400871b.0e1298","name":"Light sensor","uid":"FC9E21087BFD7461","x":230,"y":260,"wires":[["ca77b833.89928"]]},{"id":"ca77b833.89928","type":"change","z":"7400871b.0e1298","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.LUX","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":260,"wires":[["743410e7.196f3"]]},{"id":"26dde044.501fe","type":"modbus-write","z":"7400871b.0e1298","name":"Register: 500","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"500","quantity":"1","server":"c5a231d8.689ae","x":780,"y":260,"wires":[[],[]]},{"id":"743410e7.196f3","type":"rbe","z":"7400871b.0e1298","name":"","func":"rbe","gap":"","start":"","inout":"out","x":620,"y":260,"wires":[["26dde044.501fe"]]},{"id":"2aa6eaf0.af4496","type":"comment","z":"7400871b.0e1298","name":"Select Vertex's IP register number","info":"","x":820,"y":200,"wires":[]},{"id":"276cff0a.8b3888","type":"comment","z":"7400871b.0e1298","name":"Sending information about the light intensity to the BMS","info":"","x":560,"y":140,"wires":[]},{"id":"c5a231d8.689ae","type":"modbus-client","z":"","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]

Group control 0-100 with BMS - when there is only one Vertex

[{"id":"dff8e3cb.ca5bd8","type":"vertex action","z":"7400871b.0e1298","name":"Grupa1","typeButton":"directv","bPayload":{"action":"setbrightness","group":"6a96a1eef91dff3a1a5dc9f9b6b23af5","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":670,"y":480,"wires":[["a5fc677a.cf8c18"]]},{"id":"650fe153.51edd8","type":"vertexmodbus","z":"7400871b.0e1298","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":320,"y":480,"wires":[["5c20fd8e.791664"]]},{"id":"5c20fd8e.791664","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"100","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":480,"wires":[["dff8e3cb.ca5bd8"]]},{"id":"a5fc677a.cf8c18","type":"link out","z":"7400871b.0e1298","name":"Do Vertex Cluster","links":["3a9d1153.3c884e"],"x":855,"y":480,"wires":[]},{"id":"803960fe.cda748","type":"comment","z":"7400871b.0e1298","name":"Select a control group (GR1)","info":"","x":700,"y":420,"wires":[]},{"id":"1d79a1f1.e64dbe","type":"comment","z":"7400871b.0e1298","name":"Select register number (+1) for group control","info":"","x":290,"y":420,"wires":[]},{"id":"1df7c6d9.313de1","type":"comment","z":"7400871b.0e1298","name":"Group control 0-100 with BMS - when there is only one Vertex","info":"","x":520,"y":360,"wires":[]}]

Readout of the current level of luminaire brightness (+-2%)

[{"id":"3c92fd1.95e1f02","type":"vertex feedback","z":"31967c5.8c35184","name":"Grupa 1","primarygroup":"6a96a1eef91dff3a1a5dc9f9b6b23af5","x":300,"y":420,"wires":[["80b4b050.bf6c8"]]},{"id":"80b4b050.bf6c8","type":"function","z":"31967c5.8c35184","name":"","func":"var tmp;\nfor(var gr in msg.payload){\n\ttmp = msg.payload[gr].value\n}\nmsg.payload = tmp\n\nif(msg.payload!==null )\n{\nif(msg.payload==254)\n msg.payload=253;\n var valueDec = Math.pow(10,(((msg.payload-1)/84)-1));\n msg.payload =Math.round(valueDec);\n return msg;\n\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":420,"wires":[["9576df09.3b29c8"]]},{"id":"9576df09.3b29c8","type":"rbe","z":"31967c5.8c35184","name":"","func":"rbe","gap":"","start":"","inout":"out","x":810,"y":420,"wires":[["eca8eb3e.b9b9e"]]},{"id":"eca8eb3e.b9b9e","type":"modbus-write","z":"31967c5.8c35184","name":"Register: 820","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"820","quantity":"1","server":"1a9aaf8.230b951","emptyMsgOnFail":false,"keepMsgProperties":false,"x":1030,"y":420,"wires":[[],[]]},{"id":"dc7508ef.78328","type":"comment","z":"31967c5.8c35184","name":"Configure the Modbus server and select the register (0-1000)","info":"","x":1160,"y":380,"wires":[]},{"id":"ff1bb50.cb5dec8","type":"comment","z":"31967c5.8c35184","name":"Select a group for feedback (GR1)","info":"","x":360,"y":380,"wires":[]},{"id":"9b234620.cccc3","type":"comment","z":"31967c5.8c35184","name":"Feedback to BMS on the status of the group","info":"","x":690,"y":380,"wires":[]},{"id":"1a9aaf8.230b951","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]

Feedback to BMS on the status of the group - when you have multiple Vertexes on site

[{"id":"797c527c.5c317c","type":"vertex feedback","z":"31967c5.8c35184","name":"Grupa 1","primarygroup":"6a96a1eef91dff3a1a5dc9f9b6b23af5","x":300,"y":780,"wires":[["1c3d4bc9.c318dc"]]},{"id":"6b47811.b6b17","type":"function","z":"31967c5.8c35184","name":"","func":"var tmp;\nfor(var gr in msg.payload){\n\ttmp = msg.payload[gr].value\n}\nmsg.payload = tmp\n\nif(msg.payload!==null )\n{\nif(msg.payload==254)\n msg.payload=253;\n var valueDec = Math.pow(10,(((msg.payload-1)/84)-1));\n msg.payload =Math.round(valueDec);\n return msg;\n\n}\n","outputs":1,"noerr":0,"x":910,"y":780,"wires":[["4b2af1ad.09fac"]]},{"id":"4b2af1ad.09fac","type":"rbe","z":"31967c5.8c35184","name":"","func":"rbe","gap":"","start":"","inout":"out","x":1110,"y":780,"wires":[["4ae366c1.c61c78"]]},{"id":"4ae366c1.c61c78","type":"modbus-write","z":"31967c5.8c35184","name":"Register 645","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"645","quantity":"1","server":"2f279e92.4cc012","emptyMsgOnFail":false,"keepMsgProperties":false,"x":1310,"y":780,"wires":[[],[]]},{"id":"b293800c.8266c8","type":"comment","z":"31967c5.8c35184","name":"Configure the Modbus server and select the register (0-1000)","info":"","x":1340,"y":740,"wires":[]},{"id":"c707b74c.873cd8","type":"comment","z":"31967c5.8c35184","name":"Select a group for feedback (GR1)","info":"","x":360,"y":740,"wires":[]},{"id":"1c3d4bc9.c318dc","type":"vertex filterByVertex","z":"31967c5.8c35184","selectedVertex":"10.199.1.15","x":640,"y":780,"wires":[["6b47811.b6b17"]]},{"id":"69d8944b.8193cc","type":"comment","z":"31967c5.8c35184","name":"Select the Vertex IP to control the group","info":"","x":670,"y":740,"wires":[]},{"id":"613931fb.bb4a48","type":"comment","z":"31967c5.8c35184","name":"Feedback to BMS on the status of the group","info":"","x":950,"y":720,"wires":[]},{"id":"2f279e92.4cc012","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]

Group control in the range 0-100 with BMS - when there are several Vertexes

[{"id":"75021f8c.7e7328","type":"comment","z":"7400871b.0e1298","name":"Group control in the range 0-100 with BMS - when there are several Vertexes ","info":"","x":650,"y":780,"wires":[]},{"id":"99fbbae.cd2f248","type":"vertex action","z":"7400871b.0e1298","name":"Grupa1","typeButton":"directv","bPayload":{"action":"setbrightness","group":"6a96a1eef91dff3a1a5dc9f9b6b23af5","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":930,"y":900,"wires":[["e9a93cd0.4cd178"]]},{"id":"d6a2accf.97166","type":"vertexmodbus","z":"7400871b.0e1298","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":260,"y":900,"wires":[["93beef5c.47b5b"]]},{"id":"37b1ac1a.9dd05c","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"100","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":900,"wires":[["99fbbae.cd2f248"]]},{"id":"e9a93cd0.4cd178","type":"link out","z":"7400871b.0e1298","name":"Do Vertex Cluster","links":["3a9d1153.3c884e"],"x":1115,"y":900,"wires":[]},{"id":"bff1863a.c7c4d","type":"comment","z":"7400871b.0e1298","name":"Select the group to control (GR1)","info":"","x":970,"y":840,"wires":[]},{"id":"6e22e126.9d83d8","type":"comment","z":"7400871b.0e1298","name":"Select register number (+1) for group control","info":"","x":230,"y":840,"wires":[]},{"id":"93beef5c.47b5b","type":"vertex filterByVertex","z":"7400871b.0e1298","selectedVertex":"10.0.12.254","x":520,"y":900,"wires":[["37b1ac1a.9dd05c"]]},{"id":"49608d16.7d9054","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP to control the group","info":"","x":580,"y":840,"wires":[]}]

Group control through BMS scenes - when there are several Vertexes

[{"id":"b27e3596.ef8348","type":"vertex action","z":"7400871b.0e1298","name":"GR1","typeButton":"single","bPayload":{"action":"recallscene","group":"6a96a1eef91dff3a1a5dc9f9b6b23af5","param":"2","priority":"254"},"bState":"","defaultpriority":true,"x":860,"y":1340,"wires":[["5981856a.a113b4"]]},{"id":"fd6e5973.180cf8","type":"vertexmodbus","z":"7400871b.0e1298","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":200,"y":1360,"wires":[["a1d46afe.7b74"]]},{"id":"54309834.bf8158","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":1360,"wires":[["b27e3596.ef8348"],["7cd2ac3d.f3c544"]]},{"id":"a1d46afe.7b74","type":"vertex filterByVertex","z":"7400871b.0e1298","selectedVertex":"10.0.12.254","x":440,"y":1360,"wires":[["54309834.bf8158"]]},{"id":"7cd2ac3d.f3c544","type":"vertex action","z":"7400871b.0e1298","name":"GR1","typeButton":"single","bPayload":{"action":"recallscene","group":null,"param":"12","priority":"254"},"bState":"","defaultpriority":true,"x":860,"y":1380,"wires":[["5981856a.a113b4"]]},{"id":"5981856a.a113b4","type":"link out","z":"7400871b.0e1298","name":"","links":["2f406ad4.313f76"],"x":1015,"y":1360,"wires":[]},{"id":"bdc69b38.dfb668","type":"comment","z":"7400871b.0e1298","name":"Group control through BMS scenes - when there are several Vertexes ","info":"","x":630,"y":1220,"wires":[]},{"id":"2e09f184.876ede","type":"comment","z":"7400871b.0e1298","name":"Select the group to control (GR1) and the scene","info":"","x":1020,"y":1280,"wires":[]},{"id":"4fb338f4.d14cc","type":"comment","z":"7400871b.0e1298","name":"Select register number (+1) for group control","info":"","x":230,"y":1280,"wires":[]},{"id":"de3c5342.9900f","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP to control the group","info":"","x":580,"y":1280,"wires":[]}]

Feedback to the BMS about the status of the group's luminaires (scene controlled)

[{"id":"1e78aeb.f3ae451","type":"function","z":"7400871b.0e1298","name":"","func":"var tmp;\nfor(var gr in msg.payload){\n\n\tif (msg.payload[gr].valueType ==\"scene\")\n\t{\n tmp = msg.payload[gr].value\n msg.payload = tmp\n return msg;\n\t}\n\t\n}\n\n","outputs":1,"noerr":0,"x":530,"y":1640,"wires":[["6a0f4a6b.03c93c"]]},{"id":"a8e3241.e50d758","type":"modbus-write","z":"7400871b.0e1298","name":"Register 610","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"610","quantity":"1","server":"abc04e9a.d0ba8","x":990,"y":1640,"wires":[[],[]]},{"id":"84661523.8119f8","type":"vertex filterByVertex","z":"7400871b.0e1298","selectedVertex":"10.0.12.254","x":360,"y":1640,"wires":[["1e78aeb.f3ae451"]]},{"id":"5cbeb5ea.a075a4","type":"change","z":"7400871b.0e1298","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"2","fromt":"num","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"12","fromt":"num","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":1640,"wires":[["a8e3241.e50d758"]]},{"id":"6a0f4a6b.03c93c","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"12","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":650,"y":1640,"wires":[["5cbeb5ea.a075a4"],["5cbeb5ea.a075a4"]]},{"id":"e6d8cef6.f6e4f8","type":"vertex feedback","z":"7400871b.0e1298","name":"318","primarygroup":"bf68fe84c780a52411ba59c48e619134","x":180,"y":1640,"wires":[["84661523.8119f8"]]},{"id":"98639d96.ef733","type":"comment","z":"7400871b.0e1298","name":"Select a group for feedback (GR1)","info":"","x":220,"y":1580,"wires":[]},{"id":"a4d52d22.f4b348","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP to control the group","info":"","x":640,"y":1580,"wires":[]},{"id":"550d8e35.6344d","type":"comment","z":"7400871b.0e1298","name":"Feedback to the BMS about the status of the group's luminaires (scene controlled)","info":"","x":640,"y":1520,"wires":[]},{"id":"82b64eda.76a09","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP register number","info":"","x":1110,"y":1580,"wires":[]},{"id":"abc04e9a.d0ba8","type":"modbus-client","z":"","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]

Triggering a relay in case of an emergency lighting error (or any other error in Vertex)

[{"id":"9ae218da.bbccb8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"e2bee68.0ae2e18","type":"modbus-read","z":"9ae218da.bbccb8","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"","dataType":"InputRegister","adr":"14","quantity":"1","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"f03d0f71.4697","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":170,"y":440,"wires":[["783e490c.d96fd8","28b15f9b.e8bfd"],[]]},{"id":"783e490c.d96fd8","type":"debug","z":"9ae218da.bbccb8","name":"Modbus","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":420,"y":320,"wires":[]},{"id":"28b15f9b.e8bfd","type":"function","z":"9ae218da.bbccb8","name":"emergency_lighting_error_info","func":"msg.payload=msg.payload[0]\nvar count = msg.payload.toString(2);\nvar leng = count.length;\nvar zeros =[];\n\nfor(var i = 0; i <(16-leng); i++)\n{\nzeros = zeros+ \"0\"\n}\ncount=zeros+count;\n\nmsg.payload =count.slice(7, 8)\n//msg.payload =count\nmsg.payload=parseInt(msg.payload)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":440,"wires":[["28a2b91.bb01a46","769b5cb9.c9dff4"]]},{"id":"28a2b91.bb01a46","type":"switch","z":"9ae218da.bbccb8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":460,"wires":[["9d8c11d3.9d2dc"],["e5ce2a1d.cc5788"]]},{"id":"769b5cb9.c9dff4","type":"debug","z":"9ae218da.bbccb8","name":"Funksjon","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":900,"y":280,"wires":[]},{"id":"9d8c11d3.9d2dc","type":"vertex action","z":"9ae218da.bbccb8","name":"","typeButton":"single","bPayload":{"action":"maxlevel","group":null,"param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":1150,"y":440,"wires":[[]]},{"id":"e5ce2a1d.cc5788","type":"vertex action","z":"9ae218da.bbccb8","name":"","typeButton":"single","bPayload":{"action":"off","group":null,"param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":1150,"y":480,"wires":[[]]},{"id":"1ba1b336.b3ed7d","type":"comment","z":"9ae218da.bbccb8","name":"Configure the modbus server","info":"","x":160,"y":360,"wires":[]},{"id":"c68f378c.62ad08","type":"comment","z":"9ae218da.bbccb8","name":"View the message sent by Modbus read node","info":"","x":490,"y":280,"wires":[]},{"id":"6f701154.b575f","type":"comment","z":"9ae218da.bbccb8","name":"View the message sent by the function node","info":"","x":970,"y":240,"wires":[]},{"id":"92964a63.82cb38","type":"comment","z":"9ae218da.bbccb8","name":"Select the group that contains a DALI-2 relay","info":"","x":1250,"y":400,"wires":[]},{"id":"74d212e.14f5eec","type":"comment","z":"9ae218da.bbccb8","name":"Check the modbus register responsible for emergency lighting","info":"","x":540,"y":400,"wires":[]},{"id":"38310201.1e26ce","type":"comment","z":"9ae218da.bbccb8","name":"1 - error detected, 0 - no error","info":"","x":900,"y":420,"wires":[]},{"id":"113950d6.8cc43f","type":"comment","z":"9ae218da.bbccb8","name":"Don't use the 2nd output","info":"","x":150,"y":400,"wires":[]},{"id":"f03d0f71.4697","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"10.0.6.55","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":false,"reconnectTimeout":2000,"parallelUnitIdsAllowed":false}]

Read the status of PIR sensor

[{"id":"c70746a8.ed9ca8","type":"modbus-write","z":"2ed3ef3.caf791","name":"Register: 500","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"500","quantity":"1","server":"c5a231d8.689ae","emptyMsgOnFail":false,"keepMsgProperties":false,"x":950,"y":1460,"wires":[[],[]]},{"id":"859bf339.d69bf","type":"comment","z":"2ed3ef3.caf791","name":"Select Vertex's IP register number","info":"","x":1020,"y":1400,"wires":[]},{"id":"9000f597.c31228","type":"comment","z":"2ed3ef3.caf791","name":"Read the status of PIR sensor","info":"","x":660,"y":1400,"wires":[]},{"id":"12a2ea5f.057d96","type":"DALI2 Devs Common","z":"2ed3ef3.caf791","name":"Tridonic 5DPI","outputs":1,"uid":"00C2858E06A759E92B","devStatus":2,"devSettings":[{"InstanceType":3,"isDisabled":false,"dali2t1":"10","dali2t2":"2","evenFilters":24},{"InstanceType":4,"isDisabled":true,"ReportTimer":null,"DeadtimeTimer":null,"Hysteresis":0,"HysteresisMin":255,"evenFilters":1},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84}],"savedSettings":[{"InstanceType":3,"isDisabled":false,"dali2t1":"10","dali2t2":"2","evenFilters":27},{"InstanceType":4,"isDisabled":true,"ReportTimer":null,"DeadtimeTimer":null,"Hysteresis":0,"HysteresisMin":255,"evenFilters":1},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"InstanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84}],"x":220,"y":1460,"wires":[["be414b26.642b08","c12ef17a.b47e5"]]},{"id":"be414b26.642b08","type":"function","z":"2ed3ef3.caf791","name":"","func":"msg.payload = msg.payload.MSEVENT\nreturn msg\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":1460,"wires":[["c70746a8.ed9ca8"]]},{"id":"c12ef17a.b47e5","type":"vertex action","z":"2ed3ef3.caf791","name":"","typeButton":"motionsensor","bPayload":{"PRESENCE":{"action":"setbrightness","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":"50","priority":"255"},"TRANSITION":{"action":"setbrightness","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":"11","priority":"0"},"NOPRESENCE":{"action":"setbrightness","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":"0","priority":"254"}},"bState":"","defaultpriority":true,"x":380,"y":1340,"wires":[["c3463f2f.5dc34"]]},{"id":"c3463f2f.5dc34","type":"vertex cluster","z":"2ed3ef3.caf791","rate":90,"x":570,"y":1340,"wires":[]},{"id":"c5a231d8.689ae","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]

 

Change the Daylight Harvesting target

[{"id":"7b097584.d497bc","type":"vertex daylightHarvesting","z":"2ed3ef3.caf791","name":"Daylight Harvesting","primarygroup":"56a55811a7f83ee9fb99df54c9a02a9a","target":"100","tolerance":15,"P":0.25,"I":0.03,"D":0,"min":-25,"max":25,"x":750,"y":1800,"wires":[["9f473b31.ec8378"]]},{"id":"f04d018f.bf0ee","type":"vertexmodbus","z":"2ed3ef3.caf791","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":340,"y":1800,"wires":[["13b30db8.49fc72"]]},{"id":"3850bffc.ef916","type":"comment","z":"2ed3ef3.caf791","name":"Select appropriate MODBUS register (+1) ","info":"","x":320,"y":1760,"wires":[]},{"id":"13b30db8.49fc72","type":"function","z":"2ed3ef3.caf791","name":"","func":"var target = msg.payload;\nif(target >= 0 && target<= 4294967295)\n{\n msg.topic = \"CONFIGURE\";\n msg.payload = {\"target\": target, \"tolerance\" : 10};\n return msg;\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":540,"y":1800,"wires":[["7b097584.d497bc"]]},{"id":"9f473b31.ec8378","type":"vertex action","z":"2ed3ef3.caf791","name":"","typeButton":"directv","bPayload":{"action":"setbrightnesslog","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":990,"y":1800,"wires":[["85f4528a.0a5c8"]]},{"id":"85f4528a.0a5c8","type":"vertex cluster","z":"2ed3ef3.caf791","rate":90,"x":1190,"y":1800,"wires":[]},{"id":"aa5601bb.1ac15","type":"comment","z":"2ed3ef3.caf791","name":"Set Daylight Harvesting target and tolerance values using ModBus","info":"","x":780,"y":1740,"wires":[]}]

 

Enable work AUTO (pir/buttons work) /Manual (control only with bms 0-100%/ 2700-6500K, pir/buttons are locked)

[{"id":"bfa5cc1.e242f3","type":"vertexmodbus","z":"2ed3ef3.caf791","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":420,"y":2300,"wires":[["b15e7e11.e08d7"]]},{"id":"b15e7e11.e08d7","type":"switch","z":"2ed3ef3.caf791","name":"","property":"payload.IUEVENT","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":630,"y":2300,"wires":[["3b33e1e8.357d7e"],["294dc45a.d08e6c"]]},{"id":"3b33e1e8.357d7e","type":"change","z":"2ed3ef3.caf791","name":"","rules":[{"t":"set","p":"modbus","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":2260,"wires":[[]]},{"id":"294dc45a.d08e6c","type":"change","z":"2ed3ef3.caf791","name":"","rules":[{"t":"set","p":"modbus","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":2340,"wires":[[]]},{"id":"3d880060.aed1a","type":"dali2devs","z":"2ed3ef3.caf791","name":"PIR","uid":"003560E1C1A0ED8CAD","dali2dev":"0","devStatus":2,"instanceType":3,"dali2t1":"10","dali2t2":"5","instanceData":{"InstanceStatusFlags":2,"InstanceType":3,"Resolution":2,"InstanceError":false,"InstanceActive":true,"InstanceGroup0":255,"InstanceGroup1":255,"InstanceGroup2":255,"EventScheme":2,"EventPriority":4,"EventFilter":3,"EventFilterSize":1,"FeatureType":[],"InputValue":0,"InstanceDetails":{"DeadtimeTimer":2,"HoldTimer":1,"ReportTimer":20,"Catching":0},"DataModelRecipe":["Dali2Instance303_config"],"INSTNR":0},"mode":"","x":450,"y":2640,"wires":[["33ab164f.aa052a"]]},{"id":"33ab164f.aa052a","type":"vertex action","z":"2ed3ef3.caf791","name":"PIR","typeButton":"motionsensor","bPayload":{"PRESENCE":{"action":"setbrightness","group":"0efc9ef58896d0b1839b65d7af598531","param":"50","priority":"255"},"TRANSITION":{"action":null,"group":"0efc9ef58896d0b1839b65d7af598531","param":null,"priority":"0"},"NOPRESENCE":{"action":"off","group":"0efc9ef58896d0b1839b65d7af598531","param":null,"priority":"254"}},"bState":"","defaultpriority":true,"x":640,"y":2640,"wires":[["b4b87ab.dd8f988"]]},{"id":"1e24c420.f1858c","type":"vertex cluster","z":"2ed3ef3.caf791","rate":90,"x":1070,"y":2580,"wires":[]},{"id":"6b74ba8e.8b8784","type":"dali2devs","z":"2ed3ef3.caf791","name":"Button","uid":"0000000829E23C2559","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":450,"y":2680,"wires":[["b54b3f80.81abf"]]},{"id":"b54b3f80.81abf","type":"vertex action","z":"2ed3ef3.caf791","name":"button","typeButton":"single","bPayload":{"action":"setbrightness","group":"0efc9ef58896d0b1839b65d7af598531","param":"21","priority":"254"},"bState":"","defaultpriority":true,"x":630,"y":2680,"wires":[["b4b87ab.dd8f988"]]},{"id":"b4b87ab.dd8f988","type":"switch","z":"2ed3ef3.caf791","name":"","property":"modbus","propertyType":"global","rules":[{"t":"false"}],"checkall":"true","repair":false,"outputs":1,"x":870,"y":2660,"wires":[["1e24c420.f1858c"]]},{"id":"8d3d017a.d91ba","type":"comment","z":"2ed3ef3.caf791","name":"Select appropriate MODBUS register (+1) ","info":"","x":440,"y":2220,"wires":[]},{"id":"d6447272.7dbd3","type":"comment","z":"2ed3ef3.caf791","name":"AUTO/MANUAL","info":"","x":420,"y":2260,"wires":[]},{"id":"4217ab32.19c174","type":"switch","z":"2ed3ef3.caf791","name":"","property":"modbus","propertyType":"global","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":870,"y":2500,"wires":[["1e24c420.f1858c"]]},{"id":"db773471.e04f78","type":"vertexmodbus","z":"2ed3ef3.caf791","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":420,"y":2480,"wires":[["2d3e03c5.a6813c"]]},{"id":"2d3e03c5.a6813c","type":"vertex action","z":"2ed3ef3.caf791","name":"","typeButton":"directv","bPayload":{"action":"setbrightness","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":630,"y":2480,"wires":[["4217ab32.19c174"]]},{"id":"ddc3c5c9.dce698","type":"vertex action","z":"2ed3ef3.caf791","name":"","typeButton":"directv","bPayload":{"action":"setcolortemperature","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":630,"y":2520,"wires":[["4217ab32.19c174"]]},{"id":"6140b9c6.fc8028","type":"vertexmodbus","z":"2ed3ef3.caf791","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":420,"y":2520,"wires":[["ddc3c5c9.dce698"]]},{"id":"ad20a046.8c45e","type":"comment","z":"2ed3ef3.caf791","name":"Brightness control 0-100%","info":"","x":210,"y":2480,"wires":[]},{"id":"da8f9575.324de8","type":"comment","z":"2ed3ef3.caf791","name":"Select appropriate MODBUS register (+1) ","info":"","x":420,"y":2420,"wires":[]},{"id":"2b680dea.2e9312","type":"comment","z":"2ed3ef3.caf791","name":"Color temperature control 2700-6500K","info":"","x":170,"y":2520,"wires":[]},{"id":"60bc1145.c05e6","type":"comment","z":"2ed3ef3.caf791","name":"Enable mode AUTO (pir/buttons work) /Manual (control only with bms 0-100%/ 2700-6500K, pir/buttons are locked)","info":"","x":730,"y":2160,"wires":[]}]

 

Set the color temperature to 2700-6500K using ModBus

[{"id":"7305feba.a3043","type":"comment","z":"2ed3ef3.caf791","name":"Direct Value -> Set color temperature","info":"","x":940,"y":100,"wires":[]},{"id":"99fbbae.cd2f248","type":"vertex action","z":"2ed3ef3.caf791","name":"","typeButton":"directv","bPayload":{"action":"setcolortemperature","group":"56a55811a7f83ee9fb99df54c9a02a9a","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":930,"y":140,"wires":[["58fa590d.b08408"]]},{"id":"d6a2accf.97166","type":"vertexmodbus","z":"2ed3ef3.caf791","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":200,"y":140,"wires":[["22d37b33.a6c5d4"]]},{"id":"93beef5c.47b5b","type":"vertex filterByVertex","z":"2ed3ef3.caf791","selectedVertex":"10.0.6.70","x":580,"y":140,"wires":[["99fbbae.cd2f248"]]},{"id":"4dbf790f.0dd238","type":"comment","z":"2ed3ef3.caf791","name":"Select appropriate MODBUS register (+1) ","info":"","x":200,"y":100,"wires":[]},{"id":"58fa590d.b08408","type":"vertex cluster","z":"2ed3ef3.caf791","rate":90,"x":1160,"y":140,"wires":[]},{"id":"9782a673.debec8","type":"comment","z":"2ed3ef3.caf791","name":"When multiple Vertexes, select the desired one","info":"","x":580,"y":100,"wires":[]},{"id":"22d37b33.a6c5d4","type":"function","z":"2ed3ef3.caf791","name":"","func":"var temp = msg.payload;\nif(temp <= 6500 && temp >= 2700)\n{\n msg.payload = temp;\n return msg;\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":140,"wires":[["93beef5c.47b5b"]]},{"id":"667f0609.f20a08","type":"inject","z":"2ed3ef3.caf791","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"3000","payloadType":"str","x":120,"y":220,"wires":[["22d37b33.a6c5d4"]]},{"id":"3e61e426.520a8c","type":"comment","z":"2ed3ef3.caf791","name":"CT 2700-6500","info":"","x":670,"y":40,"wires":[]}]

 

Change the sensor time from the BMS level

[{"id":"f2824476.edf178","type":"function","z":"ced2cf4c.14073","name":"Time from BMS ","func":"msg.payload = {\"t1\":{\"0\":msg.payload}} // 0 - this is the instance number,\n//if there are more PIR sensors, add another instance.\n//Example: { \"payload\" : {\"t1\":{\"0\":msg.payload, \"5\":msg.payload}} \n//We change the time of the sensor to the one sent from the BMS to 0 and 5 instances.\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":780,"y":380,"wires":[["e4c366ff.f75bb8"]]},{"id":"e4c366ff.f75bb8","type":"DALI2 Devs Common","z":"ced2cf4c.14073","name":"Osram_sesor","outputs":2,"uid":"007DB9D807DD3F90C2","devStatus":2,"devSettings":[{"InstanceType":3,"isDisabled":false,"dali2t1":"10","dali2t2":"40","evenFilters":3,"instanceType":3},{"InstanceType":4,"isDisabled":false,"evenFilters":0,"instanceType":4}],"savedSettings":[{"instanceType":3,"isDisabled":false,"dali2t1":"10","dali2t2":"40","evenFilters":3,"InstanceType":3},{"instanceType":4,"isDisabled":false,"evenFilters":0,"InstanceType":4}],"x":960,"y":380,"wires":[["e070bd85.392f9"],["188284fc.67660b"]]},{"id":"4c591a86.cb56c4","type":"vertexmodbus","z":"ced2cf4c.14073","name":"","registers":[{"r":"12","i":0}],"outputs":1,"x":600,"y":380,"wires":[["f2824476.edf178","6ca5cb6d.d943b4","e90d6091.20dfc"]]},{"id":"e1f88ee9.95e6f","type":"comment","z":"ced2cf4c.14073","name":"Change of presence time in sensor from the BMS level","info":"","x":900,"y":260,"wires":[]},{"id":"e070bd85.392f9","type":"vertex action","z":"ced2cf4c.14073","name":"","typeButton":"motionsensor","bPayload":{"PRESENCE":{"action":"setbrightness","group":"0025c4a4bdbe5876f53e1ab5e61f32ea","param":"100","priority":"255"},"TRANSITION":{"action":"setbrightness","group":"0025c4a4bdbe5876f53e1ab5e61f32ea","param":"50","priority":"0"},"NOPRESENCE":{"action":"setbrightness","group":"0025c4a4bdbe5876f53e1ab5e61f32ea","param":"0","priority":"254"}},"bState":"","defaultpriority":true,"x":1190,"y":380,"wires":[[]]},{"id":"2c2f04e1.b95f9c","type":"comment","z":"ced2cf4c.14073","name":" Choose the register number to which the BMS sends the time for the sensor","info":"","x":710,"y":340,"wires":[]},{"id":"160801b2.d92b4e","type":"inject","z":"ced2cf4c.14073","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"10","topic":"","payload":"","payloadType":"date","x":510,"y":440,"wires":[["cc0f532a.3acc5"]]},{"id":"6ca5cb6d.d943b4","type":"change","z":"ced2cf4c.14073","name":"","rules":[{"t":"set","p":"time_sensor_room1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":440,"wires":[["b8c7ea31.217c88"]]},{"id":"b8c7ea31.217c88","type":"modbus-write","z":"ced2cf4c.14073","name":"","showStatusActivities":false,"showErrors":false,"unitid":"","dataType":"HoldingRegister","adr":"511","quantity":"1","server":"25b24d23.a1da82","emptyMsgOnFail":false,"keepMsgProperties":false,"x":1600,"y":440,"wires":[[],[]]},{"id":"b8a49e1e.6a6b6","type":"comment","z":"ced2cf4c.14073","name":"Change the name of the condition to a different one for each room","info":"Change the name of the condition to a different one for each room","x":850,"y":480,"wires":[]},{"id":"827e7a07.679c68","type":"comment","z":"ced2cf4c.14073","name":"feedback for the BMS about the current time","info":"set correct register","x":1590,"y":400,"wires":[]},{"id":"e90d6091.20dfc","type":"ui_numeric","z":"ced2cf4c.14073","name":"","label":" Hold time in second","tooltip":"","group":"754ee25b.5d0e7c","order":0,"width":0,"height":0,"wrap":false,"passthru":false,"topic":"topic","topicType":"msg","format":"{{value}}","min":"60","max":"2540","step":"30","x":510,"y":480,"wires":[["6ca5cb6d.d943b4"]]},{"id":"188284fc.67660b","type":"debug","z":"ced2cf4c.14073","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1210,"y":520,"wires":[]},{"id":"cc0f532a.3acc5","type":"change","z":"ced2cf4c.14073","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"time_sensor_room1","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":440,"wires":[["6ca5cb6d.d943b4","f2824476.edf178","e90d6091.20dfc"]]},{"id":"25b24d23.a1da82","type":"modbus-client","name":"","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"10.0.6.51","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true},{"id":"754ee25b.5d0e7c","type":"ui_group","name":"Sensor hold time","tab":"3f4554e9.27d8fc","order":1,"disp":true,"width":"6","collapse":false},{"id":"3f4554e9.27d8fc","type":"ui_tab","name":"hold tim","icon":"dashboard","disabled":false,"hidden":false}]

Related content