haroldunger Posted 15 hours ago Share Posted 15 hours ago 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. Quote Link to comment
paulbates Posted 15 hours ago Share Posted 15 hours ago (edited) 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 15 hours ago by paulbates Quote Link to comment
haroldunger Posted 15 hours ago Author Share Posted 15 hours ago If I turn off the light during this period, the program will turn it on again. I could try fade up, but there doesn't seem to be a max level and time frame for this option - I don't want 100%. Thanks. Sample Lighting program.docx Quote Link to comment
dbwarner5 Posted 7 hours ago Share Posted 7 hours ago 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. Quote Link to comment
haroldunger Posted 1 hour ago Author Share Posted 1 hour ago Ty! I’ll give it a go and will report back. BTW, ur roadmap is very impressive. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.