is it possible to configure more then one event in rules?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jdemas
New user
Posts: 5
Joined: 31 Aug 2016, 10:36

is it possible to configure more then one event in rules?

#1 Post by jdemas » 31 Aug 2016, 15:25

Hi,

it's possible to trigger one event once a day automaticly.
i want to trigger the same event more then once a day in the rules
(stand alone)
i tried but i don't get it done

On Clock#Time=All,08:00 do
test
On Clock#Time=All,12:00 do
test

on test do
Pulse,13,0,900
Pulse,13,1,2400
Pulse,13,0,900
Pulse,13,1,2400

what's missing or isn't it possible

Regards
Jeffrey

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: is it possible to configure more then one event in rules?

#2 Post by Drum » 31 Aug 2016, 22:28

Check the tutorial on rules, http://www.esp8266.nu/index.php/Tutorial_Rules
I think you need an "endon" for every "on"

Other than that I don't see any reason it shouldn't work, but I am not an expert on this...

jdemas
New user
Posts: 5
Joined: 31 Aug 2016, 10:36

Re: is it possible to configure more then one event in rules?

#3 Post by jdemas » 02 Sep 2016, 17:23

Hi,

Yes i tried that
On Clock#Time=All,08:00 do
test
endon
On Clock#Time=All,12:00 do
test
endon
on test do
Pulse,13,0,900
Pulse,13,1,2400
Pulse,13,0,900
Pulse,13,1,2400
endon

when i set even one endon in the list it will not work
without endon's it runs only the first time

thanks

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: is it possible to configure more then one event in rules?

#4 Post by costo » 02 Sep 2016, 22:47

Did you try something like this ?

On Clock#Time=All,08:00 do
Pulse,13,0,900
Pulse,13,1,2400
Pulse,13,0,900
Pulse,13,1,2400
endon

On Clock#Time=All,12:00 do
Pulse,13,0,900
Pulse,13,1,2400
Pulse,13,0,900
Pulse,13,1,2400
endon

Martinus

Re: is it possible to configure more then one event in rules?

#5 Post by Martinus » 03 Sep 2016, 10:17

Running "test" as a command will not work. You have to create an event like this:

Code: Select all

On Clock#Time=All,08:00 do 
  event test
endon

On Clock#Time=All,12:00 do 
  event test
endon

on test do
  Pulse,13,0,900
  Pulse,13,1,2400 
  Pulse,13,0,900
  Pulse,13,1,2400
endon

jdemas
New user
Posts: 5
Joined: 31 Aug 2016, 10:36

Re: is it possible to configure more then one event in rules?

#6 Post by jdemas » 04 Sep 2016, 10:27

Thanks both solutions work

martinus your solution saves a lot of karakters

thanks a lot

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 53 guests