Question about IR devices

Hello Everyone
i have an IR device connected to a built in screen zigbee hub , the problem is when i turn of the wifi , the IR device become unresponsive .
do anyone know what is the problem , and how can i solve it ?

You don’t tell us what your IR device is connected to HA. Nor do you tell us anything about your Zigbee setup. Need more info.

Chances are one or both use a network connected device, service, or coordinator and by killing the wifi you sever that link. But without a full description of your setup were just guessing.