Hey @mfalkvidd,
Sorry for the massive delay in getting back to you! You know how it goes—day job, family, late summer madness... I promise to do better.
Where do I even begin? It all kicked off when I managed to snag two nRF52840-DKs on the cheap. And as the saying goes: when you have a hammer, every problem starts looking like a nail. The nRF52 series is absolute magic when it comes to battery life, and in theory, they’re totally MySensors-compatible. I know the MySensors codebase pretty well, mostly from the LoRa side of things (I contributed the ASR and SX126x drivers back in the day, if memory serves), though I never really dived deep into the nRF24 side.
Naturally, Zephyr RTOS is the obvious choice for the nRF52, and I’ve become a massive fan of it. Early on, I made a few half-hearted attempts to port MySensors over to Zephyr, but it never really panned out.
So, I pivoted to Zigbee. However, once you leave the standard clusters behind (like basic temperature or humidity), things get pretty tedious on the controller/backend side. The Nordic Connect SDK also supports Matter over Thread, which runs into the exact same headache for custom payloads. That’s how I finally landed on pure OpenThread—which, remarkably, runs completely fine on the exact same Thread mesh network alongside Matter devices.
Infrastructure
Living in a sprawling, 350-year-old Appenzeller house with a huge garden, having multiple Border Routers is a massive upgrade over a single Zigbee coordinator. Packets always find a way home via one route or another.
I currently have three Border Routers active:
- Basement: An old
slae.sh stick (retired from its former life as a Zigbee coordinator) running an OTBR inside an LXC container on my Proxmox cluster.
- Roof / Outdoors: Two PoE Border Routers from AliExpress mounted under the bargeboards at opposite ends of the roof.
Sensors & Actuators
I’ve got a pretty wide zoo of nodes running now, including a few of rbaron’s b-parasites flashed with custom Thread firmware. Beyond those, I built a pool thermometer, a solar radiation sensor, a rain gauge, and several temp/pressure/humidity nodes.
They are all built around the EByte E73-2G4M08S1C module and powered in one of two ways:
- Directly from a single CR123 (or its LiFePO4 equivalent) with zero voltage regulators.
- From 3x AA/AAA cells, adding just an inductor and a capacitor so I can utilize the nRF52’s built-in DC/DC converter.
On the actuator side, I integrated our rainwater pump house and automated garden/raised-bed irrigation into Thread. Those nodes are beefier, powered either by a 24V PSU or an 8S LiFePO4 battery bank.
Transport & The MySensors Comparison
For transport, I usually stick to CoAP. It’s brilliant because downstream messages destined for Sleepy End Devices (SEDs) get buffered by their parent router and fired off the exact millisecond the node wakes up.
For the pump house, though, I use raw UDP. Inside the pump house, the valves and sensors talk over a CAN bus, and skipping the CoAP overhead makes the latency of my Thread-to-CAN bridge much more predictable. Sadly, it's running without DTLS—I couldn't for the life of me get DTLS working properly in Python (though I verified with openssl that my hardware implementation on the node was solid).
Compared to the MySensors build experience, the learning curve with Zephyr + OpenThread is definitely steeper—you're trading Arduino-style plug-and-play simplicity for a real-time OS, device trees, and Kconfig. It takes more upfront effort, especially wrap-your-head-around-IPv6 effort, but once it's running, the rock-solid stability, native IPv6 routing, and power profiling tools make it completely worth it.
Most of my repos are still... uh, let's say "creatively organized." However, if you want to give it a spin, I’d be happy to throw together a clean sample project using CoAP on an nRF52840-DK alongside a matching Python script and push it to my Forgejo server.
Side note: The most annoying boss fight in this entire setup was getting IPv6 multicast routing to behave properly between the Thread network, my server VLAN, and my IoT VLAN. If you ever go down this rabbit hole and hit a wall there, just ping me—I’m happy to share what worked!
HTH,
Edi