Simple rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
nobody@all
Normal user
Posts: 30
Joined: 09 Apr 2017, 23:27

Simple rules

#1 Post by nobody@all » 09 Apr 2017, 23:38

Hello!
Can i please to write for me simple rules to espeasy that can turn on relay connected to GPIO2 every day at 10am and 10pm for 10s.
Best regards

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: Simple rules

#2 Post by maluko » 10 Apr 2017, 10:00

you have to enable the NTP and the espeasy need to have internet.

Code: Select all

On Clock#Time=All,10:00 do // every day at 10:00 hours do ...
  gpio,2,0
  timerset,1,10
endon

On Clock#Time=All,22:00 do // every day at 22:00 hours do ...
  gpio,2,0
  timerset,1,10
endon

On Rules#Timer=1 do  //When Timer1 expires, do
  gpio,2,1
endon

nobody@all
Normal user
Posts: 30
Joined: 09 Apr 2017, 23:27

Re: Simple rules

#3 Post by nobody@all » 10 Apr 2017, 11:27

@maluko thank You very much:)

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests