Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIR help
#3
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.
Reply


Messages In This Thread
PIR help - by duckredbeard - Jun-12-2021, 11:15 AM
RE: PIR help - by duckredbeard - Jun-12-2021, 01:19 PM
RE: PIR help - by duckredbeard - Jun-12-2021, 06:28 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020