Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Z-Range analyzer 1.3

   (6 reviews)

1 Screenshot

About This File

First of all, I would like to express my sincere appreciation to @10der  @Alex @petergebruers  @robmac  @amilanov @Bodyart @drboss and others for their time and help to improve / debug the code.

The scene “analyzes” mesh network configuration in the system and displays the location efficiency of the devices in table format. Table sorted by the rooms according to average location efficiency of the devices in the room (in ascending  order - from lowest to highest efficiency). More like "Z-wave mapping" in your residence.

In addition scene analyzes location efficiency of HC2 location.

To achieve precise data, please make sure your devices' physical location correctly associated with room names.

For example:

in-wall switch located in kitchen, but controls lights in garden, should be assigned to kitchen and not garden.  (the device name should be assigned as  garden lights)

Usually inclusion of the device done close to HC2 therefore the route table is incorrect. To achieve reliable data, perform inclusion when device located in designated place/spot in residence or perform Mesh Reconfiguration to device after inclusion near to HC2.

User configurable parameters,:

  1. showDevices=false          if set tot true,not sorted table of all devices will be displayed also).
  2. fontSize=100     font size percentage (80% - 150%).

Big Note: 

If you've removed device which is part of mesh route to others, the route table doesn't get updated !

Controller continues to maintain undated route table! Mesh table must be reconfigured. (Z-Range Analyzer identifies these devices.)

Warning: Battery powered devices cannot forward packets and cannot be used in route for others.  

Spoiler

Capture1.PNG.361218a63c7676c50cc889df11af0b1d.PNG

To observe data in graphic, use @10der's visualizer.

 

Run the scene and here some details on what will be displayed:

When or if corrupted/deleted devices have found in your system, data details will be printed before table appearance.

Spoiler

Capture.PNG.efa07b70705d7f4f6a7609a0c3e4ab56.PNG

 

Table header:   

Spoiler

Capture.PNG.90a8f467ea2911974b2bc19a28e7d068.PNG

·       Number of master (physical) and slave devices in the system. By hovering mouse over controller name, table color index and Z-Capacity are shown

Spoiler

Capture.PNG.c52de332ab1f4ce9a5ac562c9367ab7d.PNG

·       Date range of displayed data (if any changes done like adding, relocating devices after this date, mesh reconfiguration requires)

·       HC and devices location efficiency.  If devices lack mesh route data (colored by red) present in the system, two efficiency numbers displayed. (50%/60%).

  1. including devices with no routes and neighbors data
  2. excluding these devices.

Table columns:

Capture.PNG.4fcd4847c100230a9570e47a531a36d9.PNG

 

1.   

Script's total serial number / Script's serial number in room

2.    Room Name  %

Spoiler

Capture.PNG.c285d9ece411f3755a4e2ac14d928a0d.PNG

Room name and average location efficiency of the devices in room

3.    Parent ID: Name

Spoiler

Capture.PNG.e013ce8446aa11403165657b1b1cd0a8.PNG

Parent (master) device ID, name and room. Devices lack mesh route data colored by red. By hovering mouse over, child (slave) devices list is shown (and number of last 24 hours z-wave events of each slave)

4.   %

Percentage of location efficiency of each device in the room.

5.     iSee

Spoiler

Capture.PNG.af29d715ea6fe30344ca9f63b06abbf6.PNG

Total number of neighbors (adjacent) devices that it can communicate with (seen by device). By hovering mouse over, devices details are shown. Great view on how device located by seeing who neighbors are.

    The data shown in two colors:

                    I.            green - Device can communicate directly to controller. Shades of green according to number of adjacent neighbors. greener, more neighbors)

                  II.            red - Device doesn’t communicate directly to controller.  Shades of red according to number of adjacent neighbors. (redder, less neighbors)

If tilde sign appears before  the number - means the list includes device(s) that not in the system (deleted device). I devices details menu this device marked grey.

 

4.     Last Route

 List of devices that participate in route communication to controller. By hovering mouse over list of devices details is shown.

Spoiler

Capture.PNG.4e9bd02ea940e3bfd59eafbd5e0c4741.PNG

3.     iRoute

Total number of devices where this device is part of communication route. By hovering mouse over, devices details are shown.

5.     Status

Last working route status. (OK, pending, in progress, error)

6.     Time Stamp

Time stamp of last working route reported to the controller.         

7.     24History

