Problems with rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ewaldharmsen
Normal user
Posts: 66
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
Core team member
Posts: 3621
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]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Problems with rules

#3 Post by TD-er » 13 Oct 2018, 23:10

It should be fixed with this pull request: https://github.com/letscontrolit/ESPEasy/pull/1900
I will merge it as soon as possible.

Post Reply

Who is online

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