Python example needed for using a timer to turn on a switch
Posted: Wednesday 09 May 2018 20:11
I want to try to create some small events in pyhon instead of using blocky. But I am having trouble finding any example-scripts written in python.
How would I for example:
turn on a switch for 10 minutes when a motion-detector is on
every time motion is detected reset the timer to 10 minutes again.
How would I for example:
turn on a switch for 10 minutes when a motion-detector is on
every time motion is detected reset the timer to 10 minutes again.