We have moved at community.getvera.com

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

Offline umtauscher

  • Full Member
  • ***
  • Posts: 223
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #15 on: February 16, 2010, 11:38:47 am »
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

Offline michaelk

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +0/-0
Re: Z-Wave routing matrix
« Reply #16 on: February 16, 2010, 11:43:30 am »
hopefully that fixes you up.

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

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Z-Wave routing matrix
« Reply #17 on: March 25, 2011, 01:58:10 pm »
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
« Last Edit: March 25, 2011, 02:03:56 pm by mcvflorin »

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: Z-Wave routing matrix
« Reply #18 on: March 25, 2011, 02:01:54 pm »
I made a plugin out of this script and put it on code.mios.com with the name Debugging Utilities.
Thanks @mcvflorin! 8)
Dezwaved at the moment...

Offline JOD

  • Hero Member
  • *****
  • Posts: 1973
  • Karma: +4/-0
Re: Z-Wave routing matrix
« Reply #19 on: March 25, 2011, 02:14:18 pm »
@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.
« Last Edit: March 25, 2011, 03:03:38 pm by JOD »
I'm sorry, my responses are limited. You must ask the right questions.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Z-Wave routing matrix
« Reply #20 on: March 25, 2011, 04:46:58 pm »
@mcvflorin

Nice adaption, but ... please use the newer algorithms from ADD.

Why?

Code: [Select]
t={}

table.insert(t,34,'34')
table.insert(t,35,'35')
table.insert(t,36,'36')
table.insert(t, 3, '3')
table.insert(t,4 ,'4')
table.insert(t,7 ,'7' )
table.insert(t,39 , '39')
table.insert(t,40 , '40')
table.insert(t,9 , '9')
table.insert(t,10 , '10')
table.insert(t,11 , '11')
table.insert(t,12 , '12')
table.insert(t,14 , '14')
table.insert(t,15 , '15')
table.insert(t,17 , '17')
table.insert(t,26 , '26')
table.insert(t,29 , '29')
table.insert(t,1 , '1')

for k,v in pairs(t) do print(k,v) end
« Last Edit: March 25, 2011, 04:53:16 pm by Ap15e »

Offline ctbaker

  • Sr. Newbie
  • *
  • Posts: 44
  • Karma: +0/-0
  • White and Nerdy
Re: Z-Wave routing matrix
« Reply #21 on: March 27, 2011, 03:11:39 am »
I was able to get it to work. These are the steps I went through.

1. Download the four files from the mios code repository.
2. Upload the four files to your vera via the MIOS Developers Icon on the dashboard and hitting the Luup Files tab and uploading from there.
3. Click on the create device tab and then click on the create device button (within the MIOS Developers Icon)
4. Name your new device
5. Set "device_file" to "D_DebuggingUtilities.xml"
6. Set "impl_file" to "I_ZWaveRoutingMatrix.xml"
7. Click on the "X" in the upper right corner
8. Click on the SAVE icon on the dashboard

After the system does it's thing, click on the wrench of the device you originally created in step 3 above and the first tab will show your matrix.

@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.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Z-Wave routing matrix
« Reply #22 on: March 28, 2011, 10:10:18 am »
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.

I updated the code to allow a large number of devices to be displayed.

*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?

I was in a rush Friday and I didn't have time to write setup instructions. I updated the Trac page with the setup instructions and some useful notes.

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?

code.mios.com is not on our servers, but on RepositoryHosting.com. This means that it's not possible to make an one-click plugin installer.
We are working on a Marketplace section for developers that will allow them to easily upload/publish plugins. Until this is finished, we'll have to install plugins the hard way.
« Last Edit: March 28, 2011, 10:31:07 am by mcvflorin »

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Z-Wave routing matrix
« Reply #23 on: March 28, 2011, 10:30:01 am »
Ap15e, I made you project admin. Feel free to modify it as you like.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Z-Wave routing matrix
« Reply #24 on: March 28, 2011, 11:06:21 am »
@mcvflorin,

thanks for making me project admin - but I'm afraid I won't find time to support adaptions of my code.

Please feel free to convert ADD to a Luup plugin, but please note that my statement from above would apply to adaption of ADD as well. I don't get paid for the time I'm spending on MiOS, so I have to limit my resources.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Z-Wave routing matrix
« Reply #25 on: March 28, 2011, 11:18:21 am »
@mcvflorin,

thanks for making me project admin - but I'm afraid I won't find time to support adaptions of my code.

Please feel free to convert ADD to a Luup plugin, but please note that my statement from above would apply to adaption of ADD as well. I don't get paid for the time I'm spending on MiOS, so I have to limit my resources.

My intention wasn't to put the responsibility on you, I just thought that since it's your script, you'll probably want to have access to it.

I made this plugin for a couple of reasons:
1. The guys in the support team find it useful.
2. I believe that this is one of the firsts, if not the first, public plugins that use an interface made in JavaScript, so you could consider this a sort of "tech demo".

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Z-Wave routing matrix
« Reply #26 on: March 28, 2011, 04:06:22 pm »
Any chance to get documentation on the 'MiOS JavaScript extensions'?

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Z-Wave routing matrix
« Reply #27 on: March 29, 2011, 04:12:38 am »
Unfortunately there isn't one, I got these functions by looking through the existing code, especially in cpanel_data.js. I will create a Wiki page with some of the most important functions and variables when I find the time.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Z-Wave routing matrix
« Reply #28 on: March 31, 2011, 04:54:24 am »
Please upgrade to ADD (http://forum.micasaverde.com/index.php?topic=5130.0), because routing_matrix_MCV_forum_V0.1 contains at least one bug (caused by a strange Lua behaviour, see http://forum.micasaverde.com/index.php?topic=2099.msg36337#msg36337) and because the script won't be updated in the future.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Z-Wave routing matrix
« Reply #29 on: March 31, 2011, 06:00:50 am »
I updated the code, but from what I've seen, this plugin wasn't affected by the table.insert behavior that you mentioned, because the problem arises only when inserting something at a lower index (so all the following items are shifted). But the items in the luup.devices table are ordered in ascending order, so when parsing it and adding items in the neighbors table, all the new items are added at the end of the table, and this problem doesn't occur.