Python example needed for using a timer to turn on a switch

Python and python framework

Moderator: leecollings

Post Reply
burton666
Posts: 85
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python example needed for using a timer to turn on a switch

Post by burton666 »

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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest