Best framework for long range setup

Alright, your image is pretty clear. From my gut feeling, that should work fine and you should not encounter any major issues. These distances are within the typical operation range of both Zigbee and ZWave. But RF signals can sometimes be unpredictable and very dependent on the local area and topography. Number 4 might be a little problematic and might require a repeater.

That said, in the absence of any repeater, the signal is not going to travel from one sensor to the next. Each sensor will talk to the controller stick or hub directly. So you have to look at the distances between every Zigbee or zwave device (2, 3, 4) and the hub (1). And you have to think in three dimensions here.

Do this: go to each location where you intend to put a wireless device. Now imagine a virtual line going from the device to your hub or stick, like if you had a laser pointer shining into this direction. You can imagine the hub or stick being at varying heights. Is there anything in the way ? Walls, maybe parked cars, a tree. If you’re on the northern hemisphere and it’s winter right now, keep in mind that what can look like a clear line of sight now, can become much more problematic in the summer when vegetation gets dense. Leaves will absorb signal, especially in the GHz range. So try to find a good position for the stick or hub with the least distance and the least amount of stuff in the way of the signal from the sensors.

Sure, that can be a good option if you intend to use both systems. Some people report those sticks to work less well than ones dedicated to a specific protocol though. Something to keep in mind.

Understood. I don’t know enough about Wifi 6 to comment on it.

Typically any Zigbee or ZWave device that is connected to mains power will act as a repeater. That is automatic and does not have to be configured. But as always, there is the odd exception. So if you have a specific device in mind, you should probably do some quick research (or ask) if it can act as a repeater or not.

Unfortunately yes. Different devices will have different transmit power, different antennas, etc. Zigbee is more problematic than ZWave. The latter is a controlled standard with a tight certification process (that’s why it’s more expensive), so devices will have well defined technical specifications that you can look up and compare (look for tx power and receiver sensitivity). Zigbee is pretty much free for all, and you will find all kinds of implementations for it. Ranging from excellent quality to complete crap bordering on unusable. Usually you get what you pay for. Don’t expect some cheapo stuff from AliExpress to use high quality components.

No, it’s not dependent on the wifi. I assume you have the Pi connected to your network by wired Ethernet ? If you go with Zigbee, it could make sense to keep some distance between the Zigbee stick and your router, let’s say a meter at least, to reduce problems with interference. Also choose wifi and Zigbee channels so that they don’t overlap.

Hi Alex,
Thanks again for sharing your inputs!

OK, is what you mean that the distances will probably not be a problem even without a repeater - and if so, it would probably work well with repeaters aka devices with wired power to them?

Good guide for thought of placement and good point about the vegetation. I did not imagine that vegetation could invoke much in the signal, but I will definitely have to take that into account as there is a big tree with low hanging leaves in the middle of the path - and, winter here, so no leaves right now.

It would be possible to move the rpi to a more central place if it does not need to be connected to the wifi router with a cable - close to point 2. As I understood, the rpi will act as the brain of the system and does only need a connection to the existing wifi router if I will need to get it online - or does it also need to be connected to wifi router if I will need access to the HA control panel?

I guess the next step would be to get a RPI, a Zigbee stick, a Zigbee battery motion sensor and a Zigbee wired device that can act as a repeater, i.e. a light bulb, and then do some range testing on my specific setup. Anything else good to have on hand?

Is it appropriate to ask for recommendations for devices and a stick with a good range / antenna?
I do not yet know much about good or bad brands in this new world, but it would be to test out the concept, so price is also a factor. Also, if my setup would work without the absolutely best devices (aka a little cheaper build but also a little cheaper price) I guess that there would be no point in getting the most top notch devices.

If deciding that a wifi device would be a good choice for some locations with wired power, would it then be possible to both run zigbee and wifi devices on the rpi and use the same HA instance and brain to manage it all as one complete system? Would that require the rpi to be connected to the wifi router or can the rpi handle it all?

In terms of wifi devices, is there any privacy issues if the iot system is run locally on a RPI with HA?

The best way forward is to have your RPi connected via Ethernet. Is there no way you can move your wifi or RPi more central?
Perhaps look at a proper network system rather than the regular domestic grade stuff most people have. I use Ubiquti gear with 2 long range AP’s. Excellent coverage right out onto the street from my 1001m2 property. Privacy is not an issue, you can setup VLAN’s to segregate things and restrict access where required. ‘The Hookup’ on YouTube has a great 3 part series of how to get it all setup.

For Z-Wave I use an Aeotec Gen 5 Z-Stick and it’s brilliant. Very reliable and great range.

Correct.

You’ll have to interact with HA in some way, if only for configuration. So typically it will be connected to a network. You can then access HA and its user interface from your PC or a tablet, for example. That does not necessarily means that it would have internet access, if you’re worried about privacy.

I personally don’t use any Zigbee devices, so I can’t help you with specific brands. I’m sure others can though. I also use the Aeotec Gen5 Z Stick for my zwave network, it’s an excellent little device.

I’m not sure I really understand what you mean. If you want your Pi / HA to manage a wifi device, then it has to be connected to some network it can use to reach said device. That can be done by connecting your Pi directly to the wifi network itself using the Pi’s builtin wifi or by plugin an Ethernet cable from the Pi into your router. The latter is usually a better approach. How does you current network infrastructure look like ? Is it just a single wifi router from your ISP and everything connects to that over wifi ? Or is it more complex setup with one or more network switches and some wired connections ? HA itself can certainly manage both Zigbee and wifi devices in an integrated way, as long as it can access them in some way.

