Plant Watering Sensor Project for Zigbee Network

Overview

Plant-Watering-Sensor-Zigbee

Plant Watering Sensor Project for Zigbee Network (based on the Source Code of the DIYRUZ Flower Project - https://github.com/diyruz/flower)

Powered by SoC CC2530, the sensor is based on a capacitive measurement method. The sensor is powered by a CR 2450 battery (CR 2477).

Donate to me: https://paypal.me/efektalab or just buy to support this project

Sale: https://www.tindie.com/products/diyberk/plant-watering-sensor-efekta-zigbee2mqtt/

Video: https://youtu.be/DzgeWvG4MEI

Telegram ZigDev - https://t.me/zigdev

Telegram DiyDev - https://t.me/diy_devices

More info at http://efektalab.com/eON_PWS_Z


Plant-Watering-Sensor-Zigbee2

Plant-Watering-Sensor-Zigbee2

Plant-Watering-Sensor-Zigbee2

Plant-Watering-Sensor-Zigbee2

Components:

(Soldering time: 10-15 minutes.)

CC2530 E18-MS1-PCB - https://ali.ski/v8RP7i (10pcs)

CC2530 E18-MS1-PCB - https://ali.ski/o_TBGP

Tantalum Capacitor 220uF - https://ali.ski/VApfn

SMD LED 0805 - https://ali.ski/wb6ZP

1% SMD Resistor Kit Assorted Kit 1R-1M 0603 - https://ali.ski/npItF

SMD Chip Multilayer Ceramic Capacitor 0603 10pF 50V - https://ali.ski/p3yr60

SMD Chip Multilayer Ceramic Capacitor 0603 100nF 50V - https://ali.ski/p3yr60

1N4148WS - https://ali.ski/cOCdto

Cell Holder CR2450 - https://ali.ski/VdotsA

Micro Button Tact Switch SMD 4Pin 3X4X2.5 - https://ali.ski/sGwFu

IRLML6402TRPBF - https://ali.ski/_iNbX

Micro Screws M1.4 5mm - https://ali.ski/gaFdO


How to flash the device

  1. Download the Smart RF Flash Programmer V1 https://www.ti.com/tool/FLASH-PROGRAMMER

  2. Open the application select the HEX firmware file

  3. Connect the device with wires to CCDebugger, first erase the chip, then flash it.


How to install IAR

https://github.com/ZigDevWiki/zigdevwiki.github.io/blob/main/docs/Begin/IAR_install.md

https://github.com/sigma7i/zigbee-wiki/wiki/zigbee-firmware-install (RU)


How to add support yourself in MJD

  1. https://github.com/smartboxchannel/Plant-Watering-Sensor-Zigbee/blob/main/majordomo-zigbee2mqtt/README.md (MJD https://mjdm.ru/)

How to join:

If device in FN(factory new) state:

one way
  1. Open z2m, make sure that joining is prohibited
  2. Insert the battery into the device
  3. Click on the icon in z2m - allow joining (you have 180 seconds to add the device)
  4. Go to the LOGS tab
  5. Press the reset button on the device (the join procedure will begin, еhe device starts flashing the LED repeatedly)
  6. Wait, in case of successfull join, device will flash led 5 times, if join failed, device will flash led 2 times
another way
  1. Open z2m, make sure that joining is prohibited
  2. Insert the battery into the device
  3. Click on the icon in z2m - allow joining (you have 180 seconds to add the device)
  4. Go to the LOGS tab
  5. Press and hold button (1) for 2-3 seconds, until device start flashing the LED repeatedly
  6. Wait, in case of successfull join, device will flash led 5 times, if join failed, device will flash led 2 times

If device in a network:

one way
  1. Hold button (1) for 10 seconds, this will reset device to FN(factory new) status
  2. Click on the icon in z2m - allow joining (you have 180 seconds to add the device)
  3. Go to the LOGS tab
  4. Press and hold button (1) for 2-3 seconds, until device start flashing the LED repeatedly
  5. Wait, in case of successfull join, device will flash led 5 times, if join failed, device will flash led 2 times
another way

1.Find the device in the list of z2m devices and delete it by applying force remove 2. Click on the icon in z2m - allow joining (you have 180 seconds to add the device) 3. Go to the LOGS tab 4. Press the reset button on the device (the join procedure will begin, еhe device starts flashing the LED repeatedly) 5. Wait, in case of successfull join, device will flash led 5 times, if join failed, device will flash led 2 times

Troubleshooting

If a device does not connect to your coordinator, please try the following:

  1. Power off all routers in your network.
  2. Move the device near to your coordinator (about 1 meter). or if you cannot disable routers (for example, internal switches), you may try the following: 2.1. Disconnect an external antenna from your coordinator. 2.2. Move a device to your coordinator closely (1-3 centimeters).
  3. Power on, power on the device.
  4. Restart your coordinator (for example, restart Zigbee2MQTT if you use it).

If the device has not fully passed the join

  1. If the device is visible in the list of z2m devices, remove it by applying force remove
  2. Restart your coordinator (for example, restart Zigbee2MQTT if you use it).
  3. Click on the icon in z2m - allow joining (you have 180 seconds to add the device)
  4. Go to the LOGS tab
  5. Press and hold button (1) for 2-3 seconds, until device start flashing the LED repeatedly
  6. Wait, in case of successfull join, device will flash led 5 times, if join failed, device will flash led 2 times

Other checks

Please, ensure the following:

  1. Your power source is OK (a battery has more than 3V). You can temporarily use an external power source for testings (for example, from a debugger).
  2. The RF part of your E18 board works. You can upload another firmware to it and try to pair it with your coordinator. Or you may use another coordinator and build a separate Zigbee network for testing.
  3. Your coordinator has free slots for direct connections.
  4. You permit joining on your coordinator.
  5. Your device did not join to other opened Zigbee network. When you press and hold the button, it should flash every 3-4 seconds. It means that the device in the joining state.
Issues
  • EFEKTA Zigbee Plant Watering Sensor compatibility with Home Assistant ZHA?

    EFEKTA Zigbee Plant Watering Sensor compatibility with Home Assistant ZHA?

    Is this EFEKTA Zigbee Plant Watering Sensor compatibility with Home Assistant ZHA?

    https://www.home-assistant.io/integrations/zha

    Would like to know if its sensors and attributes are properly detected out-of-the-box by ZHA?

    Blakadder open compatibility database list only confirms it working with Zigbee2MQTT:

    https://zigbee.blakadder.com/EFEKTALAB_EFEKTA_PWS.html

    opened by Gamester17 4
  • Request redesign for newer Texas Instruments multi-protocol module like CC2652

    Request redesign for newer Texas Instruments multi-protocol module like CC2652

    @smartboxchannel Have you considered replacing CC2530 with a new TI CC26xx MCU like the CC2652 series or similar?

    Should in theory make the battery last much longer and get better signal range, as well as make for more future-proof hardware with the potential of perhaps not only use Zigbee 3.0 but also even using Thread, Matter (Project CHIP), and/or Bluetooth via multi-protocol support as well.

    Maybe use one of newer CC2652P, CC2652R/CC2652R1/CC2652R2 or CC2652RB multi-protocol modules from RF-Star or Ebyte?

    I understand RF-Star RF-BM-2652P2 and Ebyte E72-2G4M20S1E CC2652P modules with integrated PCB antenna are most popular:

    https://www.szrfstar.com/product/237-en.html

    https://www.szrfstar.com/product/189-en.html

    https://www.szrfstar.com/product/list-196-en.html

    https://www.ebyte.com/en/product-view-news.html?id=1002

    https://www.ebyte.com/en/product-view-news.html?id=1481

    https://www.ebyte.com

    opened by Hedda 3
  • Add photoelectric/photoresistor light meter sensor (similar to Xiaomi Mi Flora)

    Add photoelectric/photoresistor light meter sensor (similar to Xiaomi Mi Flora)

    Please consider adding a photoelectric/photoresistor light meter sensor for measuring plant light levels (a.k.a. "sunlight measurement) in order to help determine growth conditions to the hardware design and firmware code/images.

    Examples of Arduino compatible Digital Light Meter sensors are BH1750

    https://www.instructables.com/BH1750-Digital-Light-Sensor/

    https://learn.adafruit.com/adafruit-bh1750-ambient-light-sensor

    https://create.arduino.cc/projecthub/jendeegan/light-meter-to-measure-plant-growth-conditions-7a12a9

    opened by Hedda 3
  • Frequency of data transmission

    Frequency of data transmission

    Hello

    I bought two sensors.

    Both are under zigbee2mqtt with Home assistant.

    Is it possible to increase the frequency of sending data to mqtt? or Home Assistant?

    Thanks

    Regards

    opened by rto54 3
  • Temperature very wrong

    Temperature very wrong

    I just got two Plant Watering Sensor EFEKTA (Zigbee) from tindie. Both show about 7 °C to low temperature (e.g. 14°C instead of 21°C). Is this normal or a defect? I have never experienced such a big difference.

    And one question: Can the sensor be used outdoor in the garden? I bought it with enclosure, but I do not know, if it is water resistant enough for an outdoor usage.

    Thanks!

    opened by NeuerUser 2
  • Add a temperature and humidity combo sensor (AM2302, Si7021, DHT11 or DHT22)

    Add a temperature and humidity combo sensor (AM2302, Si7021, DHT11 or DHT22)

    Request add a temperature and humidity combination sensor to the hardware design and firmware.

    Examples of an Arduino compatible temperature and humidity sensors are AM2302, Si7021, DHT11, DHT21, or DHT22

    opened by Hedda 2
  • Zigbee 3.0 firmware (on CC2530) for EFEKTA Zigbee Plant Watering Sensor?

    Zigbee 3.0 firmware (on CC2530) for EFEKTA Zigbee Plant Watering Sensor?

    Please consider building and releasing a Z-Stack 3.0.x (Zigbee 3.0) firmware for CC2530 based EFEKTA Zigbee Plant Watering Sensor.

    FYI, kirovilya from DIYRUZ community have backported Z-Stack 3.0 (with Zigbee 3.0) support to CC2530 as a proof-of-concept:

    • https://github.com/diyruz/diyruz_rt
      • https://github.com/diyruz/diyruz_rt/releases
        • https://zigbee.blakadder.com/DIYRuZ_RT.html

    kirovilya tested Z-Stack 3.0.x firmware with DS18B20 on Sonoff BASICZBR3 and also made config to be a Zigbee 3.0 router device:

    • https://habr.com/ru/company/iobroker/blog/495926/ (written in Russian so used Google Translate)

    For a battery-operated device you would of course want to use a Zigbee end device config and not a Zigbee router config.

    More information on Z-Stack 3.0 for CC253x (CC2530 and CC2531) here:

    https://www.bestov.io/blog/zigbee-3-part-1-getting-started-with-cc2530

    https://www.cnx-software.com/2020/05/25/zigbee-firmware-news-ti-z-stack-3-0-zigbee-for-cc2530-ptvo-zigbee-fw-configuration-tool/

    https://github.com/Koenkk/zigbee2mqtt/issues/1445

    opened by Gamester17 2
  • Temperature precision

    Temperature precision

    Hi Andrew,

    There seems to be some inconsistency with temperature measurements. I've built 6 sensors and the range of reported temperature is about 8C under ambient. These are all lying side by side on a table for 3 or 4 days now. Is the temperature measurement done by the E18 module? Or is it dependent on the firmware?

    I am using zha instead of z2m, I don't know if that may also be a factor as there is no quirks file for zha yet.

    image

    opened by reven 1
  • Device only publishing announce messages, no sensor payloads

    Device only publishing announce messages, no sensor payloads

    Hi, I bought 3 of these a while back. I had them set up for almost 3 weeks and it was doing fine (the reporting frequencies were not consistent).

    The battery ran out so I replaced them and all of a sudden the devices would only publish announce messages to zigbee2MQTT never a payload.

    MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Money Tree Sensor","ieee_address":"0x00124b000611c77e"},"type":"device_announce"}'
    
    MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"Money Tree Sensor"},"type":"device_announced"}'
    
    

    I replaced all three and it seems to still have issues. I've tried resetting to factory defaults (hold button for 10 seconds) and then force remove and readding them to my setup.

    They sometimes take a while to trigger the interview but they are connected fine and the only t hing they'll publish is the LQI.

    Not sure what I can do to fix this.

    Also was it ever configured that pushing the button once would send the active payload?

    opened by djfluffkins 1
  • Deleted store on tindie

    Deleted store on tindie

    Did you deleted the store on Tindie or they deleted you just for being russian?

    I was considering to buy more sensors but it disappeared from tindie...

    Thanks!

    opened by yayitazale 5
  • Trouble Programming

    Trouble Programming

    I apologize for reaching out, but I have been having a large amount of issues flashing my own device's. I also have a unit purchased from tindie which cannot be recognized by my cc debugger as well (Both stay on red). I can see the cc debugger in device manager under "cebel controlled device's" so I am assuming the drivers are installed properly.

    Finally, I am following the below diagram to try and wire (without the resistors) where 2.2 to 3, 2.1 to 4, 3.3 to 9, GND to 1, and RST to 7.

    image

    I'm a bit at my witt's end as to what's going wrong so any assistance would be greatly appreciated. I tried to do my own research before coming here.

    opened by rainyvalley 2
