it’s not a HomeAssistant feature but ZHA.
If you are interested please have a look here: Custom ZHA Quirks: Aqara H1 EU + Sonoff ZBM5 — Decoupled/Detach Relay Mode
I have created a custom quirk that brings the possibility to select Attached/Detached mode.