Master's last 24 hours events number and percentage of total events. By hovering mouse over parent in Parent ID: Description column, number of z-wave events for each slave is shown. Please notice 24 hours history based on saved logs in event panel. If you have devices that excluded from saving logs,  theirs events are not available.

 

Points for improvement

Location efficiency calculated relatively to your best device in system, therefore red and yellow marked devices don't necessary indicates that your system is broken.

Special attention requires when changing/removing physical place of devices in location with low efficiency level, it could cause loss of communication or delays.

 

        I.            Parent ID: Description - Device marked red indicates lack of route data. Perform mesh reconfiguration for this device. If reconfiguration failed, recommended to exclude/include the device (Painful process and occasionally updates in code are required).

      II.            Last Route - More devices in route increase probability of communication delay and indicates that device is in distance from controller.  Since in Z-Wave each device calculates the shortest route to the destination (up to 4 hops), therefore if route includes more than three devices recommended

  1. Check/verify devices in route as well. Mesh reconfiguration recommended.
  2. Device is far away from HC2 or Z-wave signal interrupted.

    III.            iSee - If number is in shade of red and relatively low, means the device located far away from controller and low number of adjacent neighbors in that area or device located where physical barriers such as metal panels, concrete walls and etc. are blocking Z-Wave signal. (or located in-wall socket and Z-wave signal interrupted) Increased probability of packets loss rate, delay expected.

    IV.            iRoute - As much as number is higher, means increased workload for this device (needs to track messages from this number of neighbors). Increased probability of delays from device and routed devices.  Recommended number less than five devices.

      V.            Route tables do not get automatically updated by adding a new device or device relocation. Mesh reconfiguration (in Z-Wave Panel) requires.

Do not reconfigure mesh network when devices are not in designated spot.


What's New in Version 1.3   See changelog

Released

Added new column 24History

Last 24 hours events number and percentage of total events. By hovering mouse over parent in Parent ID: Name column, number of z-wave events for each slave is shown.

Spoiler

Capture1.PNG.58827bab0aea2e9229fcd03cbbe33f6d.PNG

Spoiler

Capture.PNG.7c3dcfa6df89b216e4af69dff90f6198.PNG

Please notice 24 hours history based on saved logs in event panel. If you have devices that excluded from saving logs,  their events are not available.



User Feedback

Recommended Comments



OK, no problem. It is a great help as is like this too :) Thanks!

I hope with the help of these scenes I will find the reason why some of my Fib motion and door sensors get stuck sometimes in triggered position...

Link to comment
Share on other sites

On 1/21/2020 at 3:41 PM, cag014 said:

Looks like this device has been deleted, but mesh routes didn't update.

To fix it you need to reconfigure mesh.

  Hide contents

Capture.thumb.PNG.cf7ca88a3b9aff4c111d433c64a92cda.PNG

 

By the way, please check if any of your scenes or VDs are still trying to use this device? It could freeze your system (for HC2 this device is dead)

 

I'm doing the mesh reconfiguration, but there are some devices, which fail to get neighbour list, but they seem to work OK, they send trigger.

After reconfiguration I still have 2 problematic devices:

image.png.0e2a6a17dbbd2179fac9b445f2008000.png

Is there any other way to remove them...? Or should I run the mesh reconfig again...?

Thank you!

Link to comment
Share on other sites

If you did reconfiguration and deleted devices still appears in routes there is nothing that you can do. There is some kind of "bug" in mesh SW configuration although the system works fine and mesh engine works OK.

 

Link to comment
Share on other sites

1 hour ago, johndeere said:

I'm doing the mesh reconfiguration, but there are some devices, which fail to get neighbour list, but they seem to work OK, they send trigger.

As @cag014 said in some cases that happens, I would try a few times, even throw in a "soft reconfigure". Please do them une buy one, not the whole network in one go, you'll lose track and there is no benefit

 

It is hard to tell if either the device does not receive the command, or the HC does not send one. You need a Zniffer to dig deeper.

 

You might have a busy network, and to help a bit with that you can try to do some of the recommendatiuns of this scrip:

 

 

 

 

  • Thanks 1
Link to comment
Share on other sites

Thank you guys for your tips! I will start the whole reconfig procedure all over again, soft reconfigure each device, run your codes and see the change...

 

Interesting, that together with restoring the backup, the wrong route table was also restored, even that the device does not exist...

Another interesting thing: before this procedure I had problems with soft reconfig with a door sensor. After reset/restore the door sensor ID appeared in route table, even that the sensor got new ID after I had to remove and add it again...

