Zigbee binding

That makes sense. I just see three commits (and a few in zsmartsystems too) since the beginning of August that I’d like to test out (without having to do a build :wink:):

I guess these should be in the nightly as they are merged…

That’s what I was expecting, but the jar on Cloudbees has been the same size since Aug 5. That’s as far back as I have archived, so maybe earlier.

Strange - what about this one -:

https://openhab.ci.cloudbees.com/job/openHAB2-Bundles/157/org.openhab.binding$org.openhab.binding.zigbee/

It at least states it was built yesterday when I did the ZWave update.

Same file I downloaded on 8/5 (and 8/26, 9/3, 9/15, 9/17, 10/1).

I’m not sure - maybe something in the way the repos are linked. I’ll see if I can take a look tomorrow…

Hi guys, I’ve been trying to piece together getting the Zigbee Binding to work on OH2 with the nortek husbzb-1 to no avail today.
Maybe I missed a step or broke something.

Using the Husbzb-1 for both Z-Wave and hopefully zigBee
Openhabian 2.1
Pi3

Process so far has been fresh install, add Z-wave and ZigBee in paper UI
Remove zigbee2.1 and add zigbee2.2.0
enable the Java opts for ttyUSB0 and ttyUSB1
USB0 = Z-Wave (and it works)
USB1 = ZigBee (I assume)
Add Ember Device, config port * set baud to 57600
The damn thing is still stuck on initializing even after reboots.

Much help would be appreciated.
Thanks

Baud rate should be 57600, not 57000.

My Typo. It is set to 57600 in paper UI.

You may want to direct your question specifically towards the openhabian community, especially if you are not doing any manual configuration (openHABian hassle-free openHAB Setup).

Confirm that you only have the one zigbee binding installed
bundle:list |grep -i zigbee

You don’t mention adding the openhab account to the tty and dialout groups for the openhab (not openhabian) account, but if zwave is functional then it would be odd if this wasn’t already done.

Fiddle with the Reset Controller option in the coordinator. I remember having difficulty the first time I configured the quickstick, and it may have been this option that got it working. When it is on and the configuration saved, the configuration will immediately be sent to the stick, rather than waiting for the next restart of the binding. If that doesn’t help, delete the coordinator, recreate it, and turn on Reset Controller while configuring.

Enable debug logging for zigbee and post a log
log:set DEBUG org.openhab.binding.zigbee
log:set DEBUG com.zsmartsystems.zigbee

openhab> bundle:list |grep -i zigbee
184 | Active | 80 | 2.2.0.201709301515 | ZigBee Binding

