You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 28, 2022. It is now read-only.
The result of integrating Koenkk/zigbee-herdsman#442 into the main zigbee-herdsman module on which node-red-contrib-zigbee depends on, is that it stops working and continuously reports that the serial port could not be opened because it is locked (which is kind of true, but not the root cause).
A little debugging brought to light what the problem is: the zigbee-herdman method supportsLED is no longer existing, hence
fails and the connect() code is failing, but it does not release the serial port, so subsequent retries report the locked serial port.
It is very unfortunate that the maintainers of zigbee-herdsman did not follow semver and bumped up the minor number of the package to indicate a removal of API functions. Would have prevented the upgrade breaking my node-red flows. But it is like it is.
I would suggest to leave the led alone and remove the code or to run this code only if the method supportsLED is present.
Hope this helps others to understand the problem and not to waste time to find out what they did to break things.
A quick workaround is to downgrade zigbee-herdsman using npm to version 0.13.169 or older.
I just commented out the lines