Jump to content
C4 Forums | Control4

Help with lighting script


MikeL

Recommended Posts

Need help with a lighting script. I have a button on my SR 250 set up to cycle through three options. If lights are off lights then go to dim. If you hit the button while the lights are on dim they go to full on. If you hit the buttons while the lights are full on it turns off. It doesn’t seem to be working properly. 

I took a photo of the script, but not sure how to post?  If anyone can direct me on how to program this, or if I can somehow DM somebody a photo of the script I would appreciate it.

 

Link to comment
Share on other sites


The commands in the lower portion need to be nested under the conditional, as they are in the first one. Just drag the commands to the question mark, and it will nest them.

As it is right now, it's checking the condition, then there's no programming on the condition, then it's moving on. It's running the lower commands every time (well, until you get to the first "Stop"). 

Link to comment
Share on other sites

In addition to properly nesting your programming for ON and OFF events to match the DIM event, I would suggest:

- change the programming for the ON event to > than 5% rather than using = 10% (it will be more reliable). But better yet, if you move this to the 3rd position as I mention below, drop the IF and simply execute the DIM event if the lights are not OFF and are not >50%.

- move the OFF event to the 2nd position and the ON event to the 3rd position (check if lights are >50% before you check if they are >5%).

- delete the 3 second delay nested in each event and put one 3 second day above the 2nd event (but not nested)

Hope this all makes sense.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.