Turn switch on and off repeatedly

Post Reply
tapaz
Posts: 4
Joined: Thursday 16 November 2017 10:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Turn switch on and off repeatedly

Post by tapaz » Thursday 16 November 2017 10:50

Hi,

I have a Z-wave wall plug that I would like to turn on for 15 minutes, then off for 15 and so on. This would be repeated action. There are times in switch that could do this but I would have to manually add every entry there for a whole day, right? I also tried this from blockly (if plug=off, then turn on for 15 minutes) but it didn't work that way.

Any ideas?

Clemen
Posts: 123
Joined: Saturday 05 December 2015 16:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Europe
Contact:

Re: Turn switch on and off repeatedly

Post by Clemen » Thursday 16 November 2017 11:23

dzvents using last update to check if the switch have been on for more than 14minutes run the script every minute.

tapaz
Posts: 4
Joined: Thursday 16 November 2017 10:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Turn switch on and off repeatedly

Post by tapaz » Thursday 16 November 2017 22:56

Thanks Clemen! That worked. Now I am trying to figure why it works that way :D When I tell the script to turn on switch for 15 minutes that's logical, but is the default "reverse" action to turn it off because I dont have to define that. Gotta read more about dzvents, it seems very handy.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest