stanvn / zigbee-plant-sensor Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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.
unavailable
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.
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.
When looking at the plant_sensor.js I noticed that there is a dot where a comma seems to be intended.
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.
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.
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.
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.
Suggest re-design board with battery-clip/battery-holder/battery-retainer for CR2450 or CR2477 batteries instead of CR2032 batteries?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.