Xiaomi s box gen2 can't be accessed after power off

I’m trying to use Android tv integration with Xiaomi s box gen2.
When the tv box is powered everything is ok, but if the box is switched off by integration or by physical remote integration becomes unavailable.
I tried to use a Wi-Fi connection as well as USB to ethernet adapter.
Does anybody know how to configure it?