I have a smart calendar powered by a raspberry pi. On top of the calendar is a Xiaomi motion sensor that controls the lights in that room. Is there anyone who can point me in the right direction of how to have the pi turn the screen of the calendar off after say 5 minutes of no motion detected? The pi in question is not running home assistant.
Unfortunately my python knowledge is nil. I was considering putting in a sonoff / tasmota switch but thought there may be a neater way. It is likely to be out of my (very limited) area of knowledge though!