Jump to content

Lighting schedule


haroldunger

Recommended Posts

I have several different programs that turn on lights at various hours and at different levels.  If I happen to have one of these lights turned on before the program executes, then it will change the light level to that indicated by the program.

I've tried writing several programs to disable the program if the light is already on, but I have been unsuccessful.  I would appreciate help in creating a program script that would avoid this issue.

Thanks.

Link to comment

Can you post one of the programs? Ideally, you'd add an if clause to see if the light is on
.

Here's a sample idea

If

   Time is xx:xx

AND

   Status my light is 0%

Then

  Turn on the light

Unfortunately it would have to be one light at a time using this method

Edited by paulbates
Link to comment

I do something similar for my back deck lights. They are "checked" into correct settings, but if I want them to STAY off, they would come back on as you said. 

So I set up a trigger program that says IF light is on and is turned off, Then Decklightsstayoff =1.

Then in my original program, I add that variable to the IF statement so that it wont run if the variable is 1. 

Some more needed than above to fine tune things and reset the trigger etc, but hopefully this gives you the path to go on. 

If you need more, let me know and I can show some programs. 

Cheers.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.6k
×
×
  • Create New...