Z-Wave routing matrix

Edit:
Please upgrade to ADD (http://forum.micasaverde.com/index.php?topic=5130.0), because this script contains at least one bug (caused by a strange Lua behaviour, see http://forum.micasaverde.com/index.php?topic=2099.msg36337#msg36337) and the script won’t be updated in the future.

This Luup Lua script generates the Z-Wave routing matrix.

Instructions:

  1. Copy the script into the Devices -> Luup plugins -> Test Luup code (Lua) window
  2. Press the ‘Go’ button
  3. Open /var/log/cmh/LuaUPnP.log and search for “Vera’s Z-Wave routing matrix”

Might be useful in debugging Z-Wave routing issues.

Download:
https://docs.google.com/document/d/1blj3cbOsv8wJ_HjbzIAQhkhDJhviN--hbkfQoadxDSQ/edit?hl=en&authkey=CNKSv9UF

Is the statement “If A is neighbor of B, then B is neighbor of A.” correct?

I am asking because I have pairs of devices for which this condition does not hold (e.g., 36/93, 84/93, 86/93).

36: binary switch
84: dimmer
86: window covering
93: Danfoss thermostat

[font=Courier] 1 36 83 84 86 88 89 91 93 94 108 110 111 118 119 121 122 123 124 125 126

1 Scene Controller | 36 83 84 86 88 89 91 93 94 108 111 124 125
36 Wandspiegellampe | 83 84 86 88 91 93 94 125
83 Deckenlampe | 36 84 86 91 93 94 111 125
84 Schreibtischlampe | 36 83 91 93 94
86 Rollladen SZ | 36 83 88 89 91 93 94 108 124 125
88 Stehlampe Ost | 36 86 89 91 94 108 125
89 Stehlampe West | 86 88 108 124
91 Bewegungsmelder | 36 83 84 86 88 111 124 125
93 Heizkörperregler | 83
94 Türkontakt | 36 83 84 86 88 111 124 125
[…][/font]

Dont see anything attached. I think it has something to do with the moderator group. Can any of the other moderator see an attachment?

I’m no moderator and I can see the attachment…

Yeah I don’t see it…

Yep, we can’t see attachments… never could… weird.

MCV - Please check the moderators set-up for attachments…

BTW, attachments have been fixed

Does this still work on the recent firmware?

nothing gets written to my log.

Hi all,

Ap15e, thank for the good work done here. This is a very useful piece of code even for us.

madas: tested on 1.0.979 and works great.

hmmm…

I just followed the instructions but it doesn’t write anything to that log…

root@HomeControl:/tmp/log/cmh# cat LuaUPnP.log
02 11/03/09 7:15:03.714 Finished rotate logs <0x1406>

p.s. I left device number blank - correct?

turned off verbose, saved, turned on verbose, saved, now its fine!

As this thread has been revived:

Are there any takers for my question concerning Z-Wave routing:

Is the statement “If A is neighbor of B, then B is neighbor of A.” correct?

I would love to know. Very few of mine seem to have mirrored pairs

Hi Ap15e,

this ist the matrix, as I entered it manually and I think it is not in any way correct. After that I ran the repair function, and it changed nothing. I am on UI2 985.

20 02/16/10 15:42:01.386 LuaInterface::StartEngine 0x827c90 device 0 <0x3c10> 50 02/16/10 15:42:01.397 luup_log:0: <0x3c10> 50 02/16/10 15:42:01.398 luup_log:0: Vera's Z-Wave routing matrix <0x3c10> 50 02/16/10 15:42:01.398 luup_log:0: <0x3c10> 50 02/16/10 15:42:01.442 luup_log:0: 1 2 3 4 5 7 9 10 11 13 17 19 <0x3c10> 50 02/16/10 15:42:01.443 luup_log:0: ------------------------------------------------------------------------ <0x3c10> 50 02/16/10 15:42:01.445 luup_log:0: 1 Scene Controller | <0x3c10> 50 02/16/10 15:42:01.447 luup_log:0: 2 Telefon Licht | 3 4 10 <0x3c10> 50 02/16/10 15:42:01.449 luup_log:0: 3 Stehlampe | 2 4 5 10 <0x3c10> 50 02/16/10 15:42:01.451 luup_log:0: 4 Boxen Lampen | 10 13 <0x3c10> 50 02/16/10 15:42:01.453 luup_log:0: 5 Dimmable Light | 9 17 <0x3c10> 50 02/16/10 15:42:01.454 luup_log:0: 7 Scene Controller | <0x3c10> 50 02/16/10 15:42:01.456 luup_log:0: 9 Licht Eingangstuer | 13 <0x3c10> 50 02/16/10 15:42:01.457 luup_log:0: 10 Deckenlampe | <0x3c10> 50 02/16/10 15:42:01.459 luup_log:0: 11 EZMotion 3in1 | <0x3c10> 50 02/16/10 15:42:01.481 luup_log:0: 13 Arbeitsplatte | <0x3c10> 50 02/16/10 15:42:01.482 luup_log:0: 17 Dimmable Light | <0x3c10> 50 02/16/10 15:42:01.483 luup_log:0: 19 Motion Sensor | <0x3c10> 50 02/16/10 15:42:01.484 luup_log:0: <0x3c10>

TIA
Umtauscher

Ok, forget it. I solved the problem myself.

I updated the z-wave dongle to version 2.78 L:1
Now every node has 4-5 neigbours. Time will tell, if the lag will be gone.

Thanks again

Umtauscher

hopefully that fixes you up.

If you remember please post back- I’m curious if it’s the dongle firmware.

I made a plugin out of this script and put it on code.mios.com with the name Debugging Utilities.
Here is the link: http://code.mios.com/trac/mios_debugging-utilities

Thanks @mcvflorin! 8)

@mcvflorin,

Your screen shot of the matrix shows seven devices, any idea how the output looks for someone who has numerous devices say 70+? If comparing it to the way scenes are displayed within scene controllers I would imagine this would be just be a jumbled mess.

*Edit. I took the plunge anyway but could not get it to work. Does one use both the I & D xml’s when creating the device?

Is it a difficult task to take the code.mios.com “code” one step further and have a one click install from the Mios Marketplace? Or is the MM only for MCV plugins?

What would also be good is when a command is issued to turn a device on / off etc. A code is generated showing which devices were brought into play to execute that command, all hops from Vera (and back) to that device.

JOD.