Link to comment
Share on other sites

Well, still struggling with reconfiguration... As I expected, the number of empty routes is growing after each reconfiguration...

 

image.png.4a242bcf125cf9fe0bcea28ea1cf1400.png

 

I'm afraid if I continue reconfiguring, I will have more bad routes than good ones, and my Z-wave network will crash...

What would you do in my place?

 

Each time I do a backup, system freezes at "stopping services"... I have to disconnect it from power outlet.

After restart, some sensors randomly auto-armed again...

Edited by johndeere
Link to comment
Share on other sites

What do you mean? Do you have REAL problem's like slow response or no response form devices? Or "presumed" issues based on the output on this tool?

Link to comment
Share on other sites

7 minutes ago, petergebruers said:

What do you mean? Do you have REAL problem's like slow response or no response form devices? Or "presumed" issues based on the output on this tool?

Yes, I have real problems that I'm trying to resolve. Sensors waiting for sync for ages even after soft-hard reconfiguration, deletion-readding, sensors stuck in triggered, not sending trigger, sensors auto-armed randomly after restart, backups frozen at "stopping services"... I wrote a lot these days about my problems here in forums.

 

These tools are very helpful.

Link to comment
Share on other sites

6 minutes ago, johndeere said:

I wrote a lot these days about my problems here in forums.

I have read all your posts, and if by now you have not made any progress, here is my advice

 

If you have spend more than let's say 10-20 hours with this tool + "soft reconfigure" + "mesh reconfigure" and still have an unreliable network and nobody seems to be able to help you, then you have reached the limits of what is possible with this tool.

 

If you have reached this point, get a Zniffer.

 

Everything else is a waste of time.

 

Please read this topic to understand why am so confident about this...

 

 

  • Thanks 1
Link to comment
Share on other sites

5 hours ago, petergebruers said:

I have read all your posts, and if by now you have not made any progress, here is my advice

 

If you have spend more than let's say 10-20 hours with this tool + "soft reconfigure" + "mesh reconfigure" and still have an unreliable network and nobody seems to be able to help you, then you have reached the limits of what is possible with this tool.

 

If you have reached this point, get a Zniffer.

 

Everything else is a waste of time.

 

Please read this topic to understand why am so confident about this...

 

 

 

Wow, that's been a whole lot of information... :) Thank you for pointing out this troubleshooting collection for me. I will try them one by one.

As far as I learned, I need:

