Page 1 of 1

Problems with rules

Posted: 12 Sep 2018, 20:32
by ewaldharmsen
I have a strange problem with rules on the latest version of esp easy

when I do this:

Code: Select all

On Time#Initialized do    //When the time is set, do   
   event TurnOnLight
endon

on TurnOnLight do
   If %syshour% > 12 and %syshour% < 18
      gpio,12,1
   Endif
endon
The code works.
But when I do this:

Code: Select all

On Time#Initialized do    //When the time is set, do   
    If %syshour% > 12 and %syshour% < 18
      gpio,12,1
   Endif
endon
My question: Why?

Re: Problems with rules

Posted: 12 Sep 2018, 20:37
by grovkillen
You might have a bug there. Please report it on the GitHub page.

Re: Problems with rules

Posted: 13 Oct 2018, 23:10
by TD-er
It should be fixed with this pull request: https://github.com/letscontrolit/ESPEasy/pull/1900
I will merge it as soon as possible.