Code Monkey home page Code Monkey logo

zigbee-plant-sensor's People

Contributors

bbadaboom avatar mariusschiffer avatar oleo65 avatar stanvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zigbee-plant-sensor's Issues

Recover from lost zigbee connection

I have deployed 6 zigbee sensor around the house for a week now. In general they work quite reliably and the coverage is a lot better than the BLE variant.

I do experience a strange connection issue with some of the sensors. They seem to drop out of the zigbee network randomly after >24h of operation and stay stuck there.

  • The sensor report in HA as unavailable
  • The red led on the PCB is constantly on. (The same as during the initial connection after reboot, which takes usually between 5-10 seconds). I suspect the led staying on will drain the batteries quite quickly.

After rebooting the sensor (by shorting RST to GND), the sensor always connects back to the network just fine within a few seconds and works again for at least 24 hours without any problems.

Does anyone else experience any drop outs from zigbee or a similar behaviour?

A first mitigation might be to simly software reset the device if no zigbee connection can be made for say 15-20 minutes. Maybe it is some issue with the Zephyr zigbee stack? I just have no real idea how to implement this yet.

Also I would suggest that we might change the led behaviour from constant on to flashing or even multi-flashing to signal what might be the issue and preserving some precious power.

Strict Zigbee Cluster Library (R8) and Zigbee PRO 2017 (R22) Protocol Specification compatibility for out-of-the-box with the ZHA integration in Home Assistant?

See ZHA docs which indirectly explain that ZHA integration more or less follows the standard Zigbee specifications by the letter:

https://www.home-assistant.io/integrations/zha/#knowing-which-devices-are-supported

https://www.home-assistant.io/integrations/zha/#zha-exception-and-deviation-handling

Summary; a device should only need a “quirk” in the ZHA Device Handlers library if don’t use standard Zigbee clusters and attributes, so receommend strictly follow Zigbee Cluster Library (R8) and Zigbee PRO 2017 (R22) Protocol Specification for out-of-the-box compatibility with zigpy library and the ZHA integration in Home Assistant:

https://github.com/zigpy/zha-device-handlers/blob/dev/README.md#what-are-these-specifications

What are these specifications

https://github.com/zigpy/zha-device-handlers/

https://github.com/zigpy/zha-device-handlers/blob/dev/README.md

Also see discussion in this somewhat related issue:

zigpy/zha-device-handlers#1171

Still, if the device gets complexed or advanced with more sensors then might also be nice to have a "Blueprint" for Home Assistant:

https://www.home-assistant.io/blog/2020/12/13/release-202012/#blueprints

https://www.home-assistant.io/docs/blueprint/

https://www.home-assistant.io/docs/automation/using_blueprints/

https://community.home-assistant.io/c/blueprints-exchange/53?page=1

PS: Blueprints are universal could also be used for Zigbee2MQTT and Phoscon/deCONZ so not limited to the ZHA integration.

support for nrf52833

Hi, is there a possibility of adding support for nrf52833 please? Or if you give me an outline of what needs to be done I can look into this.

Thanks.

Temperature readings wrong around with negative temperatures

I am experiencing a strange behaviour with the reported temperature values in Home Assistant via ZHA integration.

Currently we have negative temperatures outside but the reported temperatures are not. The chart probably best describes the behaviour.

Screenshot 2022-12-14 140506

At first I suspected a signed/unsigned integer error but the source code seems fine to me. Is there any setting with the SHTC3 sensor which might cause this?

I can rule out a defective device since all three sensor which I placed outside are showing the same behaviour.

Sensor with bad reception goes into unrecoverable state

I have one sensor in an area with bad ZigBee reception. It has no ZigBee routers nearby but a wifi repeater.
After an initial start up it transmits data for about 3-10h, then stops. It even does not continue if I move it to an area with good reception. The attached image shows the effect.

The ZigBee coverage is not terrible (after all, it does transmit without issues for a while), just not very good.
I had a ZigBee lamp next to the device and the device worked perfectly for a few weeks. Then I removed the lamp, and the issue started to surface.
After a few of these "crashes" I thought the device was defective, so I switched it with another one. But also the second device showed the effect. And the first one, when moved to another room works perfectly.

Screenshot_20230104-073358

Consider redesign board for CR2477 or CR2450 battery instead of CR2032?

Suggest re-design board with battery-clip/battery-holder/battery-retainer for CR2450 or CR2477 batteries instead of CR2032 batteries?

  • CR2477 is 24 x 7.7 mm in size and usually has about 1000 mAh of capacity on average.
  • CR2450 is 24 x 5.0 mm in size and usually has about 550 mAh of capacity on average.
  • CR2032 is only 20 x 3.2 mm (coin cell size) but only has 200 mAh average capacity.

Alternative universal solder pads supporting fitting battery-clips/battery-holders/battery-retainers for either CR2477, CR2450, or CR2032?

I think that it might be possible to find a cleverly designed battery-clip/battery-holder/battery-retainer for CR2477 that could even be able to hold either a CR2477 or a CR2450 or even two CR2032 batteries stacked on top of each other, or what do you think?

Example:

MYOUNG MY-2477-02 (Mfr. Part # MY-2477-02 LCSC Part # C2979175)
https://lcsc.com/product-detail/Battery-Connectors_MYOUNG-MY-2477-02_C2979175.html

MYOUNG MY-2477-01 (Mfr. Part # MY-2477-01 LCSC Part # C2979173)
https://lcsc.com/product-detail/Battery-Connectors_MYOUNG-MY-2477-01_C2979173.html

MYOUNG MY-2450-01 (Mfr. Part # MY-2450-01 LCSC Part # C964845)
https://lcsc.com/product-detail/Battery-Connectors_MYOUNG-MY-2450-01_C964845.html

Reference:

https://jeelabs.org/2015/07/29/could-a-coin-cell-be-enough/index.html

FYI, CR2450 and CR2477 are also relativly inexpensive and commonly available almost everywhere today, and a 10-pack of either CR2450 or CR2477 costs less than $10 US-dollar now so please do not let price per battery play a major role in your decision, see these examples:

https://www.google.com/search?q=CR2450&tbm=shop

https://www.google.com/search?q=CR2477&tbm=shop

https://www.amazon.com/s?k=CR2450

https://www.amazon.com/s?k=CR2477

https://www.amazon.de/s?k=CR2450

https://www.amazon.de/s?k=CR2477

PS: I personally hate to replace batteries so really looking to get a large battery capacity and a long time between replacements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.