Page 1 of 1

Zigbee home automation on Pi Zero W

Posted: Fri Sep 07, 2018 6:01 pm
by RyanW_IoT
Hi everyone,

Hoping someone here can help clarify some things for in the home automation space.
I want to create my own smart home hub and from my research i think Zigbee is the most appropriate communication between my devices and hub mainly because they're cheaper than z-wave.

My question is how do i use Zigbee with the raspberry pi?
i was looking at the Xbee module https://uk.rs-online.com/web/p/products/1225774/

Does this module support zigbee and if so can it be connected directly to the raspi?
I was also looking at the nrf24l01 module and noticed they operate on the same frequeny (2.4GHz) does this mean it can also communicate with Zigbee devices?

Any help is appreciated as i am very new to this.

Thanks in advance

Re: Zigbee home automation on Pi Zero W

Posted: Fri Sep 07, 2018 9:31 pm
by OutoftheBOTS
Now I am not sure about this but someone might correct me on this but the RPi should be capable of doing zigbee without any extra hardware as it already has a 2.4GHz radio. WiFi, Bluetooth and Zigbee all use 2.4GHz radio but are just different protocols (i.e just different software).

I did a quick google and didn't find anything about using Zigbee on RPi without extra hardware.

Re: Zigbee home automation on Pi Zero W

Posted: Fri Sep 07, 2018 10:46 pm
by PhatFil
zigate is a zigbee network sniffing tool /hub i found on kickstarter https://zigate.fr/wiki/ and then did nothing with.. i have yet to invest in any zigbee sensors finding it easier to lift data from cheaper ble based sensors atm. i need 2 x pi-zero-W modules to give me total ble sensor coverage over the house. (small uk properties..;) )

Re: Zigbee home automation on Pi Zero W

Posted: Sat Sep 08, 2018 12:07 am
by danjperron
Zigbee are great but are expensive. I switch my IOT using MQTT via esp8266 and nrf24L01 which are way cheaper than zigbee.


The only Zigbee device are my Roomba remote interface I did for my model 400 which is still working even if it ~10 years old and I had change the battery multiple times.

https://www.raspberrypi.org/forums/view ... 09#p463609

nrf24L01
https://www.raspberrypi.org/forums/view ... 1#p1156616
https://github.com/danjperron/nRF24L01_With_Sensor


for the ESP8266 check some sonoff switch like tasmota github. Works very well with MQTT. All my home is using it and my amazon echo run them.
https://github.com/arendst/Sonoff-Tasmota

Re: Zigbee home automation on Pi Zero W

Posted: Sun Jan 13, 2019 2:02 pm
by alunze
Depend of manufacturer, Zigbee is not so expensive.
On Xiaomi device, you can find lot of devices under 10$. For a complete product and not a DIY.
You can too use a CC2531 as coordinator, it cost less than 10$ too.

I m agree, it s more expansive than ESP8266, but it's not the same installation. More possibilities with zigbee.

Re: Zigbee home automation on Pi Zero W

Posted: Tue Jan 15, 2019 10:44 am
by reted30
Hi, I have also worked with ZigBee Products using Long range relays boards to be controlled by Wireless modem which connected via the USB port of Raspberry Pi I have been using Digi-mesh package using python which will help you out in making your home automated.

https://github.com/digidotcom/python-xbee

Re: Zigbee home automation on Pi Zero W

Posted: Wed Nov 27, 2019 8:13 pm
by rowan.bradley
I'm still confused about the answer to the OP's question. Is it possible to implement Zigbee on a Rasp Pi Zero W with no additional hardware, or not? If not, what is the most cost effective hardware that I need to add?
If it IS possible, what software do I need?

A related question - what is the relationship between Zigbee and Xbee? Are they identical? If so then surely it was very unhelpful for them to be called different things. Or is one a subset of the other? Which way round? Or are they just different? If so, what are the pros and cons?

Thank you for your help - Rowan

Re: Zigbee home automation on Pi Zero W

Posted: Wed Nov 27, 2019 8:40 pm
by danjperron
I'm still confused about the answer to the OP's question. Is it possible to implement Zigbee on a Rasp Pi Zero W with no additional hardware, or not? If not, what is the most cost effective hardware that I need to add?
You need at least a Zigbee module to connect directly through the Pizero serial or the USB port and I will suggest another 3.3V power source.

Basically this is what you need.

But only one Zigbee module won't do any good. You need to have other wireless peripheral using these modules. The module could be stand alone because the Zigbee module could have GPIO and could be directly control via software or directly from another zigbee module.
Analog In are available, Analog out are PWM pulse.


I did buy a long time ago a Zigbee shield from Italy but I don't know if it is made anymore. This particular shield has the nRF24L01 plug-in also.

Image

Re: Zigbee home automation on Pi Zero W

Posted: Fri Dec 06, 2019 5:32 pm
by rowan.bradley
The original poster said:

"Now I am not sure about this but someone might correct me on this but the RPi should be capable of doing zigbee without any extra hardware as it already has a 2.4GHz radio. WiFi, Bluetooth and Zigbee all use 2.4GHz radio but are just different protocols (i.e just different software)."

Is he right in his assumption that since the frequency of Zigbee matches that of the Rasp Pi hardware, then it's just a matter of protocol, and that this is implemented in software? If so, then he should be right, that it should be possible to implement Zigbee on the Rasp Pi just by changing the software (without any additional hardware). If on the other hand some of the protocol is implemented in hardware, then maybe some Zigbee hardware DOES need to be added. Which is correct?

If I need to add hardware to the Rasp PI Zero W to implement Zigbee, what is the best/most cost effective hardware to add?

And can someone answer my questions about XBee? What exactly is it? Is it identical to Zigbee, i.e is it fully compatible in both directions? If not, what is the difference? Is Zigbee a subset of XBee? Or is XBee a subset of Zigbee? Or neither of these?

Thanks - Rowan