Problems with rules

Moderators: Voyager, BertB, rtenklooster, Stuntteam, Martinus, grovkillen, TD-er

Post Reply
Message
Author
ewaldharmsen
Normal user
Posts: 36
Joined: 16 Feb 2017, 09:23

Problems with rules

#1 Post by ewaldharmsen » 12 Sep 2018, 20:32

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?

User avatar
grovkillen
Normal user
Posts: 1900
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problems with rules

#2 Post by grovkillen » 12 Sep 2018, 20:37

You might have a bug there. Please report it on the GitHub page.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests