Koenkk / zigbee2mqtt

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

[Feature request]: Expose "Reconfigure" to Home Assistant or Create Native Auto-Reconfigure for Offline Devices #21543

Open sirjmann92 opened 8 months ago

sirjmann92 commented 8 months ago

Is your feature request related to a problem? Please describe

Occasionally devices will fall off the network or go "Offline". There doesn't seem to be a rhyme or reason to which devices, probably caused by temporary interference and lack of response to Ping requests (2/2). A simple Reconfigure in Z2M brings the device back. This doesn't happen very often, and is likely just the nature of a Zigbee network operating on the same frequency as so many other devices in a home (2.4) , which makes it difficult to find a proper solution. You can imagine the frustration if one of the devices that goes offline is one that controls lights while you're on the toilet, shower, or a dark room like a basement while you've got your hands full (wife aggro!)

Describe the solution you'd like

As a workaround, to bring devices back online without having to manually open Z2M, locate any "Offline" devices and select "Reconfigure", it would be nice to be able to create an automation in Home Assistant that listens for devices to go "Offline" and then performs a "Reconfigure" on the device to bring it back.

Describe alternatives you've considered

An alternative to exposing the Reconfigure as an endpoint to HA would be a native automation or feature within Z2M to continually check for devices that are offline (or at a configurable interval) and perform the Reconfigure. Both solutions would be ideal, although either would satisfy the requirement/request.

Additional context

I've noticed there are certain endpoints available to Home Assistant now, sensors, switches, etc... like Permit Join, which makes it possible, and very handy, to do things like "Alexa, open Zigbee" with an automation that runs in HA which turns on Z2M's Permit Join with a timer to disable it after a set period (love it!)... Expanding the integration further by exposing additional features to HA would allow for more control and freedom of operation. This feature has the potential to dramatically improve the stability and reliability of a Zigbee network using Zigbee2MQTT (depending on the setup and environmental conditions).

DAVIZINH0 commented 5 months ago

hello. this is a good idea. exist any progress or workarround to make this? maybe in home assistant we can detect when a device is availabe (this is easy) and then send a mqtt topic to reconfigure this device. is this posible???

efenex commented 5 months ago

I have the same need for an automation to be able to trigger reconfigure, as I have aqara switches that will regularly reset and require a reconfigure to function normally again.

praun commented 2 months ago

yes, very good idea this. To be honest i was kinda baffled that this wasnt already possible..!

I have a zigbee device that sometimes gets stuck in the wrong state and then I have to go into z2m and manually reconfigue it, and it instantly pops back into the correct state.

So i just made a quick google search, to learn how to automate this process, but sadly i just ended up here..

boredmthfkr commented 1 month ago

A very good idea. We need this... I am tired of how many times I have to manually trigger the reconfigure for a lightbulb I have that goes offline. Another identical lightbulb, no more than 2 meters away has no issue.

GuyFullalove commented 3 weeks ago

This has my vote :)