itead / Sonoff_Zigbee_Dongle_Firmware

204 stars 22 forks source link

Where support SONOFF ZBDongle-E USB Dongle Plus ZigBee in openHAB?! #22

Open frfstu opened 1 year ago

frfstu commented 1 year ago

Where is the support for working with openHAB that you declare in the description of your products ?! https://aliexpress.ru/item/1005004540962187.html?spm=a2g2w.orderdetail.0.0.3bbe4aa6byNPAU&sku_id=12000029537476470

Description

SONOFF ZB Dongle-E USB Dongle Plus ZigBee 3.0 Wireless Zigbee Gateway Analyzer ZHA Zigbee2MQTT Pre-Sparkling as a ZigBee Router

SONOFF Zigbee 3.0 USB Dongle Plus is a universal Zigbee USB flash drive. It can be used as a Zigbee gateway in home assistant, openHAB, Zigbee2MQTT or other open source platforms to manage all your Zigbee devices locally, so you don't need to invest in different brands of Zigbee hubs, all you need is a universal dongle gateway plus!

Dongle Plus has a wide range of supported devices such as ZBMINI-L, SNZB01, SNZB02, SNZB03, SNZB04, S26R2ZB, S40 LITE ZB. Dongle plus pre-firmware with coordinator, you can also flash router firmware to expand the network range.

Dongle Plus supports various common systems such as Linux, Ubuntu, Raspbian, Windows, macOS (Windows and macOS require appropriate driver installation).

2023-04-22 01:48:55.587 [ERROR] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: NCP requires unsupported version of EZSP (required = V9, supported = V4)

Zigbee2MQTT version 1.30.3 commit: 24c6b2e2

coordinator type EZSP v9

Coordinator revision 7.1.1.0 build 273

IEEE Address Coordinator 0x***** front end version 0.6.127

Release = Raspbian GNU/Linux 11 (bullseye)

Kernel = Linux 6.1.21-v7+

Platform = Raspberry Pi 3 Model B Plus Rev 1.3

Uptime = 0 day(s). 0:0:32

CPU Usage = 57.61% avg over 4 cpu(s) (4 core(s) x 1 socket(s))

CPU Load = 1m: 2.39, 5m: 0.61, 15m: 0.21

Memory = Free: 0.46GB (49%), Used: 0.48GB (51%), Total: 0.94GB

Swap = Free: 1.80GB (100%), Used: 0.00GB (0%), Total: 1.80GB

Root = Free: 94.13GB (86%), Used: 15.24GB (14%), Total: 114.06GB

Updates = 0 apt updates available.

Sessions = 1 session(s)

Processes = 131 running processes of 32768 maximum processes

################################################### ##############################

                       _ _ _ ____ _

| | | | / \ | ) () ____ / \ / \ / \ / \ | || | /\ | \ | | / \ / \ | () | (_) | /| | | || | / \ | |) )| || () || | | | _/| / _/|| |||| ||// \|__/ || _|||| | | |_| openHAB 3.4.3 - Release Build

Details here: https://github.com/xsp1989/zigbeeFirmware/issues/42#issuecomment-1518388299

Hedda commented 1 year ago

What are you talking about?

The firmware that ITead SONOFF ZBDongle-E USB Dongle Plus ships is based on Silicon Labs EmberZNet 6.10.3 SDK (that uses EZSP v8) which is supported by openHAB ZigBee Binding

https://community.openhab.org/t/itead-s-sonoff-zigbee-3-0-usb-dongle-plus-model-zbdongle-e-based-on-silicon-labs-efr32mg21-20dbm-radio-mcu-now-sold-for-19-99/137824

If you want to use newer unofficial firmware then you need to wait until support in openHAB Zigbee Binding is updated. See here:

https://github.com/openhab/org.openhab.binding.zigbee

and it in turn depends on zsmartsystems's com.zsmartsystems.zigbee ZigBee Cluster Library Java framework (which just added it):

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/issues/1332

Check out this related example request for openHAB binding for ZigBee:

https://github.com/openhab/org.openhab.binding.zigbee/issues/778

Please understand that the Zigbee framework library that the openHAB ZigBee Binding depends on did get updated to support EZSP v10 support about a month ago, so it will probably not be long before the openHAB ZigBee Binding updates its dependencies with that newer library, so you just have to be patient and wait, but even then I believe it will not be able to use EmberZNet 7.2 (7.2.x.x) firmware as that was updated to EZSP v11 which that library that openHAB ZigBee Binding depends on do not yet support.

Believe that with openHAB just get support for EZSP v10 and not support for EZSP v11 too then you can not use firmware newer than EmberZNet 7.1 (7.1.x.x).

Again this is something that you need to address to the developers of the OpenHAB ZigBee Bindings and it is the Zigbee framework libraries that it depends on as this limitation of not supporting newer EZSP version is in that application and not a problem in the firmware.

frfstu commented 1 year ago

I think it's worth waiting for the openHAB Zigbee Binding update, since firmware version 6.10.3 does not support Zigbee2MQTT. HeddaYou write that "The firmware supplied by the ITead SONOFF ZBDongle-E USB Dongle Plus is based on the Silicon Labs EmberZNet 6.10.3 SDK (using EZSP v8) which is supported by openHAB ZigBee Binding." And the system message openHAB ZigBee Binding "2023-04-22 01:48:55.587 [ERROR] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: NCP requires unsupported version of EZSP (required = V9, supported = V4)" indicates what does EZSP v4 support!

Hedda commented 1 year ago

