Multiple object / group address creation - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Multiple object / group address creation (/showthread.php?tid=4190) |
Multiple object / group address creation - pioneersteffen - 14.08.2022 Hello @all, I need to create ~100 virtuell objects (10 per room and 10 rooms) and I don‘t want to do that manually. Is there a way to import an Excel or something else that is creating an object/group address with the following attributes? - Name - group address - Unit - data type - Tag Many thanks for your help! Best Regards Steffen RE: Multiple object / group address creation - admin - 15.08.2022 You can use grp.create from a script: https://openrb.com/docs/lua.htm#grp.create If you have rooms with the same object layout you can also use a for loop to create objects. Similar to this: https://forum.logicmachine.net/showthread.php?tid=724&pid=4087#pid4087 RE: Multiple object / group address creation - pioneersteffen - 17.08.2022 Many thanks admin. Is there a option just to create virtual objects? I haven’t found it in the documentation. RE: Multiple object / group address creation - Dré - 17.08.2022 (17.08.2022, 17:44)pioneersteffen Wrote: Many thanks admin. Is there a option just to create virtual objects? I haven’t found it in the documentation. You can create virtual object with the same script. but KNX object are from 0/0/0 til 31/7/255 virtual object are from 32/0/0 til 63/7/255 RE: Multiple object / group address creation - admin - 18.08.2022 You can also set virtual = true in the grp.create config table without specifying the address directly. This way the next free virtual group address will be used. |