Please add a timer to sensor offline-status in automations!

i have a house full of xiaomi, tuya and tradfri sensors and they all have the same unpleasant behaviour of going offline in home assistant after a few minutes. Problem is, that in automations i have to remember this, because if i set timeouts on “not occupied” longer than that time, the automation won’t trigger anymore because the sensor went offline and will never report the status “not occupied”. I’m struggling with this for a long time now and would really love to see this feature added to Home Assistant, so i can use timeouts longer than a few minutes, especially in the toilets and bathroom. :slight_smile: Wife and kids will be thankfull!