Owner
Andrew Lamchenko
Andrew Lamchenko
It is a wireless temperature, pressure and humidity sensor, supports working in Zigbee networks.

It is a wireless temperature, pressure and humidity sensor, supports working in Zigbee networks. (Zigbee2mqtt open source project). Built on CC2530 chip (Zigbee), two modications: Ebyte E18-MS1PA2-PCB radio module with amplifier and Ebyte E18-MS1-PCB. Powered by the most common AAA batteries.

Andrew Lamchenko 26 Aug 8, 2022
Zigbee 🐝 Router for Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways.

Lumi Router (JN5169) This firmware is a replacement for the original firmware for the Zigbee chip JN5169 on Xiaomi DGNWG05LM and Aqara ZHWG11LM gatewa

Igor Listopad 36 Jul 16, 2022
A tiny example how to work with ZigBee stack using JN5169 microcontroller

Hello NXP JN5169 ZigBee World This is a tiny example how to work with ZigBee stack using JN5169 microcontroller. The example implements a smart switch

Oleksandr Masliuchenko 19 Jun 23, 2022
GCFFlasher is the tool to program the firmware of dresden elektronik's Zigbee products.

GCFFlasher 4 GCFFlasher is the tool to program the firmware of dresden elektronik's Zigbee products. Supported Hardware ConBee I ConBee II RaspBee I R

