Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.35k stars 1.69k forks source link

disable zigbee repeaters (xiaomi smart plug) #2380

Closed kitopopo closed 4 years ago

kitopopo commented 5 years ago

hi,

Does anyone know if you can disable repeater mode on zigbee devices such as zigbee smart plug sockets? I have 3 smart plug sockets that I would like to include within my zigbe2mqtt network but I am not interested in working as signal repeaters. these 3 plugs would not be plugged into plugs from UPS and I would not be interested in pairing any open sensor to these plugs. My alarm would not work if the power goes out in my house and some sensor is paired to these signal repeaters. How i can dissable de router mode in my smart plug sockets? I would be interested in using only these plugs as normal plugs inside of my zigbee network

Tanks in advanced.

Best regards

zigbee2mqtt version: 1.7.1 CC253X firmware version: 20190608

Koenkk commented 5 years ago

In Zigbee it is not possible to do this, however I would expected that in case the power goes down the traffic of the alarm is routed through another device.

kitopopo commented 5 years ago

In Zigbee it is not possible to do this, however I would expected that in case the power goes down the traffic of the alarm is routed through another device.

Thanks for your response, I have read that end devices such as Xiaomi aperture sensors do not seek a new routing, I do not know if I am correct.

Thanks again

pcb1962 commented 5 years ago

I have read that end devices such as Xiaomi aperture sensors do not seek a new routing, I do not know if I am correct.

I can confirm from my testing that Aqara end devices (I have around 40 door contacts, motion sensors and temperature/humidity sensors) will continue to find a route to the coordinator if you take down the router that they are shown connected to in the network map if you're using the regular coordinator firmware. I found the mesh to be much less resilient when I tried the source routing firmware, not an issue for me as I use zigbee2mqtt for sensors only, my bulbs remain on the Tradfri gateway.

kitopopo commented 5 years ago

Hi, ok. Thanks for your answer. I will test if my final devices can take a new network route. Can i make a new answer? After i will close this issue. Is it possible to hide the information of the zigbbee2mqtt log in a raspberry pi? My raspberry pi log is filled with zigbee information every minute. since the log I can see it through the command: journalctl -u zigbee2mqtt.service -f So I would like to know how I can hide the debug information only in my raspberry log. thanks in advanced. Best regards

pplucky commented 4 years ago

In Zigbee it is not possible to do this, however I would expected that in case the power goes down the traffic of the alarm is routed through another device.

What if we change the type from 'Router' to 'EndDevice' on the database.db file, won't this allow it?

sallazda commented 4 years ago

What if we change the type from 'Router' to 'EndDevice' on the database.db file, won't this allow it?

I am interested in the answer. I would like also choose which device is not a Router.

kitopopo commented 4 years ago

Yes, I am also interested in this answer. It would be very interesting to be able to change 'router' to 'end device' on the database.db device and that these devices only work as end devices. I have 4 xiaomi plugs that I don't want to work as routers, just as end devices. I have these plugs unused and unplugged also have 4 Philips Hue lamps that I would like to work only as final devices, I could not add these lamps to the zigbe2mqtt because I do not want them to work as repeaters since I cut the power through the switch and then I would have routing problems with all my devices .

If the changes in the database.db file don't work, could you find another way to achieve this? I think a lot of people would be interested in getting this

thanks for your job, best regards.

kitopopo commented 4 years ago

Hi dear friend,

As the fellow @pplucky commented, today I tried replacing "router" with "end device" in the database.db file. After making this modification I generated a network map. I could see that my xiaomi samart socket has changed from blue to yellow in the network map (the routers are blue) and the devices that were linked to my smart socket now appear without lines. Does this modification really make my samart socket work only as an end device? or still working as a router? thanks, best regards

kitopopo commented 4 years ago

According to my last tests carried out during the last month, I observe that changing in the configuration file "end device" instead of "router" I get the xiaomi smart plug to work as final devices. No end device is linked to the smart socket, but if the samart socket is linked to other smart sockets. Also on the network map we can see how change the smart socket from blue (router) to yellow (end device). This operation can be seen and confirmed by generating the zigbee network map.

steve41200 commented 4 years ago

I have try. It works, but we lost the possibility to ping device. it's too bad. Zigbee2mqtt see it as a End Device he thinks on battery so impossible to ping it :(. Have you a tips to know if the device is online or offine ?

andrazek commented 8 months ago

If that truly works, why there's no option to change this under the Zigbee2MQTT settings for every device?

heisenberg2980 commented 5 months ago

According to my last tests carried out during the last month, I observe that changing in the configuration file "end device" instead of "router" I get the xiaomi smart plug to work as final devices. No end device is linked to the smart socket, but if the samart socket is linked to other smart sockets. Also on the network map we can see how change the smart socket from blue (router) to yellow (end device). This operation can be seen and confirmed by generating the zigbee network map.

@kitopopo are you sure that is the case? Because it could be that by updating the database you just make Home Assistant "believe" the device is an end device, but in reality the device is still routing message as a router (you just don´t see it in z2m because z2m thinks the device is not a router). AFAIK the only way to know if a device is routing messages is to sniff the zigbee traffic.

g-work commented 1 month ago

Can someone confirm if editing the database really makes a router device an end device? Or does it only show up as end device in HA and continues routing messages?

fakorte commented 1 month ago

This problem has been bothering me for a long time and I would be very interested in a solution.