This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Rename group addresses
#4
Run this script once
Code:
-- Bulk rename: 1/1/1 → LIGHTING - ON/OFF - L01 ... 1/1/100 → LIGHTING - ON/OFF - L100 for i = 1, 100 do   local addr  = string.format('1/1/%d', i)   local name  = string.format('LIGHTING - ON/OFF - L%02d', i)   -- grp.create overwrites an existing object's name without touching   -- its datatype, tags, comment, or value — when you pass only   -- address + name + forcename=true.   local ok, err = grp.create({     address   = addr,     name      = name,     forcename = true,   -- replace the name even if the object already exists   })   if ok then     log(string.format('Renamed %s → "%s"', addr, name))   else     log(string.format('SKIP %s (does not exist or error: %s)', addr, tostring(err)))   end end log('Bulk rename complete.')
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Rename group addresses - by davidchispas - 19.08.2026, 07:53
RE: Rename group addresses - by Daniel - 19.08.2026, 13:08
RE: Rename group addresses - by davidchispas - 19.08.2026, 13:55
RE: Rename group addresses - by Daniel - 19.08.2026, 14:02

Forum Jump: