We connected the bathroom ventilation system (Perilex-controlled Exhaust Ventilation unit) to Home Assistant using a Shelly 2.5, which consists of two Wi-Fi-controlled relays. This enables us to regulate the fan speed based on humidity levels, reducing unnecessary noise when using the toilet or taking a bath.
More details, Arduino code, automation example, and a bill of materials can be found in our blog Smart Bathroom Ventilation