Comments (18)
I see that the binding attempts to open the coordinator's serial port a second time after it has already opened it earlier in the bundle startup sequence.
I'm not especially familiar with the TI driver, but it sees the log you attached only shows the port being opened once doesn't it? Or is this not the full log?
from org.openhab.binding.zigbee.
That is not the full log, but it is the complete log from the time I stopped the zigbee bundle, restarted it and saw that coordinator init had failed.
I think you may have missed this line near the middle of the uploaded log:
2017-12-03 09:42:01.485 [DEBUG] [ndler.ZigBeeCoordinatorCC2531Handler] - ZigBee Coordinator ZNP opening Port:'/dev/ttyUSBzigbee' PAN:ffffdf34, Channel:11
from org.openhab.binding.zigbee.
I think you may have missed this line near the middle of the uploaded log:
No - I saw that, but it's not opening the serial port at that point. This just logs the settings - it opens the serial port later (ie at the end of your log).
Was it working previously and now it's stopped working?
from org.openhab.binding.zigbee.
This is the first time I have run OH2 since updating to OH2 2.2.0-SNAPSHOT build #1106. Prior to this, the ZigBee binding was working with the CC2531 dongle on OH2 2.2.0-SNAPSHOT build #1102.
FYI, I tried stopping the zigbee bundle, unplugging the CC2531 dongle, then plugging it back in before restarting the bundle -- same behavior.
[BTW: I appreciate your quick response, thank you!]
from org.openhab.binding.zigbee.
from org.openhab.binding.zigbee.
I'm running OH2 2.2.0-SNAPSHOT on an RPi3 under an up-to-date install of openhabian. The zigbee binding has been working for more than 9 months with this exact configuration (other than OH2 software version.)
lrwxrwxrwx 1 root root 7 Dec 3 09:39 /dev/ttyUSBzigbee -> ttyACM4
crw-rw---- 1 root dialout 166, 4 Dec 3 09:39 /dev/ttyACM4
from org.openhab.binding.zigbee.
Well, I don't know that I can do anything really. There's nothing wrong that I can see - just the port won't open.
Sorry - if you can provide something that points to the binding, then I'm happy to take a look, but otherwise I don't see any issue. I also just checked here and it works fine (well, I only checked that the serial port opens) so there's no systematic issue with opening the serial port.
I suggest to close this.
from org.openhab.binding.zigbee.
After further investigation, it looks like the coordinator's serial port is opened OK when OH2 is (re)started, but nothing -- neither coordinator nor devices -- is shown as ONLINE. When the zigbee bundle is restarted, the coordinator initialization fails when it attempts to open the serial port, which I surmise must not have been closed when the bundle was stopped.
Restarting OH2 will result in the zigbee binding successfully opening the coordinator's serial port, but none of the zigbee deviices appear to be ONLINE.
zigbee-oh2-restarted.log
zigbee-device-status.log
from org.openhab.binding.zigbee.
Is this all that's in the log? It looks like it's working ok up to this point. Is this the version directly from cloudbees or are you compiling it yourself?
from org.openhab.binding.zigbee.
That is all that is in the log, nothing more appended to the zigbee log after waiting longer.
This version is directly from cloudbees.
from org.openhab.binding.zigbee.
I can try manually installing org.openhab.binding.zigbee-2.2.0-20171201.171549-78.jar, which I'm pretty confident was working before I updated OH2.
from org.openhab.binding.zigbee.
from org.openhab.binding.zigbee.
Please try this version and see if it's any better.
from org.openhab.binding.zigbee.
That looks somewhat better, the coordinator is now indicated as ONLINE, but the devices are not.
zigbee:coordinator_cc2531:b0ec0a7d (Type=Bridge, Status=ONLINE, Label=CC2531EMK Coordinator, Bridge=null) zigbee:device:b0ec0a7d:000b57fffe2efe6a (Type=Thing, Status=OFFLINE: zigbee.status.offline_nodenotfound, Label=ZigbeeBulb1, Bridge=zigbee:coordinator_cc2531:b0ec0a7d) zigbee:device:b0ec0a7d:b0ce1814030107c6 (Type=Thing, Status=OFFLINE: zigbee.status.offline_nodenotfound, Label=SengLED CT Bulb2, Bridge=zigbee:coordinator_cc2531:b0ec0a7d) zigbee:device:b0ec0a7d:b0ce181403019f87 (Type=Thing, Status=OFFLINE: zigbee.status.offline_nodenotfound, Label=SengLED CT Bulb1, Bridge=zigbee:coordinator_cc2531:b0ec0a7d) zigbee:device:b0ec0a7d:b0ce18140306e556 (Type=Thing, Status=OFFLINE: zigbee.status.offline_nodenotfound, Label=SengLED Bulb1, Bridge=zigbee:coordinator_cc2531:b0ec0a7d)
Serial port is now closed when the bundle is stopped 👍
zigbee-2.2.0.201712031907-bundle-restart.log
from org.openhab.binding.zigbee.
from org.openhab.binding.zigbee.
I finally resorted to resetting all of my zigbee bulbs, then re-pairing them one by one. All of the SengLED bulbs are again paired and working. I cannot seem to get the one Tradfri bulb I'm using with the ZigBee binding reset or paired -- can't tell for sure whether it's a bulb reset or a pairing issue.
from org.openhab.binding.zigbee.
I was finally able to reset the Tradfri bulb and pair it. Unfortunately commands issued via its linked item do not affect the physical state of the bulb. However, I do see the commands logged in the zigbee binding log.
from org.openhab.binding.zigbee.
So this issue seems resolved then - the coordinator is working ok so let's close this. IF there are further problems (eg the bulb pairing) then if you think there's a bug please open another request (although I know people are using Tradfri bulbs, so I think it should pair ok).
from org.openhab.binding.zigbee.
Related Issues (20)
- Trying to make things easier HOT 9
- Documentation refers to Paper UI which no longer exists
- [Bug OH 4] Pass the ChannelID instead of toString in call to getThing().getChannel() HOT 1
- The XML document '/OH-INF/addon/addon.xml' in module 'org.openhab.binding.zigbee' could not be parsed HOT 3
- Add support for Hue Dimmer RWL 21 : long-press and other specific action
- Add support for Hue dimmer RWL 021 (long press, release)
- Add support for Hue Dimmer actions (long press, release, etc)
- Where support SONOFF ZBDongle-E USB Dongle Plus ZigBee in openHAB ZigBee Binding?! HOT 1
- Where support SONOFF ZBDongle-E USB Dongle Plus ZigBee in openHAB ZigBee Binding?! HOT 4
- Selectable Baudrate: 460800 for Corrdinators HOT 3
- Zigbee device no supported clusters found HOT 1
- Eurotronic Comet Zigbee - missing config HOT 13
- Polling aborted due to exception HOT 1
- OH 4.1 M4 Devices with a voltage Channel remain unknown: `this.cluster` is null HOT 2
- Please contribute to the database of supported USB sticks HOT 19
- Shall we run mvn spotless:apply ??
- [zigbee]WARN java.lang.NullPointerException: Cannot invoke "java.util.concurrent.Future.get()
- Sonoff zigbee 3.0 USB Dongle Plus -E remains in initializing status after restart
- Zigbee 4-gang switch toggles all gangs at once HOT 9
- SLZB-06M does not connect HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.openhab.binding.zigbee.