how can i create an item with transition? At the moment i created a dummy item and a rule with an command like this:
Is there another way to set this both values into an item with OH3???
Hello, I haven’t tested this on OH3.1.0 but this topic is quite popular and I haven’t received any feedback that it doesn’t work. However, I think there is a basic misunderstanding.
If you use zigbee2mqtt, then oH does not ‘see’ zigbee, but sees mqtt. So you actually need the mqtt binding, and a coordinator that is supported by zigbee2mqtt, see their documentation for more details.
If you want to work with zigbee in OH directly, then you would use the zigbee binding, and an off the shelf coordinator like the one from Ikea.
Note that there is no “off the shelf coordinator like the one from Ikea” compatible with OH’s zigbee-binding as it is a native Zigbee implementation meaning it does not support so-called Zigbee hubs/bridges/gateways. If you use Zigbee hubs/bridges/gateways like IKEA’s Trådfri Gateway or Philips Hue Bridge then they offer an API with different protocols similar to how Zigbee2MQTT offers MQTT instead of Zigbee, and niether of those are supported by OH’s zigbee-binding.
OH’s zigbee-binding only support serial protocols over serial interfaces so you need to use a USB-adapter (with USB-to-UART converter) or a GPIO UART adapter which is presented to the application as a serial device by the operatingsystem.
OH’s zigbee-binding is based Z-Smart Systems ZigBee Cluster Library Java framework supporting multiple dongles on currently compatible with a few different Zigbee stacks and protocol versions; “CC2531” TI ZNP serial API from Z-Stack 1.2 (note that it does not yet support newer Z-Stack 3.x like Zigbee2MQTT does), “Ember” = Silabs EZSP (EmberZNet Serial Protocol) up to v8, Telegesis Zigbee AT protocol, Digi XBee-PRO Zigbee.
As noted above, you can not use OH’s zigbee-binding with a Zigbee hub, (a Zigbee hub like IKEA’s Trådfri Gateway or Philips Hue Bridge does not offer a Zigbee API but translate to different protocols), at least not unless you have hacked that hub and can instead install a Serial-to-IP server proxy that can pass along the serial interface from the Zigbee radio microcontroller module to the zigbee-binding using something like ser2net and socat. In that case the zigbee-binding sees it just like a local Zigbee coordinator that it can talk to via its serial protocol even though it can actually located somewhere else on your LAN. But if you decide to do so then make sure it has as wired Ethernet and not WiFi as serial communication is not stable over Serial-to-IP if use WiFi. One hardware that could in theory be hacked to do so is ZB-GW03 eWeLink Ethernet Zigbee Gateway:
Regardless of adapter, it is recommended to use USB extension cables with USB adapters and keep any Zigbee coordinator away from any electromagentic interferance, specially Wi-Fi access-points/routers.
Tip if you want to use OH’s zigbee-binding instead is to use a Silicon Labs based ERF32 based “Ember” (EZSP = EmberZNet Serial Protocol) adapter, preferably based on Silabs EFR32MG12 or EFR32MG21. Unfortunately, there is not much choice on the marked there today other than ELElabs ELU013 which is based on EFR32MG12 and also sold as Popp ZB-STICK 701554