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.