-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CC2531 Coordinator paired itself - Unsupported device #801
Comments
Does your hue motion sensor still produce occupancy messages? |
jep.
just occurd - wife moved past the sensor It meight be that most times its working for like 2 hours and then the coordinator takes over. |
Seen here also so not just you. Not sure what version and coordinator version does it |
Re #176, I'm running the latest firmware (24-10-18) on the CC2531 coordinator. Thanks @ryanbeaton for the tag. Glad it's not just me again... Happens with only 1 other device in the network for me (Nue 2 gang switch), another device (Aqara door sensor) works fine whilst this continues to occur on the switch outputs. |
I did go for the alternative max devices - revision 20181119, so either both versions are suffering from this or its meight be a bug in Vesion 1.0.1 wich we have in common. |
I'm seeing the same behavior. Using 1.0.1 but I'm still on the 20180815 firmware for the CC2531 coordinator. Note that I'm getting the exact same type of messages (
It seems to be/could be related to the so far for me unexplained 2s delayed repeat of the P.S. Initally I didn't notice it was the coordinator so I deleted it 😛 but it immediately joined the network after that:
|
The firmware isn't the problem. Could you try uncommenting https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/zigbee.js#L87 till https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/zigbee.js#L93 and check if this still happens? |
I commented out those lines from line 87 to 93 as mentioned above and my warnings (#876) are not showing up anymore :) |
Nice, moving forward then. |
I'm running this as the hassio-plugin (danielwelch/hassio-zigbee2mqtt). Where do I find this file? I tried searching the file system for it without luck. |
Should be fixed in the dev branch |
Tried the dev branch now. It did not help since the fix only seems to ignore messages from my device when they are identified to be from the coordinator. The device gets registered as the coordinator and subsequent messages are still ignored. Previously they where ignored because the id was unknown; now they are ignored because they are identified as being sent from the coordinator (which they are and were). But the root cause is still there; the device is registered with the address of the coordinator. I have pasted some logs showing this: https://pastebin.com/zqYYV8vV |
@neerdoc that right, but looking at your log, I see that also messages from the device are received, do you have any problem with the device itself? |
Yes, I can't get it to work properly it seems. It is a smoke detector that is supposed to be supported (HS1SA - HEIMAN). If I reset the device, remove it from the database and restart, I can connect it. Pushing the test button after connection seems to do nothing (identified as coordinator but maybe I misunderstand). If I restart the zigbee2mqtt system it fails to reconnect. https://pastebin.com/WcpZWuvV |
@neerdoc that probably fails because the device is sleeping, could you keep the device awake when starting zigbee2mqtt (e.g. by pressing the button on the motion sensor). |
I have tried to debug this further by attaching the sniffer directly to my computer, so hassio-plugin is not the issue. I added a shepherd-converter to get a more detailed output from what is happening, I have attached the log here: https://pastebin.com/2nbHij2M The thing is, that if I restart zigbee2mqtt and press the test button on the smoke detector, the message gets through to the converter and I get the printout. But after the startup is finished, all the messages are intercepted as coming from the coordinator and discarded before ever reaching the converter. I also found a problem with the converter that is already in the repo for this device. The msg data is deeper than in the code. I.e., Any hints on where I can debug further to understand why the message gets through early in the startup phase but not later? |
@neerdoc you are having the same issue as in #176. I'm wondering what happens when you apply the solution from #801 (comment), you should be able to find the file under |
Tested this and sure enough it seems to work now. I now get two messages for each push/release of the test button: "devChange" and "statusChange". The "devChange" works out of the box, i.e., detects smoke on/off. So what are the lines I just commented out supposed to do? |
Sad that is having unexpected consequences |
@neerdoc does it stop working once you uncomment it? |
I'm getting also these:
0x00124b0014d9d7f3 being my coordinator I'm using dev branch of zigbee2mqtt version 1.0.1 (commit #a43cd5a) I had one CSW_ADUROLIGHT paired earlier and these messages did not appear then (atleast I didn't notice) but they started appearing after I paired another CSW_ADUROLIGHT sensor. |
Perhaps a solution would be to only mount this when |
Put some more effort into debugging this.
So it seems that if the 8 lines are there during the join phase it breaks it. Once joined to the network it does not matter anymore. I will try to see if there is a difference in the logs between joining a device when the 8 lines are commented and not. |
More info: My best guess is the |
Just throwing out an idea. Feels like the device itself reports the address that gets stored (iasCieAddr). What happens if you tell it to store it's own id? |
@neerdoc can you try:
This will prevent the |
Tried that and no success. Removing those lines prevents the device from configuring it seems. I also tried changing the 'iasCieAddr' address to the device, to 0x000000000000 and commenting out just that line. Still no luck. In those cases it cases it configures and sends a first "online" message, but nothing when I push the test button. I did notice that regardless if the "8 lines" (the fake cie app) are commented or not, the device seems to register the coordinator on the "iasCieAddr". And it works in one case and not the other... So in both cases it seems to write the "iasCieAddr" to the device. The funny thing is the database, in one case it writes the "iasCieAddr" as the coordinator address and the other as zeros. But manually changing the database after the connection is done does not change anything either. I'm totally stumped. Is something written to the sniffer that could be the problem? |
Just to clarify: If the fake cie app is on during join of device it always fails. |
Ok, I just started commenting out and changing code in the cie.js file and this is what I found: If I change this line (12): |
@neerdoc I also don't know exactly what it does, but it has do something with the direction, does it also work with: |
Ok, tested some more. Value 0 or 1 works. Value 2 or 3 fails. Found this on the internet. They set it to 0, but never tells why. I also tried reading the specification but I can't really find anything specific there either. Can someone with a device (that requires the fake CIE App) other than the HS1SA try to set this to 0 to see that it still works for those devices too? Oh, the specification seems to state that the "iasCieAddr" should be the address of the device and not the coordinator. Rather, the coordinator should actually check that the "iasCieAddr" is correct and ignore messages that have it wrong. |
Found a fix in the end that does not mess with the fake Cie App at all. Simply removing the Created a pull request in the shepherd-converters repo. |
To all: are there any other issues left? can we close this issue? |
Yes HS1SA Still not wokring Starting zigbee2mqtt version 1.0.1 (commit #16f3e88 |
@JLFN Did you repair your devices? Since the change is affecting what is written to the device during the pairing process, the device needs to be removed and rejoined again. From your supplied logfile it seems like you just started the new version. |
@Koenkk I just tried this as well on my hassio-installation and it fails just as @JLFN said. Looked at the commits and the commit you refer to was made the day before my PR. Checking the version of the shepherd-converters library it shows 7.0.25, which is was also set before my PR. I don't know how npm calculates its dependencies, but it seems to me that you need to bump the version of shepherd-converters and then update the dependency here, correct? |
@neerdoc you are right. I just updated zigbee2mqtt to the latest zigbee-shepherd-converters. New docker image will be available in an hour. |
Tested this in my Hassio-installation and it works for me and the HS1SA. Pushing the test button now register as "smoke=true" in Home Assistant interface. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Quite a stange thing Happend.
The coordinator paird itself to the network (in my understanding)
and throws errors that it isnt supported.
zigbee-shepherd info: {"enabled":true,"net":{"state":"Coordinator","channel":11,"panId":"0x1a62","extPanId":"0xdddddddddddddddd","ieeeAddr":"0x00124b0018ed38d1","nwkAddr":0},
of cause I rather would not throw my coordinator out of the network.
my guess is that the Hue motion sensor ( 'SML001' (0x0017880102010384) )has something to do with it.
20 minutes of logs:
https://hastebin.com/uzarewavay.makefile
Map:
The text was updated successfully, but these errors were encountered: