Hue Binding for API v2 [3.4.0.0;4.0.0.0)

Hi @AndrewFG ,

here’s an intermediate update:

  • I’ve now completely switched off API v1 usage, everything migrated to API v2 usage
  • but still seeing the effect, that the duration between calls onEventData() and onResourcesEvent() is up to (rarely) minutes, but quite often several seconds.
  • I tried to disable several bindings, but no luck up to now (there are 23 bindings in use and a lot of rules, which may have an influence, too?)
  • CPU usage is low, the system itself seems to be fine. Other rules of OpenHAB executed every minute (cron) are starting perfectly fine each minute
  • Then I searched for more info and found this interesting thread/issue:
    https://github.com/openhab/org.openhab.binding.zigbee/issues/392
    and
    https://github.com/openhab/org.openhab.binding.zigbee/pull/393

Therefore I grabbed the source from GitHub (click), but it seems, that these ones are for the binding for OpenHAB v4.x.y only.
Is there a version for OpenHAB v3.x.y available, or what needs to be modified to build the hue binding for 3.x.y?