I just wanted to share a little project I have running now for a few days on my cheap Lenovo A7-10F tablet that allows me to have IP webcam so that I can see in domoticz what is happening in my appartment, and also turns screen on the tablet when it sees motion.
ImperiHome cannot use my front camera on the cheapo Lenovo tab, so I decided to do it myself. You can use "Motion detection" as suggested by Imperihome folks, but then you cannot use the front camera as IP Webcam. Even if imperihome could use the camera on its own, you then cannot use it as IP webcam at the same time.
In short, it is to just to install IP Webcam PRO and add a profile in tasker that will open home page of ImperiHome (via the imperihome API f.eks.) when webcam sees the motion. Imperihome can still go to faded "black screen" after some time of inactivity, thus making the screen blank (as it does when it can use the camera).
I would recommend trying IP webcam lite first, as some people have problems with the server crashing after a few hours. This happened to me but I am using tasker to monitor the webcam server and just start it again if I see that it has failed.
If someone wants more detailed description, I can describe it more as needed, but with some finetuning it is not that difficult (you just need few days of patient testing

I also have a few other tasker profiles, for exaple restart the device each day (turning off volume before restart, and restore after), I use it for voice commands (using AutoVoice) to check the traffic in other applications while I am getting ready to go out, another profile that after 5mins of inactivity automatically goes back to ImperiHome.