Hi i just want to share my experience with this topic
first my topology
2 routers in the bridge one of them is openwrt which had dropped connections to both Tasmota(MQTT) and Esphome(Ha Api) devices, due to “deauthenticated due to inactivity (timer DEAUTH/REMOVE) in openWrt logs”. The powering of the devices was flawless .
So i figured out that this must be a router issue, and at the end the solution was for me is to switch the Cipher to CCMP in openWrt wireless security settings, with this the rekeying is 24H instead of every 10 minutes like with TKIP, with this it is a smaller chance that the IoT devices are missing the process because they’re in the sleep mode.
Thanks for reading , hope that this helps out others as well !
Peace!!!