dresden elektronik ingenieurtechnik gmbh 21 Jul 8, 2022
This repository contains a set of InternalBlue patches for the BCM4375B1 Bluetooth controller, allowing to sniff and inject Zigbee, Mosart and Enhanced ShockBurst packets from a Samsung Galaxy S20 smartphone.

RadioSploit 1.0 - Patches This repository contains a set of InternalBlue patches for the BCM4375B1 Bluetooth controller, allowing to sniff and inject

Romain Cayre 11 Aug 29, 2021
WiFi scanner with visual persistence, intended to find the idlest channel e.g. to assign to a ZigBee device

WiFiChanViz Motivation This tool was initially coded to help find the idlest 2.4GHz channel in order to connect a ZigBee device to HomeAssistant in id

tobozo 14 Aug 7, 2022
Tube_gateways - Information and Documentation on Tube's Zigbee Gateways

Tube's Zigbee Gateways Information and documentation on Tube's Zigbee Gateways. Pre-assembed hardware devices can be purchased from https://www.tubesz

null 141 Aug 8, 2022
A modern C++ network library for developing high performance network services in TCP/UDP/HTTP protocols.

evpp Introduction 中文说明 evpp is a modern C++ network library for developing high performance network services using TCP/UDP/HTTP protocols. evpp provid