- ability to change advanced parameters of devices (at the moment this doesn't work for many of my devices - hopefully it will after delete - add again)

- ability to sync configuration and see actual parameters (same situation as above)

- ability to soft reconfiguration and mesh reconfiguration (hopefully this will also work well once upon during troubleshooting procedure)

 

This means a lot of device deletion = a lot of dead routes in routing table... A lot of time, therefore a lot of backup (I won't be able to do this within one day).

Now I wonder, if the backup stores every corrupted data from previous problems, will I ever reach an error-free status with all the trash left inside...?

 

Anyway, I have no choice, but go on and find out...

Many of you guys here are of great help for me in these hard times.

THANK YOU SO MUCH!

Link to comment
Share on other sites

@cag014, Thanks a lot for this amazing tool! 
Could you please help me with this error:

[DEBUG] 15:20:38: 2020-03-31 15:20:38.182575 [ fatal] Unknown exception: /opt/fibaro/scenes/5.lua:74: attempt to compare nil with number

Link to comment
Share on other sites

47 minutes ago, vsokolov said:

@cag014, Thanks a lot for this amazing tool! 
Could you please help me with this error:

[DEBUG] 15:20:38: 2020-03-31 15:20:38.182575 [ fatal] Unknown exception: /opt/fibaro/scenes/5.lua:74: attempt to compare nil with number

Please try attached file. Let me know if it works and I'll update download site.

Z-Range analyzer_v1.3.txt

Link to comment
Share on other sites

Guest cag014

Posted (edited)

May I ask you... is your HCL connected as secondary controller to HC2?

If yes, could you please post data of device that included in HCL and seen by HC2?

Execute on HC2

http://<hc2-IP>/api/devices/<deviceID>

copy paste and post the data.

 

Looks like device that seen by HC2 (but included in HCL) has partial data.

 

Edited by cag014
Link to comment
Share on other sites

7 minutes ago, cag014 said:
7 minutes ago, cag014 said:

May I ask you... is your HCL connected as secondary controller to HC2?

Yes

8 minutes ago, cag014 said:

If yes, could you please post data of device that included in HCL and seen by HC2?

 

{"id":1152,"name":"ХВС кухня","roomID":42,"type":"com.fibaro.binarySwitch","baseType":"com.fibaro.actor","enabled":true,"visible":true,"isPlugin":false,"parentId":0,"remoteGatewayId":2,"remoteDeviceID":22,"interfaces":["deviceGrouping","fibaroFirmwareUpdate","remoteGateway","zwave","zwaveMultiChannelAssociation"],"properties":{"categories":"[\"lights\"]","configured":true,"dead":"false","deadReason":"","deviceControlType":"20","deviceGroup":"[]","deviceGroupMaster":"0","deviceIcon":"2","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","firmwareUpdate":"{\"info\":\"\",\"progress\":0,\"status\":\"UpToDate\",\"updateVersion\":\"1.41\"}","log":"","logTemp":"","manufacturer":"","markAsDead":"true","model":"","nodeId":"11","parameters":[],"parametersTemplate":"0","pollingTimeSec":0,"productInfo":"1,121,0,33,0,17,1,41","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","updateVersion":"","useTemplate":"false","userDescription":"","value":"false","zwaveCompany":"ConnectHome","zwaveInfo":"3,4,5","zwaveVersion":"1.41"},"actions":{"abortUpdate":1,"reconfigure":0,"retryUpdate":1,"startUpdate":1,"turnOff":0,"turnOn":0,"updateFirmware":1},"created":1585654107,"modified":1585654107,"sortOrder":725}
Link to comment
Share on other sites

3 minutes ago, cag014 said:

Since devices that included in HCL has no parent ID, their mesh routing couldn't be founded and only devices included in HC2 should be displayed.

Please try below:

 

Z-Range analyzer_v1.3.txt 20.93 kB · 1 download

 

[DEBUG] 17:28:15: 2020-03-31 17:28:15.220472 [ fatal] Unknown exception: /opt/fibaro/scenes/5.lua:27: table index is nil

Link to comment
Share on other sites

Guest cag014

Posted (edited)

Could you post data of parent device included in HCL (device where parenId=1)... interesting how it looks in HC2.

please try below

Z-Range analyzer_v1.3.txt

Edited by cag014
Link to comment
Share on other sites

17 hours ago, cag014 said:

 

please try below

 

[DEBUG] 11:12:51: 2020-04-01 11:12:51.139072 [ fatal] Unknown exception: /opt/fibaro/scenes/5.lua:153: attempt to index field '?' (a nil value)

 

 

17 hours ago, cag014 said:

Could you post data of parent device included in HCL (device where parenId=1)... interesting how it looks in HC2.

 

Sure ? device where parenId=1 is included directly in HC2

17 hours ago, cag014 said:

interesting how it looks in HC2.

 

Please find all devices.

devices.txt.zip

Link to comment
Share on other sites

1 hour ago, vsokolov said:

Sure ? device where parenId=1 is included directly in HC2

No. device where parentId=1 included in HCL (not in HC2), how they looks in HC2?

As you can see slave device in HCL doesn't have parentId  in HC2 devices. That creates the problem to find mesh routing.

 

Link to comment
Share on other sites

21 minutes ago, vsokolov said:

 

I was already attach full device list in reply above

But I don't now which device included in HC2 and which in HCL.

Link to comment
Share on other sites

1 minute ago, cag014 said:

But I don't now which device included in HC2

All devices where "parentid":1

 

2 minutes ago, cag014 said:

which in HCL.

All devices where "parentid":0

 

Scene is stored and started from HC2.

 

Link to comment
Share on other sites

1 minute ago, vsokolov said:

All devices where "parentid":0

All devices with parent ID: 0 are master devices? Then you have too many of them.

Usually Z-wave device has one master and several slaves. When it connected to other gateway, the slave has no parentId, what I'm interesting in is what happens with master device in main gateway?

Can you choose one switch in HCL with all master/slave devices and to see how they are defined in HC2?

Link to comment
Share on other sites

4 minutes ago, cag014 said:

All devices with parent ID: 0 are master devices? Then you have too many of them.

It is not "Z-wave master-slave connection" 
It is TCP/IP remote gateway connection

 

Знімок екрана 2020-04-01 о 16.33.54.png

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...