• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switch device multiple times
#1
Hi,

is it possible to switch a device to on (and off) multiple times?
I tried the following:

Code:
IF (genericswitch.state IS on) THEN switch DEVICE lamp TO on FOR 30 SECOND AND switch DEVICE lamp TO on FOR 30 MINUTE AFTER 45 SECOND"

This doesn't work. The lamp is switched on after 45 seconds...but the first part to switch it on for 30 seconds is ignored. I also tried this with two rules: same effect.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Solved] On and Off for one device in one rule Oliver 3 435 10-28-2019, 06:55 PM
Last Post: Oliver
  skipping overridden action switch do1eh 2 680 01-19-2019, 05:25 PM
Last Post: do1eh
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 1,070 07-31-2018, 06:25 AM
Last Post: curlymo
  Rule with&without device. One working not the other... Tamadite 9 1,376 07-24-2018, 08:55 AM
Last Post: curlymo
  Send on command when switch is already "on" joshovki 1 624 01-28-2018, 11:27 PM
Last Post: curlymo
  Always trigger event on any device state Phil 8 2,404 03-22-2017, 07:30 PM
Last Post: Phil
  Problem with a Rule for a One Button Switch martin-dj 1 1,340 03-06-2017, 12:01 PM
Last Post: pilino1234
  duration switch protocol creamers 6 2,512 01-10-2017, 10:04 PM
Last Post: wo_rasp
  [Solved ]Turn off device at random time manmetdehamer 4 2,198 07-27-2016, 03:35 PM
Last Post: manmetdehamer
  ERROR: rule #21 invalid: variable "label" of device "WindMax" cannot be used in even koos147 2 1,912 04-02-2016, 10:24 PM
Last Post: koos147

Forum Jump:


Browsing: 1 Guest(s)