2017-10-04 01:13:40.663 [DEBUG] [ee.internal.ZigBeeNetworkMeshMonitor] - Starting mesh update task with interval of 86400 seconds
2017-10-04 01:13:40.665 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: IeeeAddressRequest [0/0 -> 0/0, cluster=0001, TID=00, nwkAddrOfInterest=0, requestType=1, startIndex=0]
2017-10-04 01:13:40.702 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=0], messageTag=0, messageContents=00 00 00 01 00]
2017-10-04 01:13:40.704 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP queue: 1
2017-10-04 01:13:40.706 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP: EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=0], messageTag=0, messageContents=00 00 00 01 00]
2017-10-04 01:13:40.708 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameData [frmNum=5, ackNum=7, reTx=false, data=00 00 34 00 00 00 00 00 01 00 00 00 40 11 00 00 00 00 05 00 00 00 01 00]
2017-10-04 01:13:40.720 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: AshFrameData [frmNum=7, ackNum=6, reTx=false, data=00 80 34 91 00]
2017-10-04 01:13:40.722 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - RX EZSP: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=0]
2017-10-04 01:13:40.724 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=0]
2017-10-04 01:13:40.725 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unhandled EZSP Frame: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=0]
2017-10-04 01:13:40.727 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameAck [ackNum=0]
2017-10-04 01:13:50.672 [DEBUG] [ee.internal.ZigBeeNetworkMeshMonitor] - 0: Starting mesh update
2017-10-04 01:13:50.674 [DEBUG] [ee.internal.ZigBeeNetworkMeshMonitor] - 0: ZigBee node not found during mesh update
2017-10-04 01:13:50.714 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - Ieee Address for 0 returned null
2017-10-04 01:13:50.717 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - 0: Discovery request IEEE_ADDRESS failed. Wait before retry.
2017-10-04 01:13:52.221 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: IeeeAddressRequest [0/0 -> 0/0, cluster=0001, TID=01, nwkAddrOfInterest=0, requestType=1, startIndex=0]
2017-10-04 01:13:52.225 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=1], messageTag=1, messageContents=00 00 00 01 00]
2017-10-04 01:13:52.228 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP queue: 1
2017-10-04 01:13:52.232 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP: EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=1], messageTag=1, messageContents=00 00 00 01 00]
2017-10-04 01:13:52.237 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameData [frmNum=6, ackNum=0, reTx=false, data=01 00 34 00 00 00 00 00 01 00 00 00 40 11 00 00 01 01 05 00 00 00 01 00]
2017-10-04 01:13:52.252 [ERROR] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: BAD PACKET 11 11 07 43 A1 9C C5 2B D4 D9
2017-10-04 01:13:52.255 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameNak [ackNum=0]
2017-10-04 01:13:52.258 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - Sent queue larger than window [1 > 1].
2017-10-04 01:13:52.262 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: AshFrameNak [ackNum=7]
2017-10-04 01:13:52.265 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameData [frmNum=6, ackNum=0, reTx=true, data=01 00 34 00 00 00 00 00 01 00 00 00 40 11 00 00 01 01 05 00 00 00 01 00]
2017-10-04 01:13:52.269 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - Sent queue larger than window [1 > 1].
2017-10-04 01:13:52.275 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: AshFrameAck [ackNum=7]
2017-10-04 01:13:52.642 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: AshFrameData [frmNum=0, ackNum=7, reTx=true, data=01 80 34 91 01]
2017-10-04 01:13:52.645 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - RX EZSP: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=1]
2017-10-04 01:13:52.648 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=1]
2017-10-04 01:13:52.651 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unhandled EZSP Frame: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=1]
2017-10-04 01:13:52.653 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameAck [ackNum=1]
2017-10-04 01:14:02.242 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - Ieee Address for 0 returned null
2017-10-04 01:14:02.243 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - 0: Discovery request IEEE_ADDRESS failed. Wait before retry.
2017-10-04 01:14:03.746 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: IeeeAddressRequest [0/0 -> 0/0, cluster=0001, TID=02, nwkAddrOfInterest=0, requestType=1, startIndex=0]
2017-10-04 01:14:03.749 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=2], messageTag=2, messageContents=00 00 00 01 00]
2017-10-04 01:14:03.753 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP queue: 1
2017-10-04 01:14:03.756 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP: EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=2], messageTag=2, messageContents=00 00 00 01 00]
2017-10-04 01:14:03.761 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameData [frmNum=7, ackNum=1, reTx=false, data=02 00 34 00 00 00 00 00 01 00 00 00 40 11 00 00 02 02 05 00 00 00 01 00]
2017-10-04 01:14:03.775 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: AshFrameData [frmNum=1, ackNum=0, reTx=false, data=02 80 34 91 02]
2017-10-04 01:14:03.778 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - RX EZSP: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=2]
2017-10-04 01:14:03.781 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=2]
2017-10-04 01:14:03.784 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unhandled EZSP Frame: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=2]
2017-10-04 01:14:03.788 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameAck [ackNum=2]
2017-10-04 01:14:13.766 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - Ieee Address for 0 returned null
2017-10-04 01:14:13.767 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - 0: Discovery request IEEE_ADDRESS failed. Wait before retry.
2017-10-04 01:14:15.269 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: IeeeAddressRequest [0/0 -> 0/0, cluster=0001, TID=03, nwkAddrOfInterest=0, requestType=1, startIndex=0]
2017-10-04 01:14:15.272 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=3], messageTag=3, messageContents=00 00 00 01 00]
2017-10-04 01:14:15.273 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP queue: 1
2017-10-04 01:14:15.275 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - TX EZSP: EzspSendUnicastRequest [type=EMBER_OUTGOING_DIRECT, indexOrDestination=0, apsFrame=EmberApsFrame [profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=[EMBER_APS_OPTION_ENABLE_ADDRESS_DISCOVERY, EMBER_APS_OPTION_RETRY, EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=3], messageTag=3, messageContents=00 00 00 01 00]
2017-10-04 01:14:15.278 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameData [frmNum=0, ackNum=2, reTx=false, data=03 00 34 00 00 00 00 00 01 00 00 00 40 11 00 00 03 03 05 00 00 00 01 00]
2017-10-04 01:14:15.292 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - <-- RX ASH frame: AshFrameData [frmNum=2, ackNum=1, reTx=false, data=03 80 34 91 03]
2017-10-04 01:14:15.293 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - RX EZSP: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=3]
2017-10-04 01:14:15.296 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=3]
2017-10-04 01:14:15.299 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - Unhandled EZSP Frame: EzspSendUnicastResponse [status=EMBER_NETWORK_DOWN, sequence=3]
2017-10-04 01:14:15.302 [DEBUG] [bee.dongle.ember.ash.AshFrameHandler] - --> TX ASH frame: AshFrameAck [ackNum=3]
2017-10-04 01:14:25.282 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - Ieee Address for 0 returned null
2017-10-04 01:14:25.290 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - 0: Discovery request IEEE_ADDRESS failed. Wait before retry.
2017-10-04 01:14:26.794 [DEBUG] [bee.internal.ZigBeeNetworkDiscoverer] - 0: Ending node discovery

Even with these logs, the Ember coordinator is still stuck at initializing?

OK I got it working tonight!!! YAY!

Process was to openhabian on PI
Use “Expert” Icon for setup
sudo nano /etc/default/openhab2
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1"
Install only the Zigbee binding
sudo ssh -p 8101 openhab@localhost
bundle:list
find ZigBee
bundle:uninstall (Whatever zigbee PID was)
CTL - D to exit
cd /usr/share/openhab2/addons
sudo wget the V2.2.0 snapshot.jar
configure the zigbee with ember on /dev/ttyUSB1
add Z-Wave& configure on /dev/ttyUSB0

Where you able to take a look at this? I’m ready to submit an issue, but wanted to make sure it wasn’t resolved already by any of these updates.

I made a PR yesterday which I hope will solve it, but I’m not 100% sure… Let’s see in the next day or two.

1 Like

@shorty707 are you able to compile Java source - specifically the Zigbee library on the ZSmartSystems github page? If so there’s something I’d like to test - if not, I’ll compile a test console and see if we can try something (or maybe you can bring this bulb this weekend and I can try it? I’ll bring a dongle).

would need to read the whole maven / ant stuff :stuck_out_tongue:
one of the other 2 ways are probably faster :smiley:

Ok, I’ve got a dongle with me be a plug for the bulb so we can possibly have a quick test on Sunday.

ok - however I can also bring the bulb + plug + cc2531 :wink:

I wont have any pc / pi / whatever with me :wink:

No problem - I have my PC with me.