Jun-12-2021, 06:28 PM
Now that I am home and testing, here is what I have. The tablet is set to timeout at 2 minutes (120 seconds). I am running the code that I posted in my second post. The tablet gets the message and wakes & beeps when there is motion. Waking is working.
And then I had a "EUREKA!" moment. I was overcomplicating things.
Set tablet timeout to 30 minutes.
Change line 17 to be a requests.post message to the tablet to "sleepee" similar to line 12 but a different keyword
Have Tasker in the tablet respond to the message by turning the display off.
Now, line 14 keeps the wake message from repeating constantly. Kind of like a "cooldown" function. When motion stops, the tablet gets the sleep message. Bingo.
And then I had a "EUREKA!" moment. I was overcomplicating things.
Set tablet timeout to 30 minutes.
Change line 17 to be a requests.post message to the tablet to "sleepee" similar to line 12 but a different keyword
Have Tasker in the tablet respond to the message by turning the display off.
Now, line 14 keeps the wake message from repeating constantly. Kind of like a "cooldown" function. When motion stops, the tablet gets the sleep message. Bingo.