Flashing Wenzhi (ZY-M100) presence sensors to stop spam

The cheap Wenzhi ZY-M100 sensor seems quite popular, especially since it seems they’re actually the only ones you can fit into the ceiling. However as noted by many, these sensors spam a lot. But there’s a solution that I came across and I felt it needed more attention here, since this really is nice. This guy patches several Wenzhi sensors. After flashing those the spamming is pretty much gone: GitHub - Andrik45719/ZY-M100: ZY-M100/WZ-M100 solving network spamming

Enjoy!

Actually I decided to work upon this mod. The sensor puts out a few messages that home asssistant currently isn’t even handling (DP 104, which is ‘none or exist’, which is quite useless) and DP 255, which is a boolean message which always seems to be false. Since HA isn’t even processing them I decided to silence them. Also for most of my locations I don’t even need illuminance info, I just want to know if somebody is there, so I also killed that message. The resulting modded file results in minimal traffic, mostly just the DP 1 messages for presence updates and every now and then all settings.

I have a TZE204_ya4ft0w4 myself so this file is only for that sensor: Filebin | sbyn9vsibzop8m7g

Flashing procedure is the same as explained in the github above.

If anyone cares, here’s the same as above with this time with the illuminance still in: Filebin | gb34rn0g8pbe1a36
So it’s the Andrik45719’s modded version with additionally silenced DP 255 and DP 104 (which both aren’t even handled by Home Assistant so it’s useless spam anyway)

Hi gekkehenkie11! Thank you and Andrik45719 for the great work! I have the ceiling version of the TZE204_ya4ft0w4, do you know where I can find pics or a diagram of the pin outs to connect the JTAG programmer?

Hey, yeah it’s on Andrik’s page:

However if I remember correctly, SWDIO and SWCLK have to be swapped for that sensor. But you can try both and see which works.