ok yes I know but I could connect the devices without an gateway (like the ccu)
Yes - I guess it depends on your definition of “gateway” . The dongle is effectively the gateway.
Sorry if you already knew this, but I see quite a few posts where people just expect to be able to connect directly to OH without ANY interface hardware, and your mail looked like that was your understanding…
Yes I know that i need a technical device/usb dongle which will do the radio connect to the zigbee or homematic device:slightly_smiling_face: But my dream of an perfect solution were that I will be able to connect devices from different vendors to one Rasbian and OpenHAB without the need to buy (and configure)e.g. an HM CCU. But as I understand the last posts, unfortunately for HM there is a need of an dedicated CCU
For Zigbee I have already ordered an USB dongle from Qivicon. Hopefully it will work fine with my Pi 3+ and OpenHAB and of course my zigbee devices/sensors
For HM you can also use the new RPI-RF-MOD module together with your pi.
Okay that means that there is no need of a second PI with OpenHab installed?
Could I use the RPI-RF-MOD and e.g. an Zigbee usb module within one pysical pi?
Thanks a lot.
I have sucessfuly installed both an Zigbee Stick (QIVICON USB ZigBee-Funkstick) and ELV HM-MOD-RPI-PCB (Homematic Radio Interface) with Homegear on one PI 3+
I will describe a bit what I have done, maybe it is usefull for others:
- The Qivicon Zigbee Stick will be installed first under Linux (Raspianpi) with an cp210x driver. Please note I have used the latest Openhabian Image (1.4.1) on my PI 3+
-> Zigbee USB Stick
add the following lines to /etc/rc.local
sudo modprobe cp210x vendor=0x10c4 product=0x89fb
echo 10c4 89fb > /sys/bus/usb-serial/drivers/cp210x/new_id
sudo stty -F /dev/ttyUSB0 19200
sudo systemctl restart openhab2.service
This is necessary because my Zigbee Stick is not bind automatically
- Install the Zigbee Bindung on Openhab 2
- Configure the following (Paper UI -> Configuration -> Things -> Qivicon ZigBee Device (ZigBee USB dongle):
-> ELV HM-MOD-RPI-PCB
Install Homegear via openhabian-config
do some config. that the HM-MOD-RPI-PCB is working with Homegear please see:
Firmware-Flash of your HM-MOD-RPI-PCB
apt-get update && apt-get -y install libusb-1.0-0-dev build-essential git
git clone git://git.zerfleddert.de/hmcfgusb
or refer here:
Thanks all for your help. Please feel free to comment
I did try to install the QIVICON USB ZigBee-Funkstick, and did follow your guide.
I did insert the code in the rc.local file and then restart my pi
and after restart the QIVICON USB ZigBee-Funkstick did pop up in things, but when i add the USB if will not og online.
Can you help?
018-10-12 20:52:20.059 [me.event.InboxRemovedEvent] - Discovery Result with UID 'zigbee:coordinator_telegesis:1200000D65' has been removed. 2018-10-12 20:52:20.126 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_telegesis:1200000D65' changed from UNINITIALIZED to INITIALIZING 2018-10-12 20:52:20.221 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_telegesis:1200000D65' has been updated. 2018-10-12 20:52:20.306 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_telegesis:1200000D65' has been updated. 2018-10-12 20:52:20.389 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_telegesis:1200000D65' has been updated. 2018-10-12 20:52:20.395 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_telegesis:1200000D65' changed from INITIALIZING to UNKNOWN 2018-10-12 20:52:20.735 [nt.FirmwareStatusInfoEvent] - Firmware status of thing zigbee:coordinator_telegesis:1200000D65 changed to UNKNOWN. ==> /var/log/openhab2/openhab.log <== 2018-10-12 20:52:21.494 [ERROR] [ding.zigbee.handler.ZigBeeSerialPort] - Serial Error: Port /dev/ttyUSB0 in use. 2018-10-12 20:52:21.496 [ERROR] [ngle.telegesis.ZigBeeDongleTelegesis] - Unable to open Telegesis serial port ==> /var/log/openhab2/events.log <== 2018-10-12 20:52:21.569 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_telegesis:1200000D65' changed from UNKNOWN to OFFLINE: Failed to initialize ZigBee transport layer
please type in linux console: dmesg | grep tty
what does it show you?
I have here:
[ 4.418388] usb 1-1.3: cp210x converter now attached to ttyUSB0
Thanks I got it to work
I just took the usb out and in again
Sometimes I have also problems with the zigbee stick, especially after rebooting the system.
In this case a complete shutdown will help.
To be honest…Not really a solution
Thanks a lot for your instructions. I have been trying to install my Qivicon USB Stick for quite a while. In the documentation it just says, that it shoud work!?!
This is the first real instruction I found. Unfortunately the installation still does not work.
The Stick is not found automatically by openhab, like you reported.
Since I do not completely understand linux, I’m not sure why and where I should add the lines to /etc/rc.local
If a type the commands in the console it says
access denied after echo 10c4 89fb > /sys/bus/usb-serial/drivers/cp210x/new_id
It looks like I cannot change the permission to this file
Can you help?
Hi I have added these lines at top of the /etc/rc.local
Please ensure that you have full rights. I will do this by logging in as root (sudo su)
give it a try…
Thanks a lot. At the top works.
The permission problem is solved with
sudo sh -c “echo 10c4 89fb > /sys/bus/usb-serial/drivers/cp210x/new_id”
This post helped me
Does it work well via the Qivicon stick, now? Do you use the first version or the current one? Do you experience any restrictions or performance problems with it?
Thanks a lot!
Qivicon stick works fine for me. But I have only one device so far (Osram Smart Plug). I just learned that the qivicon apperently does not support Zigbee 3.0.
I always thought that there are many zigbee devices that can be used with the binding. But is very hard to find zigbee devices. Most manufactures want to sell their own connector and often don’t say if the device is zigbee or not.
I am not sure what you mean with version.
I use also Osram Devices only and one Bitron Video Windows Sensor. But sometimes this sensor is a bit buggy and not reachable. But sometimes I have this Problems also with the osram Devices.
To be honest…I did Not go into Details with that and resetted the Devices
Thanks a lot for sharing your setup, algo4711.
Unfortunately, I can’t get this running on my Raspberry Pi 3 running Raspian. I followed all your steps and, as far as I can tell, the drivers are loaded correctly. The first problem arises when trying to use the ZigBee binding to add a “Thing”. When trying to add a thing, it will not find the Qivicon USB stick automatically. Instead, I’m choosing to add it manually. This is where I would expect to find an option for the “Qivicon ZigBee Device (ZigBee USB dongle)”, which is nowhere to be found. Instead, I looked into the man page of the ZigBee binding and there it says that the Qivicon USB stick is handled by the Telegesis Coordinator. Selecting that one with the settings you suggested in your post will result in an offline device in openhab saying “Failed to initialize ZigBee transport layer”.
I found another post trying a similar way. The author solved the problem by identifying another device ID and writing it as root (which is what I did before as well). For him, this solves the problem and the stick switches to active in openhab. Unfortunately, this does not work for me.
Does anyone have an idea? Any logs I should post?
“dmesg | grep tty” gives (last line):
[ 3371.018165] usb 1-1.3: cp210x converter now attached to ttyUSB0
Taking the USB stick out and in again does not resolve the problem. Neither does shutting down the Raspberry Pi completely.
Did you tried a complete power off and on?
Yep, complete shutdown and removing power.