We have moved at community.getvera.com

Author Topic: Z-Wave routing matrix  (Read 29463 times)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Z-Wave routing matrix
« on: September 24, 2009, 09:03:45 pm »
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
« Last Edit: March 31, 2011, 04:52:23 am by Ap15e »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Z-Wave routing matrix
« Reply #1 on: September 25, 2009, 04:31:39 am »
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

                              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   
 [...]

Offline wseverino

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 854
  • Karma: +0/-0
  • Da Man, Da Myth, Da Legend - in his own mind!
Re: Z-Wave routing matrix
« Reply #2 on: September 25, 2009, 09:08:52 pm »
Dont see anything attached. I think it has something to do with the moderator group. Can any of the other moderator see an attachment?
My ZWave Network: Too friggin big to list.....

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Z-Wave routing matrix
« Reply #3 on: September 27, 2009, 08:12:03 pm »
I'm no moderator and I can see the attachment...

Offline wseverino

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 854
  • Karma: +0/-0
  • Da Man, Da Myth, Da Legend - in his own mind!
Re: Z-Wave routing matrix
« Reply #4 on: September 27, 2009, 08:18:00 pm »
Yeah I don't see it....
My ZWave Network: Too friggin big to list.....

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Z-Wave routing matrix
« Reply #5 on: September 27, 2009, 08:21:37 pm »
Yep, we can't see attachments... never could... weird.

Offline wseverino

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 854
  • Karma: +0/-0
  • Da Man, Da Myth, Da Legend - in his own mind!
Re: Z-Wave routing matrix
« Reply #6 on: September 27, 2009, 08:56:05 pm »
MCV - Please check the moderators set-up for attachments.......
My ZWave Network: Too friggin big to list.....

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Z-Wave routing matrix
« Reply #7 on: September 30, 2009, 11:26:11 pm »
BTW, attachments have been fixed

Offline madas

  • Full Member
  • ***
  • Posts: 180
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #8 on: November 03, 2009, 07:38:38 am »
Does this still work on the recent firmware?

nothing gets written to my log.
Vera(1.0.958), Dongle(2.78), WDTC-20 Thermostat, HA02C Appliance Module, HA-04WD Outdoor Appliance Module, HA20C Dimmer, HA-07WD Remote, HSM100 Motion/Light/Temp, HA03C Lamp Module, HA02C Appliance Module, BE369 Schlage Deadbolt

mcvovidiu

  • Guest
Re: Z-Wave routing matrix
« Reply #9 on: November 03, 2009, 07:45:29 am »
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.

Offline madas

  • Full Member
  • ***
  • Posts: 180
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #10 on: November 03, 2009, 07:48:55 am »
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?
« Last Edit: November 03, 2009, 07:51:13 am by madas »
Vera(1.0.958), Dongle(2.78), WDTC-20 Thermostat, HA02C Appliance Module, HA-04WD Outdoor Appliance Module, HA20C Dimmer, HA-07WD Remote, HSM100 Motion/Light/Temp, HA03C Lamp Module, HA02C Appliance Module, BE369 Schlage Deadbolt

Offline madas

  • Full Member
  • ***
  • Posts: 180
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #11 on: November 03, 2009, 07:54:33 am »
turned off verbose, saved, turned on verbose, saved, now its fine!
Vera(1.0.958), Dongle(2.78), WDTC-20 Thermostat, HA02C Appliance Module, HA-04WD Outdoor Appliance Module, HA20C Dimmer, HA-07WD Remote, HSM100 Motion/Light/Temp, HA03C Lamp Module, HA02C Appliance Module, BE369 Schlage Deadbolt

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Z-Wave routing matrix
« Reply #12 on: November 03, 2009, 09:47:07 am »
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?

Offline madas

  • Full Member
  • ***
  • Posts: 180
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #13 on: November 03, 2009, 09:50:11 am »
I would love to know.  Very few of mine seem to have mirrored pairs
Vera(1.0.958), Dongle(2.78), WDTC-20 Thermostat, HA02C Appliance Module, HA-04WD Outdoor Appliance Module, HA20C Dimmer, HA-07WD Remote, HSM100 Motion/Light/Temp, HA03C Lamp Module, HA02C Appliance Module, BE369 Schlage Deadbolt

Offline umtauscher

  • Full Member
  • ***
  • Posts: 223
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #14 on: February 16, 2010, 09:48:45 am »
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.

Quote
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