-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncio.TimeoutError when permit to join on specific router #154
Comments
What firmware build date is this? |
20211207, I'll try the latest 20220219. The CIE is a zzh |
Shouldn't make a difference as long as it's above |
indeed same problem. |
how do you suggest I should approach , debug that issue ? |
Everything looks like it should be working and I again tested a ZZH with the latest diff --git a/zigpy/application.py b/zigpy/application.py
index 0930fa4..3777b3b 100644
--- a/zigpy/application.py
+++ b/zigpy/application.py
@@ -629,6 +629,7 @@ class ControllerApplication(zigpy.util.ListenableMixin, abc.ABC):
if node != self.state.node_info.ieee:
try:
dev = self.get_device(ieee=node)
+ LOGGER.debug("Sending 'mgmt_permit_joining_req' to %s", node)
r = await dev.zdo.permit(time_s)
LOGGER.debug("Sent 'mgmt_permit_joining_req' to %s: %s", node, r)
except KeyError: Can you replicate this problem without Domoticz, using just ZHA from Home Assistant |
@puddly I trust you when you say it works with ZHA I have no doubt on that, so for me this will not bring value to test outside of Domoticz, as my issue is there. The problem is not on the permit to join it self, it works, the newtork is correctly open on that router, the issue is it looks like the we never come back from teh request and so zigpy trigger a Timeout So for me it is more how to debug the await part ? |
Here is a minimum logs with bellows
here are a minimum logs with ZNP
From my current investigation, it never comes back from
Despite the fact that
|
Is that not an issue ? that I don't seem with Bellows
|
when using ZDO.MgmtPermitJoinReq on a targeted router , it open the network on the corresponding router, but around 18 seconds later there is an asyncio.Timeout because we never come back from
await self.app.permit(time_s=duration, node=target_router )
If we simply use None for the node, there is no issue at all.
The text was updated successfully, but these errors were encountered: