Turn on tablet screen by sensor

I want the tablet screen to turn on by a motion sensor and stay on as long as motion is detected.

I’ve used this code but it turns on the screen only for about 10 seconds and then turns off:

    action:
      - action: notify.mobile_app_<your_device_id_here>
        data:
          message: "command_screen_on"

Then I read about “keep_screen_on” and I’ve tried this code but then nothing happens, the screen stays off:

    action:
      - action: notify.mobile_app_<your_device_id_here>
        data:
          message: "command_screen_on"
          data:
            command: "keep_screen_on"

Also, if this is possible to achieve, is there a way to turn off the screen after no motion is detected?

The Home Assistant companion app is installed on the tablet.

Also, the screen only turns on if it has been recently on, I assume the tablet is in some different power saving mode after a couple minutes.

Spend the $12 on fully kiosk or look at one of the newer free alternatives. Don’t use the companion app on a wall tablet. Just use a web browser like fully

Thank you! I’ve got the fully kiosk app and installed it. I am able to turn on the screen from HA by a sensor but the tablet screen turns off within a few seconds. Any idea what setting is missing?

Okay, I found it, under settings under Device management and turned on the setting Keep screen on.

1 Like