I have a Samsung tablet that I have in the pantry.
I use a command to turn the screen on when the motion detector detects motion
It works as it should. The issue I have is that the HA app keeps closing. I pin the app and have the dashboard set but every now and then I go in the pantry and the screen comes on but it’s the Samsung home screen.
I am surprised you did not have this happen in the past. It is the nature of the beast with Android. The OS closes apps as it feels it needs to based on memory usage.
I have three tablets running and it happens on all of them.
I found that most of the time when it happens the state of the app_importance sensor goes from foreground to foreground_service.
So, I use an automation based on that to send command_webview that opens HA again. I also do this on a reboot of the tablets so I don’t have to wait around until it finishes booting and start HA.
If you turn the screen brightness down to 1 instead of turning it off, then it may not close the app. I see this behavior on two always-on displays I have, but they are old Samsung tablets.