Jump to content

Time in the IF statement


Bernman

Recommended Posts

I want to turn off a controller at multiple times during one day, currently only twice, but potentially more. What is the best way to program this?

 

Here is my current program:

 

If
       Time is 12:00:00AM
    Or Time is Sunrise +  1 hour 
Then
       Set Scene 'Porch Light 3-Way' Off
Else
  - No Actions - (To add one, press 'Action')

 

I'm actually not sure if this code works. Seems a bit clunky. I was thinking I could have separate programs for each OFF check, but that is even MORE clunky.

 

Any help is appreciated :-)

 

Thx

Bernman

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...