Not if you put them on a dedicated wifi network or on a VLAN. Either of which is highly recommended if you use wifi based IoT devices - so you don’t end up with some kid on the other side of the world having fun playing around with your house, or worse, become an involuntary Darknet traffic relay or part of a botnet…

Hi Dave,
Thanks for the reply!

I can move the RPI to a more central location. I have wifi coverage at most of the property. So if the RPI can be connected with wifi to the wifi router - if that is needed - then it is no problem.
Thanks for the link.

Hi Alex - thanks again the the reply!

Regarding usb sticks I have researched a little. I have come to the following understanding, can you confirm if it is correct?

  • To facilitate communication between the zigbee usb stick and Home Assistant you will need to use a software add-on. For example Zigbee2mqtt, deCONZ or ZHA.
  • Different sticks are supported by the different software add-ons. So you will first need to chose which software add-on you like and then choose a stick that supports that add-on.
  • Zigbee devices are added through the software add-on and not through HA. HA is then used to organize it all into a common dashboard and to make automations and scenes.

Regarding the range; if I chose a zigbee usb stick with a long range it can reach many devices and talk to them. But is that enough for the device to talk back to the RPI? Would the device also need to be equally long range to be able to talk back? What I am trying to say is that it is not enough to have a long range stick if the devices do not have equally long range, then you would need repeaters to bring the message back from the device to the RPI?
If that is the case, then I guess the range of the stick is not very important if repeaters are needed anyway?

Regarding wifi, I was just curious if the RPI could handle both wifi and zigbee connections, of if it would need to be connected to a external wifi router. If there is build in wifi in the RPI, would it then need the external router?
My current setup is just a single wifi router from my ISP and everything connects to that (I have no IOT devices yet, just computers and phones that access the internet through the wifi router).

Regarding privacy I would definately not have anyone else going into the system. I will have to look more into that. But to start, could I just setup the RPI, connect it to my current wifi network through wifi/ethernet cable and then acces HA through a phone or computer without connecting the RPI to the internet (if I just want to be able to acces it locally when home and connected to my wifi)?

Correct.

I’m afraid I can’t help here, as I don’t use Zigbee myself. As far as I know, the most common sticks are supported by all three mentioned addons.

I don’t know how they’re added specifically, but the second part is correct. HA will act as the central entity that organizes everything and presents it to you over its user interface / dashboard.

Yes and no. All mesh protocols (both ZigBee and ZWave are mesh networks) require bidirectional communication. So you’re right that a device needs to be able to talk back to the controller (or the repeater) for this to work.

From a (simplified) technical point of view, range is a function of both transmission power and receiver sensitivity, assuming equal antennas on both sides. A signal doesn’t just stop somewhere, it becomes progressively weaker until it reaches a point where the receiver cannot ‘see’ it anymore in the sea of noise around it (see signal to noise ratio). A good quality controller stick will usually have both a more powerful transmitter (so that far away nodes with not so great receivers can ‘hear’ it) and a high sensitivity receiver (so it can ‘hear’ the signal of a weak battery powered device far away). You can lookup ‘low noise amplifier’, if you’re interested in more details. So there can be some degree of asymmetry here. But this will only go that far. You are perfectly right that if you have a very weak or low quality device, then the stick might not be able to see its return signal, even if it can reach it. In that case, you’ll need a repeater. Only testing can tell.

Yes, the Pi has onboard wifi. You can use this for connecting to your router. Both wifi and ZigBee (over the controller stick) are handled simultaneously by the Pi. Typically people will suggest connecting it to your router using a cable, because it’s more stable and a dedicated wifi router will have a much better range than the Pi. But nothing stops you from just using the onboard wifi to get started.

Yes, that’s perfectly possible. Just make sure to block the port in the router, so it isn’t inadvertently open to the internet. Most ISP delivered routers will do this automatically (incoming connections are usually blocked by default).

Hi Alex,

Once again, thank you for very informative answers!
I think I have soon understood the bare basics :slight_smile:

I have been looking at zigbee sticks - the Zigbee2MQTT page lists some compatible sticks, that also seem to compatible with the other software add-ons: https://www.zigbee2mqtt.io/information/supported_adapters.html

From what I can tell, range-wise the CC2538 + CC2592 - Zigbee dongle, the zzh! CC2652R Multiprotocol RF Stick and the CC2652RB development stick might all be good choices for a long-range setup. The latter two seems to be multi-protocol and not just zigbee. But I am a bit unsure if the CC2592 amplifier would be the most powerful option - or if one of the other sticks would be better?

Also I am a bit confused about flashing - I would prefer a stick that does not need additional hardware to flash, as I guess you will eventually need to flash the hardware to provide support for new devices or updates to the zigbee protocol?

Does anybody have some insight into this?

EDIT: Since these questions about a stick qualify for a new discussion I have made a new thread here: Best most powerful zigbee stick?

I still have the same doubt cause i have read on the community web page about bulb repeaters and other usb repeaters. But iam confused which repeater to order for and if i get it then how am i supposed to integrate it us repeaters in the zigbee2mqtt using a usb cc2531 dongle.??