This was probably the toughest part of the project and is really optional. However, to keep battery usage down and not require hitting the power button each time you want to see the calendar I decided to try and make this work. My approach is based on me already having an alarm motion detector connected to a home automation solution from Mi Casa Verde. You could also do this pretty simply with a raspberry pi and a PIR detector or even the tablets camera (not sure about battery use).

My approach had 3 basic steps:

Configure my VeraLite to respond to the motion detection by sending an HTTP post to AutoRemote Install AutoRemoteLite on the tablet Configure Tasker to wake the tablet

Configuring VeraLite

Again this step may vary for a lot of people but the general idea here is to send an HTTP request when the motion is detected.

With the Vera I did this by setting up an automation triggered by the motion detector being tripped that ran the following LUUP code:

local period = - 60*5 -- Seconds

local lastTrip = 0

if previousMotion ~= nil then lastTrip = previousMotion end

lastTrip = tonumber (lastTrip)

if ((os.time() - lastTrip) >= period) then local status, result = luup.inet.wget("https://autoremotejoaomgcd.appspot.com/sendmessage?key=KEYGOESHERE&message=to", 1) end

previousMotion = os.time()

return true

The URL in the luup.inet.wget function you will get from AutoRemoteLite

Setting up AutoRemoteLite

This very cool app needs to be installed on the tablet. When installed it will give you a URL to go to where you can send messages to the tablet. Send a message with the text "to", you should see the tablet receive the message in a simple little popup. Now copy the URL it generated and paste into whatever code is generated teh request in step #1.

Tasker

Tasker is an amazing app for automating things on your tablet. For this purpose first you need to create an action called "Wake" that wakes up your tablet. To do so you need the SecureSettings plugin. See the screenshot for some more details on setting this up.

Finally, to connect the dots, you create a profile so that when any message is received from AutoRemoteLite (under plugins) the wake action is fired. For turning off the tablet use the regular timeout feature, mine is set to 5 minutes.