Zigbee sensors for farm buildings
Zigbee sensors cost little, need no wiring and run for a year or more on a coin cell. They are made for homes, and they suit a greenhouse or a pump house just as well.
Zigbee is a short-range, low-power radio network. Sensors join a coordinator stick plugged into a computer, and the free program Zigbee2MQTT turns their messages into MQTT. The Urvara gateway listens to those messages and sends every numeric value to Urvara as a reading.
What you need
- Zigbee sensors: temperature and humidity, leak, door contact, and others.
- A Zigbee coordinator, usually a USB stick.
- Zigbee2MQTT running on the same computer as the Urvara gateway, or anywhere on the farm network.
- One line in the gateway’s settings to turn the Zigbee listener on.
What arrives in Urvara
- Each sensor becomes a device, named as in Zigbee2MQTT. It needs no token and no set-up in Urvara.
- Numbers and on/off values become readings: temperature, humidity, battery, link quality, leak, contact.
- Text values such as button presses are skipped.
- Up to 32 values are taken from one message.
Range
One Zigbee hop reaches from a few metres to a few tens of metres, less through walls and wet foliage. Mains-powered Zigbee devices pass messages on, so a few plugs or repeaters extend the network across a building. For open fields, use LoRaWAN instead.
| Zigbee | LoRaWAN | Wi-Fi | |
|---|---|---|---|
| Range | Tens of metres, extended by mesh | Hundreds of metres to kilometres | Tens of metres |
| Battery life | A year or more | Years | Days to weeks, unless mains powered |
| Best for | Inside buildings | Fields and remote tanks | Mains-powered boards near buildings |
Readings only
Urvara listens to Zigbee sensors. It does not send commands to Zigbee devices, so a Zigbee plug cannot be switched from Urvara.
- Every numeric value from Zigbee2MQTT as a live reading.
- Battery and link quality for each sensor.
- Zigbee2MQTT on the gateway’s own broker or on its own.
- Switching Zigbee plugs and relays from Urvara.
Live farm has been tested with simulated devices on every route except USB. It has not yet been run with physical sensors in the field, so treat pin numbers, calibration values and radio set-ups as things to check on your own hardware.
Questions people ask
Do Zigbee sensors work outdoors?
Most are made for indoor use. In a greenhouse or shed they work if they are kept out of spray and direct sun. For sensors in the open, choose one rated for outdoor use or use LoRaWAN sensors made for fields.
What is Zigbee2MQTT?
Zigbee2MQTT is free, open-source software that connects Zigbee devices from many makers to MQTT, without each maker’s own hub or cloud.
Last checked against the product: .