Please help me configure a Sonoff Zigbee dongle with my Raspy 4 (Solved)

One more thing, I would suggest you to change the topic from “Help me i’m new” to something like: “Help-me setting up a Sonoff Zigbee dongle with my Raspy 4”, so you will be better attracting the right people to the discussion… :wink:

Also, when you have a chance take a look on the nice material about Zigbee that @Hedda has shared:

Generic best practice tips on improving Zigbee network range and general stability · zigpy/zigpy Wiki (github.com)

2 Likes

Fair point, it does sound like he has done exactly what I did and over installed stuff.

This is interesting.
I have had my Sonoff USB in a USB 3.0 port assuming that the later spec was better. Do you know why 2.0 is better in this case? I do have the occasional problem but not with Z2M-HA (using the 3.0 port).

Read and follow these best practice guidelines which apply to all Zigbee implementations → Generic best practice tips on improving Zigbee network range and general stability · zigpy/zigpy Wiki · GitHub

Summery; Zigbee has poor range/penetration/reception + is very sensitive to EMF/EMI/RMI interference and the most common interference source is EMF generated by USB 3.0 ports/devices/peripherals.

Tip is to use a USB 2.0 port if your computer does not have one then buy a powered USB 2.0 hub which in practice will convert a USB 3.0 port into USB 2.0 ports which you can then use for the adapter.

Regardless always also use a long USB extension cable to the Zigbee Coordinator USB adapter, and there you should consider buying a USB 3.0 cable because they generally have better EMF shielding.

Obviously, the USB 3.0 cable itself do not generate interference unless it is connected to a USB 3.0 port.

1 Like

Yes, it is correct, I have tried all the ports with the coordinator, but I always get the same configuration in the hardware
Ruta del dispositivo:/dev/ttyUSB0

ID:/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0

I don’t know how to uninstall ZHA

Thanks, I’ve tried all the ports.

Thanks, it’s a Raspy 4, it has 2 USB 2.0 ports, and 2 USB 3.0 ports, I bought a 2 meter USB 3.0 extension cable. Right now the SDD is connected to a USB 3.0 and the Dongle to a USB 2.0

Under “Devices & Services” you should find the “Zigbee Home Automation” integration and if you select its overflow menu (…) you will there be able to choose "Delete (or “Disable”) at the bottom of that list.

Your picture does not show Zigbee Coordinator USB adapter connected via long USB extension cable.

Connect the to the long shielded USB extension cable and then the USB extension cable to the USB 2.0 port on the Raspberry Pi.

Understand that the whole purpose of using a long shielded USB extension cable is to get the Zigbee Coordinator USB adapter as far away from both the Raspberry Pi and the SSD harddrive (as well as any other sources of electromagnetic fields, which includes Wi-Fi Access Points / WiFi Routers and power-supplies) as the goal is to avoid the electromagnetic interference that electrical devices and appliances generate which cause signal reception problem for Zigbee and other low-power radios.

ok, thanks, ZHA is already uninstalled and I’m waiting for Amazon to bring me the cable today, I bought 2 cables of 1 meter each that can be joined to two meters

So, after unstalling ZHA and restarting your Home Assistant you probably will get a new message saying HA discovered ZHA. You can click in “Ignore”, so it won’t get installed again.
Then try to look on Zigbee2MQTT, let us know if you still having issues. Share log messages if you can.

1 Like

It still doesn’t work, these are the logs that come out:

Info 2022-11-22 14:16:39Zigbee: allowing new devices to join.

Info 2022-11-22 14:16:39MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254,"value":true},"status":"ok","transaction":"kltmu-1"}'

Hi,
Very new to the world of HA. Far too many hours spent watching YouTube videos to be productive.

I had a very similar issue. I had a Conbee 2 stick and it would not work. I then tried a Sonoff device which was recognised straight away and configured. I tried to pair a Aqara sensor which would not show on the dashboard. The solution was that I uninstalled deCONZ and this resolved the pairing issue. I’m nit sure if this helps much.

Hello, thanks for answering, the problem is that I don’t know what it is
deCONZ .

deCONZ, ZHA and Zigbee2MQTT (Z2M) are all competing solutions for the same thing… all have advantages and disadvantages, so you will have to pick one and go for that.
If I can make super short, I would say Z2M is still the most advanced and mature, with support for more devices (take a look on this compatibility matrix) and will allow you to install your Zigbee controller in another RPi in a different location than your HA. But ZHA (the one I’m currently using) is easier to use. I’ve used deconz a long time ago and I’m sure I’m not going back to that direction.

Switch between one to other will require some work depending on the number of devices you will have to re-pair, but it’s not impossible, so pick one of the solutions now and you change later if you think it worth the effort. Any of those solutions will be good for a beginner, unless you already know you have devices that are not compatible to some of the solutions (take a look at the compatibility matrix).

All those solutions are proven to work, so I believe if you try to change the solution now you will have the same chance to solve the problem as you would have but just starting over and trying again to install the same solution you tried before (Z2M).

My suggestion to you is:

  1. Remove everything you have installed related to Zigbee, like ZHA integration, deconz, Z2M, etc…
  2. Restart Home Assistant
  3. Install again just the option you want to use. If that is not ZHA, you will have to click “Ignore” when it is automatically detected by your system. If you are going to Z2M, don’t forget to install MQTT support first (if not already installed). You will find it between the add-ons.

Then share your logs here again is you still having issues

Hello, well, I only have Z2M and mosquito installed, I don’t have any device installed except for the coordinator either, I can’t install any device, I have three SNZN-03, some 04, four ZBMINI, but it doesn’t recognize any of them, it also says that it hasn’t given me yet arrived the cable (Amazon is delaying)

Thank you all, the problem is solved, in the end with putting a 2 meter cable. Everything is going perfectly, now I just need to know how to make the light sensor command the switch to turn it on :rofl: :rofl: :rofl:, but I imagine there will be a video on YouTube.
Greetings

In Home Assistant, go to Settings > Automations, Click to add a new automation and in the box with the Blueprint select the one called “Motion Light” (or something like this)… Select your sensor, your light, the times and save it (with a name) and you are good… No need for YouTube… :wink:

But it doesn’t give me the option to schedule a few hours, and I don’t know if it can be done so that it doesn’t detect the pets

Maybe this one:’

1 Like

Hello, thanks for answering, I’ll try, although I still have a lot to learn, such as integrating the solar inverter.