Would like my tablet turning off after some time while showing a camera live stream

Following scenario, I would like to have:

  1. Someone rings the doorbell
  2. Tablet screen turns on, shows the live stream of the doorbell camera
  3. After about 10 seconds it turns off

I already managed to let my tablet turning on using

  - action: notify.mobile_app_t20mini_eg
    data:
      message: command_screen_on

However, when the tablet shows the camera image in the HomeAssistant app or my camera app (reolink), the screen wont turn off automatically.

How can I let the screen turn off, although it shows a camera stream? The screen automatically turns off, if there is no app open, but it seems, that the camera stream does not let the tablet turning the screen off automatically.

I tried message: command_screen_off, but this does not work.

Any ideas?

From the docs: use command_screen_off_timeout

I think, this command only sets the timeout to turn off the screen. I already set this to 15 seconds in the android system. However, this timeout is not used, if the camera stream is active. It is a timeout for inactivity.

Good day.
Tell me, did you manage to solve this problem somehow?
I also encountered the problem that the tablet screen does not turn off if there is a live stream from the camera on the screen. In the system settings of the tablet, the tablet shutdown period is set to 15 seconds, but this does not help.

Hello, I solved it by using fully kiosk app.