He is doing research on networks: natural, artificial, financial, political, economical, corruptions etc. It would may be help him to get some examples from our home automation networks.
if you participate you will get in return an analysis of your network in comparison with the other networks participating in the survey : # of nodes, ping time distribs, neighbor analysis and what ever he can get out of the data ( and later in 2 + years a pdf file of his theses if you are interested)
I have written a little script (mostly copied from other folks put together ) that you should run and then send the output to me via email (karlwachs at me dot com)
The script will get the neighbors of each zwave device and ping each device 4 times. It will create lines in the indigo log file like:
- Code: Select all
....cript Survey Pass - 4
Script attic squirrel 2 success:True TimeDelta:18
Script coffeeMachineü success:True TimeDelta:283
Script downstairsHallwayOutletFront success:True TimeDelta:340
Script downstairsHallwayoutletMiddle success:True TimeDelta:19
Script Excercise room TV switch success:True TimeDelta:385
Script frontBalkonyCameraSwitch success:True TimeDelta:276
Script Game Room TV switch success:True TimeDelta:423
Script livingRoom camera switch success:True TimeDelta:266
Script MeterTotalLeftBox success:True TimeDelta:1858
Script MeterTotalRightBox success:True TimeDelta:68
Script outsideBalkonyLights success:True TimeDelta:232
Script outsideMosquito switch Balkony success:True TimeDelta:273
Script outsideMosquito switch tree success:True TimeDelta:385
Script poolEnergy total success:True TimeDelta:70
Script studyOutlet success:True TimeDelta:336
Script switch for insteon modem success:True TimeDelta:19
Script ThermostatDownstairs success:True TimeDelta:232
Script ThermostatExerciseRoom success:True TimeDelta:384
Script ThermostatGameRoom success:True TimeDelta:282
Script Total Successes - 76
Script Total Failures - 0
Script Done processing devices
Script results
attic squirrel 2 --:-- 0--:--{'neighbors': [1, 2, 4, 5, 9, 11, 13, 14, 16, 17, 20, 22, 26, 27, 28, 29, 30], 'id': 113937113, 'pings': {'elapsedtime': 71, 'passes': {1: 18, 2: 19, 3: 16, 4: 18}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'attic squirrel 2'}
coffeeMachineü --:-- 1--:--{'neighbors': [1, 3, 4, 5, 9, 11, 13, 15, 16, 17, 23, 24, 25, 28, 30], 'id': 1017625793, 'pings': {'elapsedtime': 1181, 'passes': {1: 226, 2: 231, 3: 441, 4: 283}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'coffeeMachine\xfc'}
downstairsHallwayOutletFront --:-- 2--:--{'neighbors': [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 22, 24, 25, 26, 27, 29, 30], 'id': 1288667224, 'pings': {'elapsedtime': 1287, 'passes': {1: 337, 2: 280, 3: 330, 4: 340}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'downstairsHallwayOutletFront'}
downstairsHallwayoutletMiddle --:-- 3--:--{'neighbors': [1, 3, 4, 5, 13, 14, 15, 16, 17, 22, 23, 24, 25, 28, 29, 30], 'id': 282154644, 'pings': {'elapsedtime': 67, 'passes': {1: 16, 2: 17, 3: 15, 4: 19}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'downstairsHallwayoutletMiddle'}
Excercise room TV switch --:-- 4--:--{'neighbors': [1, 2, 3, 4, 6, 7, 9, 11, 12, 15, 16, 17, 20, 29], 'id': 662003093, 'pings': {'elapsedtime': 1484, 'passes': {1: 392, 2: 381, 3: 326, 4: 385}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'Excercise room TV switch'}
frontBalkonyCameraSwitch --:-- 5--:--{'neighbors': [1, 4, 5, 15, 22, 23, 24, 25, 27, 30], 'id': 1875535582, 'pings': {'elapsedtime': 1172, 'passes': {1: 283, 2: 283, 3: 330, 4: 276}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'frontBalkonyCameraSwitch'}
Game Room TV switch --:-- 6--:--{'neighbors': [1, 2, 3, 6, 7, 9, 13, 15, 16, 17, 20], 'id': 115635811, 'pings': {'elapsedtime': 1681, 'passes': {1: 437, 2: 437, 3: 384, 4: 423}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'Game Room TV switch'}
livingRoom camera switch --:-- 7--:--{'neighbors': [1, 4, 5, 11, 22, 23, 24, 26, 27, 30], 'id': 1469978670, 'pings': {'elapsedtime': 1155, 'passes': {1: 279, 2: 273, 3: 337, 4: 266}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'livingRoom camera switch'}
MeterTotalLeftBox --:-- 8--:--{'neighbors': [1, 2, 3, 6, 12, 13, 14, 16, 17, 20], 'id': 374645596, 'pings': {'elapsedtime': 7231, 'passes': {1: 733, 2: 915, 3: 3725, 4: 1858}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'MeterTotalLeftBox'}
MeterTotalRightBox --:-- 9--:--{'neighbors': [1, 3, 7, 12, 13, 16, 17, 20], 'id': 776367642, 'pings': {'elapsedtime': 276, 'passes': {1: 67, 2: 71, 3: 70, 4: 68}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'MeterTotalRightBox'}
outsideBalkonyLights --:-- 10--:--{'neighbors': [1, 4, 5, 11, 15, 23, 24, 25, 26, 27, 30], 'id': 652241576, 'pings': {'elapsedtime': 1532, 'passes': {1: 642, 2: 330, 3: 328, 4: 232}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'outsideBalkonyLights'}
outsideMosquito switch Balkony--:-- 11--:--{'neighbors': [1, 4, 5, 17, 22, 23, 25, 26, 28, 30], 'id': 1392012060, 'pings': {'elapsedtime': 841, 'passes': {1: 220, 2: 177, 3: 171, 4: 273}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'outsideMosquito switch Balkony'}
outsideMosquito switch tree --:-- 12--:--{'neighbors': [1, 2, 3, 12, 13, 15, 17, 20, 29], 'id': 1215370021, 'pings': {'elapsedtime': 1385, 'passes': {1: 288, 2: 327, 3: 385, 4: 385}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'outsideMosquito switch tree'}
poolEnergy total --:-- 13--:--{'neighbors': [1, 2, 4, 11, 15, 16, 17], 'id': 1766870014, 'pings': {'elapsedtime': 272, 'passes': {1: 71, 2: 63, 3: 68, 4: 70}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'poolEnergy total'}
studyOutlet --:-- 14--:--{'neighbors': [1, 4, 5, 11, 22, 23, 25, 26, 29, 30], 'id': 24596767, 'pings': {'elapsedtime': 1326, 'passes': {1: 324, 2: 386, 3: 280, 4: 336}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'studyOutlet'}
switch for insteon modem --:-- 15--:--{'neighbors': [1, 4, 5, 11, 15, 27, 29, 30], 'id': 719674580, 'pings': {'elapsedtime': 70, 'passes': {1: 17, 2: 18, 3: 16, 4: 19}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'switch for insteon modem'}
ThermostatDownstairs --:-- 16--:--{'neighbors': [1, 5, 9, 11, 13, 14, 15, 17, 22, 23, 24, 25, 27, 28, 29, 30], 'id': 55209657, 'pings': {'elapsedtime': 701, 'passes': {1: 119, 2: 18, 3: 332, 4: 232}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'ThermostatDownstairs'}
ThermostatExerciseRoom --:-- 17--:--{'neighbors': [1, 2, 6, 7, 11, 12, 13, 16, 17, 20], 'id': 1623295497, 'pings': {'elapsedtime': 1419, 'passes': {1: 321, 2: 388, 3: 326, 4: 384}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'ThermostatExerciseRoom'}
ThermostatGameRoom --:-- 18--:--{'neighbors': [1, 3, 7, 9, 12, 13, 14, 15, 16, 17, 20], 'id': 1332829462, 'pings': {'elapsedtime': 1214, 'passes': {1: 326, 2: 323, 3: 283, 4: 282}, 'pingcount': 4, 'success': 4, 'failure': 0}, 'name': u'ThermostatGameRoom'}
it will contain all active (non battery) zwave devices with its neighbors and ping round trip times of 4 tries.
I would need the lines after the line
- Code: Select all
Script results
Here is what you need to do:
- download this py file https://www.dropbox.com/s/7uyt7c82r5l9vh6/zwave.py.zip?dl=1 expand and save it in~/documents/zwave.py
- then create an action group with an action like this = execute the external zwave.py script:
- then execute the action just created
- then copy the lines after results and paste into an email and send to me.
- then wait patiently
thanks in advance
Karl