Z-Wave routing matrix

Any same Technology :smiley: but for UI5?

The link http://code.mios.com/trac/mios_debugging-utilities is not working for me. The error is “Environment not found”
Can you send me a valid link?
Regards,
Viorel

The author is no longer on the forum and has removed all of his plugins. This plugin is no longer available.

  • Garrett

Damn, so what can we do? Does anybody has the code so can share it to us?

I quickly cobbled up some code to reproduce this report. I’m not sure how the original worked (am I seeing that it emailed its contents?), but this one just writes the report to the LuaUPnP.log file. It ain’t pretty, but I was working fast and I’m new to both Lua and Luup, so forgive any obvious “hard ways” I may have taken in getting this done. At least it’s done.

To run the report, you can copy and paste this code into Apps > Develop Apps > Test Luup Code:

[code]function expand(nlist)
local t = {}
local n
for n in string.gmatch(nlist, “%d+”) do
t[tonumber(n)] = n
end
return t
end

do
local n, d, nb;
local nodelist = {}
local nodename = {}
luup.log(“Device List”)
for n, d in pairs(luup.devices) do
if (string.len(d.id) > 0 and string.find(d.id, “[^%d]”) == nil) then
nb = luup.variable_get(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “Neighbors”, n)
luup.log(“Device " … tostring(n) … " node " … d.id … " (” … d.description … ") neighbors " … tostring(nb))
nodename[tonumber(d.id)] = d.description
nodelist[tonumber(d.id)] = expand(tostring(nb))
end
end

luup.log(“Neighbor Table”)

local ln, l
local t = {}
for n, l in pairs(nodelist) do
t[#t+1] = n
end
table.sort(t)
ln = string.format(“— %28s”, “”)
for l, n in pairs(t) do
ln = ln … string.format(“|%3d”, n)
end
luup.log(ln)
for l, n in pairs(t) do
local ll = nodelist[n]
ln = string.format(“%3d %-28s”, n, string.sub(nodename[n],1,28))
local k, m
for k, m in pairs(t) do
if (ll[m] ~= nil) then
ln = ln … string.format(" %3d", m)
else
ln = ln … " "
end
end
luup.log(ln)
end
end[/code]

The output looks like this in my Vera3 log:

[tt]luup_log:0: Device List
luup_log:0: Device 2 node 1 (_Scene Controller) neighbors nilnil
luup_log:0: Device 4 node 2 (Contact Sensor) neighbors 4,20,25,26,27,28,30,31,40
luup_log:0: Device 21 node 4 (Lamp Module) neighbors
luup_log:0: Device 43 node 8 (VRCZ4-MRZ Switch (not conn)) neighbors
luup_log:0: Device 44 node 7 (VRCZ4-MRZ Scene Controller) neighbors 1,4,17,18,20,21,25,27,28,29,31,32,33,35,39,40
luup_log:0: Device 46 node 13 (VRCS1-1LZ Not Works) neighbors 1,4
luup_log:0: Device 58 node 17 (Rear Spots) neighbors 1,2,7,8,18,20,21,25,26,27,29,30,31,32,33,35,39,40
luup_log:0: Device 59 node 18 (Front Spots) neighbors 1,7,8,17,20,21,25,26,27,28,29,30,31,32,33,35,39,40
luup_log:0: Device 61 node 20 (Sconces L) neighbors 1,7,8,17,18,21,25,26,27,28,29,30,32,33,35,39,40
luup_log:0: Device 62 node 21 (Scones Right) neighbors 1,7,8,17,18,20,25,27,28,29,32,33,35,39,40
luup_log:0: Device 63 node 22 (VRCPG 22) neighbors
luup_log:0: Device 64 node 23 (GE Jasco 45609 no inst update) neighbors
luup_log:0: Device 68 node 25 (Pathway Dimmer) neighbors 1,2,7,8,17,18,20,21,26,27,28,29,30,31,32,33,35,36,39,40
luup_log:0: Device 69 node 26 (Terr Bath Vanity) neighbors 2,17,18,20,25,27,28,29,30,31,32,35,36,39,40
luup_log:0: Device 71 node 27 (Terr Bath Task Lights) neighbors 1,2,7,8,17,18,20,21,25,26,28,29,30,31,32,36,39,40
luup_log:0: Device 72 node 14 (_Appliance Module) neighbors nilnil
luup_log:0: Device 73 node 28 (Stair Dimmer (3-way)) neighbors 1,2,7,8,18,20,21,25,26,27,29,30,32,33,35
luup_log:0: Device 74 node 29 (Terr Bath 4-in-1 Sensor (motion)) neighbors 4,7,8,18,20,21,25,26,27,28,30,31,32,39,40
luup_log:0: Device 78 node 30 (Terr Bath Shower) neighbors 1,2,17,18,20,25,26,27,28,29,31,32,35,36,39,40
luup_log:0: Device 79 node 31 (Terr Bath Fan Switch) neighbors 1,2,7,8,17,18,25,26,27,29,30,33,35,36,39,40
luup_log:0: Device 81 node 32 (Window Cans) neighbors 1,7,8,17,18,20,21,25,26,27,28,29,30,33,35,39,40
luup_log:0: Device 90 node 35 (Multi-sensor (motion)) neighbors 1,4,18,20,25,26,27,28,30,31,32,39,40
luup_log:0: Device 94 node 33 (_4 in 1 sensor (motion)) neighbors 18,20,21,25,26,27,28,30,31,32,39,40
luup_log:0: Device 113 node 36 (Motion Sensor ZWN-BPC) neighbors 1,7,8,17,18,20,21,25,26,27,28,30,31,32,39,40
luup_log:0: Device 116 node 39 (Recessed Near) neighbors 1,7,8,17,18,20,21,25,26,27,30,31,32,40
luup_log:0: Device 117 node 40 (Recessed Far) neighbors 1,7,8,17,18,20,21,25,26,27,30,31,32,39
luup_log:0: Neighbor Table
luup_log:0: — | 1| 2| 4| 7| 8| 13| 14| 17| 18| 20| 21| 22| 23| 25| 26| 27| 28| 29| 30| 31| 32| 33| 35| 36| 39| 40
luup_log:0: 1 _Scene Controller
luup_log:0: 2 Contact Sensor 4 20 25 26 27 28 30 31 40
luup_log:0: 4 Lamp Module
luup_log:0: 7 VRCZ4-MRZ Scene Controller 1 4 17 18 20 21 25 27 28 29 31 32 33 35 39 40
luup_log:0: 8 VRCZ4-MRZ Switch (not conn)
luup_log:0: 13 VRCS1-1LZ Not Works 1 4
luup_log:0: 14 _Appliance Module
luup_log:0: 17 Rear Spots 1 2 7 8 18 20 21 25 26 27 29 30 31 32 33 35 39 40
luup_log:0: 18 Front Spots 1 7 8 17 20 21 25 26 27 28 29 30 31 32 33 35 39 40
luup_log:0: 20 Sconces L 1 7 8 17 18 21 25 26 27 28 29 30 32 33 35 39 40
luup_log:0: 21 Scones Right 1 7 8 17 18 20 25 27 28 29 32 33 35 39 40
luup_log:0: 22 VRCPG 22
luup_log:0: 23 GE Jasco 45609 no inst updat
luup_log:0: 25 Pathway Dimmer 1 2 7 8 17 18 20 21 26 27 28 29 30 31 32 33 35 36 39 40
luup_log:0: 26 Terr Bath Vanity 2 17 18 20 25 27 28 29 30 31 32 35 36 39 40
luup_log:0: 27 Terr Bath Task Lights 1 2 7 8 17 18 20 21 25 26 28 29 30 31 32 36 39 40
luup_log:0: 28 Stair Dimmer (3-way) 1 2 7 8 18 20 21 25 26 27 29 30 32 33 35
luup_log:0: 29 Terr Bath 4-in-1 Sensor (mot 4 7 8 18 20 21 25 26 27 28 30 31 32 39 40
luup_log:0: 30 Terr Bath Shower 1 2 17 18 20 25 26 27 28 29 31 32 35 36 39 40
luup_log:0: 31 Terr Bath Fan Switch 1 2 7 8 17 18 25 26 27 29 30 33 35 36 39 40
luup_log:0: 32 Window Cans 1 7 8 17 18 20 21 25 26 27 28 29 30 33 35 39 40
luup_log:0: 33 _4 in 1 sensor (motion) 18 20 21 25 26 27 28 30 31 32 39 40
luup_log:0: 35 Multi-sensor (motion) 1 4 18 20 25 26 27 28 30 31 32 39 40
luup_log:0: 36 Motion Sensor ZWN-BPC 1 7 8 17 18 20 21 25 26 27 28 30 31 32 39 40
luup_log:0: 39 Recessed Near 1 7 8 17 18 20 21 25 26 27 30 31 32 40
luup_log:0: 40 Recessed Far 1 7 8 17 18 20 21 25 26 27 30 31 32 39
[/tt]

Thanx man
will try and let you know