Timeout for sensors when app/phone becomes unavailable

Hello,
I am using Android companion app on my phone and noticed with the integration that if the app or phone becomes suddenly unavailable (battery dies, phone dies, I uninstall the app), all the sensors get stuck on the previous known state.

Is it possible to configure if there is no update recieved from the phone for specified time, the sensors will change to Unavailable state?

Now it is rather problematic, because my girlfriend had to factory reset her phone, she did it while it was charging and since she couldn’t install the HA app again after reset, the is_charging sensor is stuck in on state which messes up some of my automations.

Thank you

4 Likes

I’ve the same question.
Did you find a way to do so?