I’ve build a hopelessly overengineered button to turn on the bathroom ventilation. The project runs as a Rust application deployed in a multi-node k3s cluster in my home lab and it’s awesome. The whole stuff could also have been a 10 line python script or probably a simple configuration either in zigbee2mqtt or in Home Assistant. I know. That’s missing the point!
Our bathroom ventilation is turned on/off via a Zigbee linked smartplug which I control via mqtt provided by zigbee2mqtt. I needed to do this because the cord to turn this on/off manually broke at some point last year, and this appeared like an elegant drop-in solution with one advantage: We could turn this on/off via a button.
I use one of those SNZB-01P Sonoff Zigbee buttons, glued to the bathroom wall at a convenient place. A first protoype was written in python and worked pretty well. Task accomplished.
Well … Fast forward about a year and the Python script transformed into a Rust application (for the game!), and now it’s being deployed to my Kuberentes cluster, because I’m deprecating the host where this was running before. So, yeah, this runs now in k3s.

From here there are still many more steps to take the project to a full glory:
- Add a seccomp profile
- Make the application run well in parallel, such that I can have redundancy
- Add more sophisticated logging
- Build an oracle, which feels when the ventilation “is needed” and turns it on
- Build a blackforest cherry cake reminder 1 week before my birthday
It’s all fun until it doesn’t work … Then I probably will revert back to that silly old Python script ;-)