Connection to air quality detector keeps disconnecting

The connection to Tuya/wifi air quality sensor seems to disconnect after few hours and restarting the sensor does not put it back online, but restarting the HA does. I’m running HA on RP4 8gt. My internet connection is stable and running on quality Ubiquiti wifi and router without any issues. Anyone else having similar issues or ideas how to fix this?

The sensor:

Home Assistant Core 2022.6.1

Home Assistant Supervisor 2022.05.3

Home Assistant OS 8.0