Water sensor + Mi Gateway Hub 2 on HA (proxmox)

Hello, I have been using Home Assistant on my home server for some time now. I have connected, among others, Gateway Xiaomi Mi Smart Home Hub 2 and the Aqara Water Leak Sensor. HA detects the Hub but not the water sensor. I looked for a solution on the Internet, but most of them used other gateways instead of Xiaomi Hub. Please help with configuration.