Again, what are you asking about exactly? What is it that you want to achieve? Please do not just state how you want to achieve it.

You can not ask for support with applications here from ITead/Sonoff, so what do you want here from ITead/Sonoff?

Please understand that is not the place to ask for support. This is only for asking for new firmware and reporting firmware issues,

It is also unclear if you are using "Zigbee2MQTT" (a.k.a. Z2M) or "openHAB ZigBee Binding", which to clarify are not the same.

"Zigbee2MQTT" (a.k.a. Z2M) is not the same as "openHAB ZigBee Binding", those are two totally separate implementations.

https://www.zigbee2mqtt.io/ -> for which you should ask help at https://github.com/Koenkk/zigbee2mqtt/discussions

https://www.openhab.org/addons/bindings/zigbee/ -> for which you should ask help at https://community.openhab.org

While OpenHAB can use Zigbee2MQTT via MQTT that does not mean Zigbee2MQTT is the same as "openHAB ZigBee Binding".

So if claimed that it is supported by openHAB then that refers to "openHAB ZigBee Binding" supporting it, not Zigbee2MQTT.

Please also understand that it is not ITead/Sonoff that is offering support for the applications, it is the other way around, as in it is the applications that need support the Zigbee stack that the dongle is using, and the application in addition also need to specifically add additional support for each new firmware versions if that firmware version update its CLI/API as that means that it is no longer fully compatible, meaning that you can not upgrade the firmware to a newer version then what the application supports.

Again, ITead SONOFF ZBDongle-E USB Dongle Plus ships with a firmware image Silicon Labs EmberZNet 6.10.3 SDK (that uses EZSP v8) which meant that out-of-the-box using the default firmware you can use it with applications that support EZSP v8.

So if you yourself flashed it with EmberZNet 7.1 (EZSP v9) firmware after recieving it you can not use it with "openHAB ZigBee Binding" as that does not yet support EZSP v9, meaning you would either have to downgrade firmware or wait until openHAB add support for EZSP v9 in the openHAB binding for ZigBee (which in turn depends on zsmartsystems's Zigbee library).

https://github.com/openhab/org.openhab.binding.zigbee/issues/778

Zigbee2MQTT does however have initial support for EZSP v9 and v10 via the zigbee-herdsman library that it depends on.

https://github.com/Koenkk/zigbee-herdsman/issues/319

Note that its support for EZSP is only "experimental" which means that you should not expect that it is stable:

https://www.zigbee2mqtt.io/guide/adapters/#experimental

PS: Remember when asking for support that both Zigbee2MQTT and OpenHAB / openHAB ZigBee Binding are free and open-source software hobby projects that are being developed by unpaid volunteers in their spare time.

frfstu commented 1 year ago

@Hedda https://github.com/xsp1989/zigbeeFirmware/issues/44#issuecomment-1523466896

aioue commented 1 year ago

@Hedda xsp1989/zigbeeFirmware#44 (comment)

Matt's reply to your message there says the same thing we're saying. You must wait until, as Hedda mentioned, the unpaid volunteers in openHAB get round to it. Recommend you close this issue and politely approach the openHAB team.

Hedda commented 1 year ago

Please understand that the Zigbee framework library that the openHAB ZigBee Binding depends on did get updated to support EZSP v10 support about a month ago, so it will probably not be long before the openHAB ZigBee Binding updates its dependencies with that newer library, so you just have to be patient and wait

@frfstu Noticed that you are now spamming openHAB ZigBee Binding with this demand instead of waiting or asking nicely:

https://github.com/openhab/org.openhab.binding.zigbee/issues/802

https://github.com/openhab/org.openhab.binding.zigbee/issues/803

FYI, see openHAB ZigBee Binding's developer has an open code pull request -> openhab/org.openhab.binding.zigbee#804

Note that even after https://github.com/openhab/org.openhab.binding.zigbee/pull/804 is merged you then need to wait until there is a new release version of the openHAB ZigBee Bidning package in the org.openhab.binding.zigbee repository, and after that, you will also need to wait further until they bump the ZigBee libraries in openhab-core and release a new version of openHAB that contains that new release version of that openHAB ZigBee Bidning package, which all in all will realistically probably take several months or more from now:

https://github.com/openhab/org.openhab.binding.zigbee/tags

https://github.com/openhab/openhab-core/search?q=zigbee&type=commits

https://github.com/openhab/openhab-core/tags

PS: Off-topic but highly recommend you step back and take time to read these articles before posting more to FOSS communities:

http://www.catb.org/~esr/faqs/smart-questions.html

https://en.wikipedia.org/wiki/Free_and_open-source_software

Hedda commented 1 year ago

@frfstu Noticed that you are now spamming openHAB ZigBee Binding with this demand instead of waiting or asking nicely:

openhab/org.openhab.binding.zigbee#802

openhab/org.openhab.binding.zigbee#803

FYI, see openHAB ZigBee Binding's developer has an open code pull request -> openhab/org.openhab.binding.zigbee#804

FYI, if I understand it correctly, openHAB ZigBee Binding add-on that is included in OpenHAB 4.0 (openHAB 4.0.0 and later) has been updated to ZSS library to version 1.4.11 which should mean that now support for EZSP v9, EZSP v10, and EZSP v11 versions.

https://github.com/openhab/openhab-distro/releases/tag/4.0.0

https://github.com/openhab/org.openhab.binding.zigbee/pull/804

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/issues/1332

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/1378

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/1384

Again, if run into any issue with openHAB (or Zigbee2MQTT) then you need to address such issues with their developers, not here.