Tuya wifi protocol

I have an alarm with tuya sensors but no wifi. So i am putting an esp32 as kind of man in the middle. All i need to know is when the sensor sends a packet. I have it up and running, but the issue is that some how the sensor “knows” that there is no internet, so keep sending the message every 5 secs for 1 minute. This reduces the battery life. When testing with wifi, it just send 1 message. I have been monitoring the wifi with wireshark and can not see any incoming message from internet, so do not understand why the behavior.actually compared both captures with and without internet and are the same…Anyone has any comment?