dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

Where are green links? #5429

Closed LeoeLeoeL closed 2 years ago

LeoeLeoeL commented 2 years ago

Describe the bug

I updated from 12.6 to 13.1. Now lots of green (strong) links are vanished. I read about the new LQI filter but I tried to set 1 and 0 too!! ## Steps to reproduce the behavior

Expected behavior

I expect to watch strong links as before. There are devices very close each other and they should be green. ## Screenshots An old screenshot grabbed on 2.11.1-beta: ![image](https://user-images.githubusercontent.com/65825223/139556286-2489544b-5c9d-45b0-a436-cca5ddfb95da.png) Now: ![image](https://user-images.githubusercontent.com/65825223/139556176-9f076838-fc39-4b07-8321-02d0e8f97e5a.png) We can see the difference focusing on the device called ON/OFF Plugin Unit 46 (upper picture) and Multipresa 1 (lower picture) in the lower right.. It's the same device in the same place. But also Presa Esterna Strada and Irrigazione Strada in the upper left; The distance between them is 15 cm and in previous versions the link was green ## Environment 0x26720700 - Host system: Raspberry Pi - Running method: Raspbian - Firmware version: 26720700 - deCONZ version: (2.13.01) - Device: ConBee II - Do you use an USB extension cable: yes -- only relevant for ConBee I/II - Is there any other USB or serial devices connected to the host system? If so: Which? APC UPS ## deCONZ Logs

Additional context

Smanar commented 2 years ago

Hello perhaps https://forum.phoscon.de/t/network-routing-optimisation-question-deconz-2-13-01/615/8

But I have same reaction on my network (and less green if I enable source routing), but all is working same than before, for me it s just cosmetic.

LeoeLeoeL commented 2 years ago

Ok, I read about the different calculation but I lost green links among devices that "kiss" each other!!

Smanar commented 2 years ago

Have you check the LQI value to compare ?

LeoeLeoeL commented 2 years ago

No I didn't. Anyway, if this modification has be done to help to discover weak links it would be useful to understand which is the weaker device in the link. I.E. if I see 128/255 I would like to know which is the weaker between Lidl and Osram smartplugs. Two more questions:

Last thing: image The thin red line under LUCE SALA CINEMA and MULTIPRESA 1 is a glitch?

Mimiix commented 2 years ago

I am not sure if this is a bug as per #5113.

Mimiix commented 2 years ago

From the discord

Zigbee network troubleshooting

New UI features have been added to find routing issues in a Zigbee network.

The line colors between nodes have more contrast to better show weak links.

Routing depends on how good devices can "see" each other. The driving parameter here is the Link Quality Indicator (LQI).

For example, given two lights A and B, there are two LQI values in play: (i) How A sees B, and (ii) how B sees A. When the LQI button in deCONZ is enabled these values are shown.

LQI value meanings:

Always aim for LQI values of 200 and above to get a stable network!

Under "Panels > Source Routing" is a new checkbox Minimum LQI display which hides links below the given LQI value.

When setting a new minimum LQI value, after a few seconds weak links are hidden in the UI, to easier spot areas where a router should be placed.

New Dependency

Under Linux the libqt5qml5 needs to be installed.

Please refer to the related version to get and overview of respective changes. The detailed changelog can be found at GitHub release page v2.13.0.

Community message

Please note that the DDF functionality is in beta and we do not provide active support for it. It is meant for advanced users. Any questions about I should be asked here: https://forum.phoscon.de/c/deconz/general-support/12 but no promises here.

A special thanks to all contributors of the deCONZ Github community.

LeoeLeoeL commented 2 years ago

So, Houston we ha a problem (of connectivity) :-) I have bulbs in the same chandelier and they don't have a line if I set 130! And... Ikea extenders work worse than a bulb as routers. Practically useless.

pillemats commented 2 years ago

Same Problem here. In 12.6 all works very well. At 13.x same problem with the connection

Mimiix commented 2 years ago

Would be useful to see the lqi values in 2.12.6 and the latest beta.

Is there differences there?

LeoeLeoeL commented 2 years ago

Probably not. It could be nice to have both option to choose for the representation: "(LQI A + LQI B) / 2" and "Minimum of LQI A and LQI B".

Mimiix commented 2 years ago

Probably not.

You mean that there's not a difference between the LQI Values in 2.12.6 and the latest beta? Just that the colors are different?

LeoeLeoeL commented 2 years ago

I suppose LQI values are given by devices so that the Deconz version should be irrelevant. Somebody who still has 2.12.6 can verify when he will update. But losing so many green lines has a bad impact. You realize Zigbee is not so reliable.

Mimiix commented 2 years ago

But losing so many green lines has a bad impact. You realize Zigbee is not so reliable.

Well it isn't really. It just made it more clear. If the lines changed color, but the functunality stayed the same: What is the issue then? It's even more helpful now. It's mostly a color/gfx change.

