So I've got some Tuya Zigbee switches in pretty much every room, and at some point I noticed the signal between them gets messed up whenever someone walks past.
Makes sense: at 2.4 GHz you're basically a bag of water, so your body eats and scatters the signal. Walk between two switches and the link drops several dB.
So I wrote custom firmware for the TLSR8258 chip that these Tuya switches use.
The switches beacon each other, measure the RSSI changes on the switch itself, and tell Home Assistant when there's movement in a room.
In HA every room gets an Occupancy binary_sensor, and you use it like any motion sensor.
The switches still behave like normal switches: relays, buttons, bindings, OTA all work, in ZHA or Zigbee2MQTT.
They're still plain Zigbee 3.0 routers.
There's also an HA panel where you set up rooms, watch presence live, tune sensitivity per link and calibrate.
You can flash the firmware from the panel too, through the normal ZHA/Z2M OTA.
By default it's read-only, so nothing gets written to your devices until you turn writes on.
Where it falls short (being honest here):
- Only mains-powered TLSR8258 boards (with neutral). Battery devices would drain fast, so no.
- I've been running it daily for over a month on 3 boards with no issues: TS0001 _TZ3000_0t4zjtia, TS0002 _TZ3000_ptjcjise, TS0003 _TZ3000_jfh4mdia. The board table has 123 boards that should work, but I haven't tested those myself.
- A link only "sees" close to its own path, so a room needs links that actually cross it.
- Right now it's motion, not presence. If you sit still, it holds the room on a timer, and mmWave wins there.
I'm working on real presence detection: the math is done and partly tested, but I'm not happy enough with it to ship yet.
- Network cost is about 0.5% airtime per switch at 5 beacons/s. Beacons are never relayed.
Install: HA 2026.11+ Marketplace > Add from link > https://github.com/simoncirstoiu/Ripple (type Integration), or install manually.
Back up first, and please don't cut power mid-flash, it might brick your device (never tested this part so therefore the "maybe" part 😄 )
Repo: https://github.com/simoncirstoiu/Ripple
If you've got a TLSR8258 board that isn't on the tested list and you're feeling brave, I'd love to hear whether it works or blows up.
That's the fastest way to grow the list.
If you find it useful please give it a share and a star on github to rise awareness.
I made a discord server for those who want to be closer to this project and faster responses.
https://discord.gg/CvhbwW79SH