Qihoo 360 3k Aug 12, 2022
XMap is a fast network scanner designed for performing Internet-wide IPv6 & IPv4 network research scanning.

XMap is reimplemented and improved thoroughly from ZMap and is fully compatible with ZMap, armed with the "5 minutes" probing speed and novel scanning techniques. XMap is capable of scanning the 32-bits address space in under 45 minutes.

idealeer 175 Jul 17, 2022
Header-only C++14 library for getting network addresses associated with network interface without name lookups on Windows, macOS, Linux, and FreeBSD

NetIF Get addresses associated with network interfaces on a system without using name lookups. Header-only, requires C++14. Usage Add the header file

GMLC-TDC 9 Aug 2, 2022
Netif - Header-only C++14 library for getting network addresses associated with network interface without name lookups on Windows, macOS, Linux, and FreeBSD

NetIF Get addresses associated with network interfaces on a system without using name lookups. Header-only, requires C++14. Usage Add the header file

GMLC-TDC 9 Aug 2, 2022
A virtual network Differential GNSS server-client project using Precise Point Positioning (PPP). Global coverage. Without physical base station construction needed. An open-source virtual base station approach.

Virtual-Network-DGNSS-Project This project is the software implementation for a publicly available, open-source, client/server VN-DGNSS implementation

null 10 May 20, 2022
The C++ Network Library Project -- cross-platform, standards compliant networking library.

C++ Network Library Modern C++ network programming libraries. Join us on Slack: http://slack.cpp-netlib.org/ Subscribe to the mailing list: https://gr

C++ Network Library 1.9k Aug 9, 2022
WiFi-enabled soil moisture sensor

w-parasite w-parasite is an open source, WiFi-enabled soil moisture sensor for house plants. This repo contains all the hardware design files (schemat

null 126 Jul 31, 2022
API for the AFBR-S50 Time-Of-Flight Sensor Family.

AFBR-S50 API Introduction The AFBR-S50 API is the appertaining software for the AFBR-S50 Time-of-Flight Sensor family by Broadcom Inc. The repository

Broadcom Inc 13 Jul 28, 2022
Wifi MQTT Data Logging via an esp8266 for the Ikea VINDRIKTNING PM2.5 air quality sensor

MQTT connectivity for the Ikea VINDRIKTNING This repository contains an ESP8266 firmware, which adds MQTT to the Ikea VINDRIKTNING PM2.5 air quality s

Sören Beye 865 Aug 5, 2022
Event-driven network library for multi-threaded Linux server in C++11

Muduo is a multithreaded C++ network library based on the reactor pattern. http://github.com/chenshuo/muduo Copyright (c) 2010, Shuo Chen. All righ

Shuo Chen 11.7k Aug 2, 2022
Good Game, Peace Out Rollback Network SDK

(日本語ドキュメントはこちら) What's GGPO? Traditional techniques account for network transmission time by adding delay to a players input, resulting in a sluggish,

Tony Cannon 2.6k Aug 8, 2022