Hi all!
First post here. I have my Z-Wave network to the point where I have 44 devices (last device has ID 44) and now I’m starting to encounter cases where I would want to set some manual routes to optimize transfer and latency.
I just had one device always giving me errors (timeout) and I found in the AutoRoute entry all invalid routes (with last hop having an x behind it despite the “heal” I ran over night).
So I entered a manual route and immediately the device came to life. Now how and where can I get a simple “list with IDs” of all my devices on the system? It’s kinda clumsy to click through every device and manually write down the IDs.
Say for example I see an Autoroute entry that says 4.15.40x
How can I QUICKLY find out who’s 4, who’s 15 and who’s 40 without having to guess and click through all of them?
I use an extended version of @akbooer’s Lua script which includes parent ID and device-type fields. As with the original, you just run it in APPS, Develop Apps, Test Luup code (Lua) and view the result with a browser at <vera_ip_address>/devlist.txt
[code]local file = io.open(“/www/devlist.txt”, “w”)
file:write("Device List on " … os.date() … “\n\n”)
file:write(“Num Id Parent Device-Type Device-Name\n\n”)
for deviceNo,d in pairs(luup.devices) do
if d.id ~= “” then
if #d.id > 2 then node = " " else node = d.id end
s, e, dtype = string.find(d.device_type,“:(%w*):1$”)
if dtype == nil then dtype = “” end
if #dtype > 20 then dtype = string.sub(dtype,1,20) end
if #dtype < 20 then dtype = dtype … string.rep(" ",(20 - #dtype)) end
file:write(string.format(‘%03d %2s %03d %s %s \n’, deviceNo, node, d.device_num_parent, dtype, d.description))
end
end
[quote=“RexBeckett, post:5, topic:176251”]I use an extended version of @akbooer’s Lua script which includes parent ID and device-type fields. As with the original, you just run it in APPS, Develop Apps, Test Luup code (Lua) and view the result with a browser at <vera_ip_address>/devlist.txt
[code]local file = io.open(“/www/devlist.txt”, “w”)
file:write("Device List on " … os.date() … “\n\n”)
file:write(“Num Id Parent Device-Type Device-Name\n\n”)
for deviceNo,d in pairs(luup.devices) do
if d.id ~= “” then
if #d.id > 2 then node = " " else node = d.id end
s, e, dtype = string.find(d.device_type,“:(%w*):1$”)
if dtype == nil then dtype = “” end
if #dtype > 20 then dtype = string.sub(dtype,1,20) end
if #dtype < 20 then dtype = dtype … string.rep(" ",(20 - #dtype)) end
file:write(string.format(‘%03d %2s %03d %s %s \n’, deviceNo, node, d.device_num_parent, dtype, d.description))
end
end
file:close()
[/code][/quote]
Very useful, thank you RexBeckett!
Best Home Automation shopping experience. Shop at Ezlo!