Xiaomi Mi Contro Hub Integration - Possible?

Good Morning,
Im evaluating to buy a Rasperry PI4 + Home Assistant in order to manage my Xiaomi Home Getway and devices (e.g., water leaks sensor and others) in a better way than the Xiaomi Home App.

The gateway version 272 with firmware 1.4.1_175.0220. Questions:

  1. Is it possible? on the app, under “about” on the hub menu > i see a “wireless communication protocol” menu where i can enable the “wireless communication protocol” and see a password. (Lumi Hub Communication protocol). Can u confirm me ? So is feasble?
  2. Using HA is possible for example in case of alarm from a leak sensor receive an email?

Thanks for help me
regards
Gianluca