As you are the reporter of a bug, you need to make sure it complies to #5113. I'm happy to wait a few days, but if nobody comes up with anything reproducable / proof i have to close this issue.

LeoeLeoeL commented 2 years ago

Ok, let's just wait few days in order to see if somebody notices differences in LQI values updating from 2.12.6 to 2.13.x.

Mimiix commented 2 years ago

Can't you revert yourself? Just to test out?

manup commented 2 years ago

Probably not. It could be nice to have both option to choose for the representation: "(LQI A + LQI B) / 2" and "Minimum of LQI A and LQI B".

This is indeed on the todo list to have get different views for the network. v2.13.x approach looks now way more drastic in some networks, as above. But this is the most realistic picture to really figure out weak spots.

The devil is in the details, the best is always to have A and B LQI as high as possible, so sending and receiving is solid. In my experience showing "(LQI A + LQI B) / 2" is misleading since a connection might only be good in one direction, while the line is shown more greenish.

LeoeLeoeL commented 2 years ago

... it would be useful to understand which is the weaker device in the link. I.E. if I see 128/255 I would like to know which is the weaker between Lidl and Osram smartplugs.

Do you think it's possible to do that?

jeroen85 commented 2 years ago

Might be related.

V2.12.6 shows green links and LQI between nodes. 2 12 6

V2.13.1 doesn't show any links between nodes. (But I do not experience any issues with connectivity) 2 13 1

First V2.13.1 showed weak links. After a restart, all links disappeared.

Running Conbee II (fw: 26720700) on Synology NAS via marthoc docker image.

Mimiix commented 2 years ago

@jjansen85 As i said on Tweakers, their pure indicative. In this case: What happens after a restart or if you click LQI? Either way: please post this on the forum as it is more a user question/own setup issue than a general bug.

jeroen85 commented 2 years ago

Sorry, thought this might have been related to this issue. Restart or clicking LQI does not change anything.

Mimiix commented 2 years ago

The difference here is that you are on Docker.

Perhaps the VNC is not showing it properly 🤔.

I'll send you a PM on Tweakers, perhaps we can test some things.

pillemats commented 2 years ago

I am on win10 vm and have the same. Also the devices won’t connect! Not only I can’t see the lines….

so I think this is not a docker problem

waiting for 3 hours won’t be a solution. The don’t connect

Mimiix commented 2 years ago

lso the devices won’t connect!

Different issue, as devices are working in the above cases. Please open a forum post on this and make sure to add logs.

Smanar commented 2 years ago

And if you set lower value for LQI ? < 130 ? On the last version deconz seem more psychorigid ^^

Mimiix commented 2 years ago

@Smanar Lets keep it on topic here please. 1 issue at the time.

pillemats commented 2 years ago

lso the devices won’t connect!

Different issue, as devices are working in the above cases. Please open a forum post on this and make sure to add logs.

sorry, it was my mistake! devices works correctly but not shown in deconz as connected line

Bildschirmfoto 2021-11-02 um 18 20 07
Mimiix commented 2 years ago

@pillemats I do see links.

It sometimes can take a while and somtimes they dont show for a while. Sometimes you have to move them to make them show.

pillemats commented 2 years ago

Yes I now but in 12.6 they will connect much faster. 1 h is ago after starting 13.1 and many devices are not connected and don’t work. Also many routines I set. In 12.6 all devices are connected after 10 minutes

LeoeLeoeL commented 2 years ago

A strange thing in my network under 13.1 (the 2nd picture in this thread) is the only "long" green line is between the coordinator and an end device (Tradfri shortcut button) and that device is farer than many routers .

manup commented 2 years ago

Can you check the deCONZ > Menu > Panels > Source Routing > Min LQI display value if the links are weak and fall below this value they are not shown.

In that case you can set it to 0 to disable the filter.

The "Fast neighbor discovery" checkbox speeds up the query of the neighbor links (but should be disabled after that).

pillemats commented 2 years ago

i cant set lqi max down to 75

github-actions[bot] commented 2 years ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 2 years ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

felker commented 2 years ago

@Mimiix is there a way to figure out which nodes are A,B in the ordering of the LQI values in https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/LQI-explained ?

Smanar commented 2 years ago

Lol, ha yes good question. When there is 2 routers with 80/70, how to know wich one is A or B ?

Mimiix commented 2 years ago

The LQI is shown Per line between 2 devices.

felker commented 2 years ago

But is there anyway to know which line is which direction? E.g. in this example the two Lamps are mains-powered devices, but the switch is battery-powered so the LQI is nonexistent in one direction, presumably Lamp to Switch? So it can be inferred that the 255 LQI corresponds to A->B A=Lamp, B=Switch, and the 0 LQI is B->A ?

But unclear how you could figure it out for the LQI values between the two lamps...

deCONZ-LQI