-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZY-M100-S_1 sensors report every second #19045
Comments
This is a TuYa device, these doesn't support to configure reporting. AFAIK there is no way to reduce the reporting interval for these kind of TuYa devices. |
I have the same problem, and I suspect it's the reason for my Zigbee network performance issues. Ever since I added I bought 3 identical TuYa mmWave radar human presence sensor from the same AliExpress listing, and when I paired them they were recognised by Zigbee2MQTT as 2 I suspect that the suppliers are mixing different hardware revisions in the same inventory. My solution is to buy a couple of these sensors from different AliExpress listing until I hit |
Having the same issues and it is crashing my network. About 50% of my ZY-M100-L are joining as S_1 devices and reporting every second. |
I have the same problem, the sensor overloads the network and every 1 second it communicates this information. |
I spent a few weeks sifting through several of these sensors, and the "L" type seems to not exist anymore as I suspect it's now an older hardware revision. I gave up on it and replaced one of my offending sensors with the WiFi equivalent. Unfortunately, I have one outside the WiFi range that will have to keep being noisy on the Zigbee network until something new comes to market or there's a firmware update for it. |
ok thank you very much for your information. |
I had 7 of these on my network and it was crashing (all devices unavailable, z2m UI non-responsive) regularly. I removed all but one and I'm back to stability. |
Any luck with converting to ESPhome? I can only find replacement guides on the WBR3 module (the WiFi version of this sensor) and not the ZT3L chip (Zigbee version). |
Follow the same procedure. All 3 comms modules (WBR3, ZT3L, and ESP-12) support UART for talking with the mmwave module, and all 3 have the same pin layout for the pins you care about (UART TX/RX, VCC, and so on). The result should be identical whether you start with the Zigbee version or the WiFi version. Let us know how it goes for you. |
Has anyone tried the new 24Ghz in ceiling zigbee models to see if they have the same problem? |
Yes and yes. Same behavior in terms of once a second update, I won't install the ceiling sensor becasue the mains 110/220 connection is dangerous (connectors with no strain relief and inadequate separation, poor isolation of low and high voltage components). It's a fire waiting to happen. I've just bough 2 athom esphome sensors to play with which are wifi, have both PIR and MM Wave and so far work great. They run on 5v usbc. and the connector is on the back so if you ceiling mount them it's invisible. |
I have exactly the same problem here, my ZY-M100-S_1 is reporting every second, apart from that works perfectly, but obviously is not very good for the zigbee network. I have seen that there is a possible update of this wall sensor called WZ-M10024, anybody tested? |
Using the 24G (both ceiling and non-ceiling) that are identified as ZY-M100-24G (_TZE204_ijxvkhd0) on zigbee2mqtt and are spanning the zg network every second. |
For the WZ-M100-W it's also spamming when there is no presence detected, every 0.5 seconds a MQTT message is created. See the log example in #20261 |
At the bottom of the ZT3L board, there's an SWS pad, allowing it to be flashed with custom firmware using the Single Wire interface. I got a suitable programmer from AliExpress, which was a little pricey for what it does. After some intense desoldering and soldering, I successfully dumped the firmware out of the I don't quite understand this sensor's architecture, but the only remaining place is the MCU on the 4th board, which is the one directly connected to the mmwave sensor. It's an ARM Cortex M23 chip. If somebody knows how to dump and flash its firmware, we can try to revert it back to the older firmware and see if that fixes the issue. My worry is this approach is way too coarse, and it's possible the older firmware wouldn't work with the newer daughterboards in the newer version of the firmware. |
It's a pity that this is so difficult. I wonder whether there is a way to get the configuration |
Hello everyone, I wanted to provide an update on the ZY-M100-S_1 sensor's excessive reporting issue. After contacting Tuya, it's evident that the device's frequent reporting is governed by the MCU's firmware, developed using the Tuya MCU SDK. Tuya's module, part of this setup, does not fully support the standard Zigbee 3.0 protocol and is mainly for data transmission. This clarifies that resolving the issue is beyond Tuya's direct scope, as they only supply the networking module, not the device firmware. Consequently, any changes to the reporting frequency would require modification at the firmware level, controlled by the developers who created it. Unfortunately, Tuya could not provide contact details for these developers, suggesting we reach out to the device suppliers or check for contact information on the product packaging. For those interested in a deeper technical dive, Tuya referenced their Zigbee MCU SDK protocol, which might offer more insight into how their modules work: Tuya Zigbee MCU SDK Protocol. |
Thank you for these insights. I have spent the last two weeks trying to figure out what was wrong with the network in my new apartment, starting to setup home assistant from scratch multiple times. I have 9 of these sensors, and the network kept failing when more than 5 of these sensors were included. I solved the issue for now by creating a second zigbee network (a Z2M besides the already existing ZHA network) and dumping all the sensors on there. It seems to work (for now). But a more direct solution to the problem (lower update frequency / less chatter) is of course preferable, and it seems this necessarily has to be done via the firmware route (switching to another sensors is not really a viable option for me, because I prepared all the in-ceiling sensors in my new apartment). Is there any way for a custom firmware, or can it only come from the developers? I really hope there is a solution, because - besides the spamming by these sensors - they work great! |
Besides spamming the Zigbee network, directly forwarding all messages as MQTT messages also spams the computer network. One could reduce the frequency of issues MQTT messages, e.g., if there have been any changes? I think, this should be possible on the Zigbee2Mqtt handler level. |
I would probably not worry about the MQTT side of this issue. For MQTT server running on the same machine that runs Zigbee coordinator, it's all cheap operations in memory and occasional disk commits. It's peanuts in terms of the overall level of activity of your Home Assistant setup. For MQTT server running on another machine, the TCP protocol is more than capable of handling frequent transmissions at pretty much any data rate, and the same applies to the physical layers (Ethernet and WiFi). I don't think any component in your system or network even notices them. I guess in theory I could see those additional MQTT messages being unnecessary spam, but architecting and writing code and tests to rate limit them is probably way too costly compared to the benefit. The biggest issue is the spam on the Zigbee network. It's way more vulnerable to this problem. If you have 2-3 misbehaving devices like this, they can really clog up the Zigbee network, cause lags and delays. When I had 3 of those senors in my network, doing firmware OTA on any of my other Zigbee devices was basically out of the question. |
Anyone able to find any guides on dumping the firmware and modifying it? I have a ton of these devices. At the same time, I ordered a 24Ghz model (MTG235-ZB-RL) with the local switched relay. It is significantly higher quality and a lot safer. It has a power line tie down and plastic cover to protect the power wire screw terminals. Pending installation this week. |
Curious if the TS0225 sensor your getting is any different (in terms of chattiness). Can’t find a lot of info on it, so look forward to your update on that. |
Additionally, the 24Ghz model moved the re-pairing button to the front of the unit so that it is not required to pull the unit out of the ceiling and risk getting shocked. As for testing, the original model is spamming every 1-2 seconds whereas this 24Ghz model is bursty at random. Sometimes no updates for up to 1 minute apart and other times it will send 3 messages a few seconds apart. The is a difference in the size though. This model is 60mm wide instead of 55mm. |
And with “at random” you mean when there is no presence detected? Overall, the way you describe it, it seems like less messages per minute though, correct? |
Even when presence is detected, the messages from this new model are much less frequent. I don't see any impact on accuracy. While it has only been installed for 12 hours, the presence history looks perfect. |
It's not a detection problem but it's actually the zigbee chip that transmits fast I bought 20 zy-m100-v1.4 to put on the same network with 40 other devices, the network collapsed almost immediately I thought of a drastic solution silent for 4 seconds https://futuranet.it/prodotto/micro-modulo-timer-programmabile-2-secondi-1000-ore/ Already ordered, I'll try as soon as they arrive do you think damage could be caused with all these resets |
Put the spammy mmWave radars on a separate Zigbee network ... Just add a second Zigbee dongle. |
that's 20 spam radars talking over each other all the time |
Okay, I decided I will give it a go, but I'm a bit lost about exactly what to order. I see various J-Link and USB-stick options. Can someone post the link to AE versions that are guaranteed to work? And do I also need to order other peripherals, like the cables, or are they included? In other words: I need a shopping list ;) |
I use this: |
Great thank you! I see only the ST-Link v2 here, though. What about the J-Link, and the pinned cables I need to connect to the sensor module? Or is only the ST-link v2 needed? Now I'm confused, I thought the J-Link was also required. but in @tandarra guide only the ST-link v2 is mentioned... Can anyone calrify please. |
@jvdburgt A ST-Link v2 (clone or original) dongle and some male<->female dupont wires are all you need. You do not need to solder the wires, they only need to have good contact for ~5 seconds while flashing. ST-Link v2 clone: Dupont wires male<->female: |
Awesome, many thanks! |
I used some wire jumpers and a female PCB connector that came with some esp32 I bought. |
I've just bought the devices and am attempting to read this thread. |
Change made to my 6 devices ZY-M100-S_2_TZE204_qasjif9e: I can tell that the drop in calls has drastically reduced, but before confirming that it works, I want to wait a bit more than a week since, on many occasions, my Zigbee network didn’t drop immediately, and I want to check its stability. Thank you very much! |
Hi, I have now moved from 20 Some observations:
I also tested one of the newer This is a significant step forward after a year of presence sensor hell, so thank you @Andrik45719. Longer term it would be nice to crack the OTA approach as it is frankly dangerous replacing ceiling sensors for many people. Other features that would be nice:
However, that's a lot more work than just changing some of the default values already encoded in the existing firmware. For now, my sincere thanks! |
I want to thank @tandarra for the really useful starting point he gave with his post, btw I have to clarify some details to help those who want to try their hand:
Now a big thank you to @Andrik45719 for giving us the modified firmware! |
Cheers, updated the spelling mistake in pacman command. |
@JackTalisker and @tandarra : many thanks and perfect timing! My ST-Link v2 should arrive tomorrow and I'll get to it immediately 😬 |
@Andrik45719 |
I have a similar problem with Moes BHT-002/BHT-006 Thermostat. It seems that it uses the same chip inside. Is there any chance some similar setting might be applied for it as well? |
I've noticed a lot spamming of identical message as well. The issue is the current fix is just some tweaks of timeouts, addressing unnecessary spam messages directly would require recoding which I'm not sure is as easy. |
Same here
El vie, 11 oct 2024 a la(s) 5:22 a.m., Ihar Filimonau (
***@***.***) escribió:
… I have a similar problem with Moes BHT-002/BHT-006 Thermostat
<https://www.zigbee2mqtt.io/devices/BHT-002_BHT-006.html#moes-bht-002-bht-006>.
It seems that it uses the same chip inside. Is there any chance some
similar setting might be applied for it as well?
—
Reply to this email directly, view it on GitHub
<#19045 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BENWU6RLLOTRGNG7OB5WKYTZ26DFTAVCNFSM6AAAAAA5CFPYD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWHA4DOMZQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
If you download OpenOCD from it's releases page. The .tar.gz can be unzipped and you will find a windows executable in Open a terminal window and navigate to the e.g. from a Powershell terminal: ./openocd.exe -f interface/stlink.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash read_bank 0 ZY-M100-{YOUR MODEL}.bin" -c "reset" -c shutdown You do not need to install |
I've already had MSYS installed for other reasons but your advice will help who is going to start from scratch 👌 |
Honestly, very happy, and the sensors are still working perfectly. Thank you. |
Using @tandarra steps I was able to successfully firmware update two TS0601_TZE204_ijxvkhd0 and three TS0601_TZE204_sxm7l9xa. Using ST-Link V2 clone and a DuPont Wire Kit. No soldering. Just plugged them in the holes on the board. Worked on 5 out of 5 without issues. The devices have been moved back to my primary ZigBee network and it is stable. Thank you @tandarra! |
Okay guys (and gals), I can't believe how easy that was! I mean, standing on your shoulders with you having done all the hard work. But I have to say that the instructions come across as way scary and complex (at least for a n00b like me), while in reality I set it up and executed it on multiple devices in mere minutes. To whomever is doubting whether to do this: climb on the shoulders of the giants who went before us, honestly it's a breeze :) |
I have now updated multiple types of sensor, in both ceiling and wall. I've noticed that the newer sensors have had several improvements made, including a cover over where the ceiling reset button used to be exposed, and an additional led on the wall mounted sensor. Also some of the ceiling sensors now use standard Philips screws. For the I used some right angle pins to allow me to get a good grip and reduce the spacing. Note the order is also different, with
The same model wall sensors still have the older hole layout. Also, I notice a lot of people are still following the instructions from @tandarra - but it is important to note this comment, which details a much easier and cleaner way to use |
Took out and flashed all 17 (in-ceiling) presence sensors, and now the network is quiet like a Summer meadow :) |
Okay, allthough the sensors generally are working fine after the update, my log is now full of errors with regard to automations that turn on the lights based on presence, of the type "ZIGBEE_MAX_MESSAGE_LIMIT_REACHED: 3075". I'm not sure what to make of this, the presence sensors are on a dedicated MQTT network, while the lights are on a separate ZHA network. Not sure what is causing this, and if/how it is related to flashing the sensors. Any ideas anyone? |
EDIT: direct link http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/utility/stsw-link004.zip can anyone share the necessary software to flash this? I keep getting errors download st software even if I sign up for an account. |
I see you didn't rename your downloaded file to : ZY-M100_L-TargetDistance_disable You did manage to download your existing firmware from the device, so it is working. Don't know if it make a difference but I followed these commands and it wotked. You should put your new renamed file in the same folder that your existing firmware wrote to. Download correct firmware for your device and rename it to "ZY-M100_L-TargetDistance_disable" Now we flash using "openocd -f interface/stlink-v2.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash erase_sector 0 0 last" -c "flash write_bank 0 ZY-M100_L-TargetDistance_disable.bin" -c "flash verify_bank 0 ZY-M100_L-TargetDistance_disable.bin" -c "reset" -c shutdown" |
As for the pins, to ensure they make contact, what I did was bend them a little, and let the module "hang" on the cables (instead of laying it down on the desk), which ensures all pins will make contact. |
What happened?
The Tuya ZY-M100-S_1 (_TZE204_sxm7l9xa) is reporting its values every second. This values can or can not changes.
Here is an example with values not changing:
What did you expect to happen?
A delay or minimal value change that can be configured in the
Reporting
tab.How to reproduce it (minimal and precise)
Pair the sensor and it starts sending data every second or 2.
Zigbee2MQTT version
1.33.0
Adapter firmware version
20221226
Adapter
Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001
Debug log
The text was updated successfully, but these errors were encountered: