robandcathy1 Posted November 19, 2020 Posted November 19, 2020 so I paid for support and have this insane program written for me, but no clue how to implement it, do I use and, or? = or < ? if someone could look at this program that isy higher up wrote and break it down a little clear so I know exactly what goes where, its kinda of vague, as in step 1 do I create it in in action, conditions etc, do I use = or < should it be in, if then or else. Im guessing that isy development team or braddford thought I had more knowledge and wrote it in advanced terms or rather in simple as if I would know where to fill in the blanks. Another example is program 1 does he mean if control of switch is turned on, or does switch 1 is control switched on a different programming method? I can write simple programs, Like if its 10pm turn this switch off, or turn this switch on at 6am. but with the endless possibilities with isy who knows what I could miss or mess up, I dont try to be a power user. You need 3 programs to accomplish what your goal is, you also need a state variable. Step 1: Create a State Variable named “Manual override” and set its value to 0 Step 2: Program 1: If Switch 1 is (Control) switched on And Switch 1 is (Control) not switched off Or Switch 2 is (Control) switched on And Switch 2 is (Control) not switched off Or Switch 3 is (Control) switched on And Switch 3 (Control) not switched off Then Set “manual override” variable = 1 Else Set “manual override” variable = 0 Step 3: Program 2: If Variable “manual override” = 1 Then Wait 60 min Device -- set light to off Set manual override variable = 0 Step 4: Program 3: If Device motion is (control) switched on And Variable “manual override” = 0 Then Device -- set light to on Wait 5 minutes Device -- set light to off This should create a logic that uses the 5 min timer only when the switches have not been touched, if they switch on, the logic uses 1 hour, and if they are switched off the 5 min timer on motion will be used. Any help to put this in simpleton terms would be great otherwise I have to wait for Bradford from tech support to return. Thanks in advance
lilyoyo1 Posted November 19, 2020 Posted November 19, 2020 2 minutes ago, robandcathy1 said: so I paid for support and have this insane program written for me, but no clue how to implement it, do I use and, or? = or < ? if someone could look at this program that isy higher up wrote and break it down a little clear so I know exactly what goes where, its kinda of vague, as in step 1 do I create it in in action, conditions etc, do I use = or < should it be in, if then or else. Im guessing that isy development team or braddford thought I had more knowledge and wrote it in advanced terms or rather in simple as if I would know where to fill in the blanks. Another example is program 1 does he mean if control of switch is turned on, or does switch 1 is control switched on a different programming method? I can write simple programs, Like if its 10pm turn this switch off, or turn this switch on at 6am. but with the endless possibilities with isy who knows what I could miss or mess up, I dont try to be a power user. You need 3 programs to accomplish what your goal is, you also need a state variable. Step 1: Create a State Variable named “Manual override” and set its value to 0 Step 2: Program 1: If Switch 1 is (Control) switched on And Switch 1 is (Control) not switched off Or Switch 2 is (Control) switched on And Switch 2 is (Control) not switched off Or Switch 3 is (Control) switched on And Switch 3 (Control) not switched off Then Set “manual override” variable = 1 Else Set “manual override” variable = 0 Step 3: Program 2: If Variable “manual override” = 1 Then Wait 60 min Device -- set light to off Set manual override variable = 0 Step 4: Program 3: If Device motion is (control) switched on And Variable “manual override” = 0 Then Device -- set light to on Wait 5 minutes Device -- set light to off This should create a logic that uses the 5 min timer only when the switches have not been touched, if they switch on, the logic uses 1 hour, and if they are switched off the 5 min timer on motion will be used. Any help to put this in simpleton terms would be great otherwise I have to wait for Bradford from tech support to return. Thanks in advance I would wait for him to return before messing with the work he's done. We all have our styles of setting up the isy. Someone doing something else can throw off corresponding programs breaking stuff or causing loops. By going on top of his work you could be creating a bigger headache for him and yourself.
robandcathy1 Posted November 19, 2020 Author Posted November 19, 2020 (edited) Not trying to go on top of his work rather understand it. How to input it in admin console, and its isy developments team who did the work Edited November 19, 2020 by robandcathy1 lack of info
larryllix Posted November 20, 2020 Posted November 20, 2020 AS a duplicate of the other thread started. Follow the instructions and enter the code into your admin console, save it and then copy and paste it here so people can see it. The pseudo code you posted is not runnable not being the way the code will look exactly. It appears to have parenthesis missing and some syntax errors.
robandcathy1 Posted November 20, 2020 Author Posted November 20, 2020 this is exactly how isy tech support sent me instructions to write this, so Im asking if anyone can fill in the blanks. There's just the basics but not full picture. Or is there a direct email address to isy development to clarify what they wanted me to write? 22 hours ago, larryllix said: AS a duplicate of the other thread started. Follow the instructions and enter the code into your admin console, save it and then copy and paste it here so people can see it. The pseudo code you posted is not runnable not being the way the code will look exactly. It appears to have parenthesis missing and some syntax errors.
robandcathy1 Posted November 20, 2020 Author Posted November 20, 2020 (edited) as this first program was written for me as for program does not say weather to use (and,or) also does not say (is is not, etc) this is the clarification im asking the community, what values do I put in to make the program work that im missing. Should be this used under if, then, else. So many blanks to this program, and upper level users if you can contact development on my behalf to clarify intent of this program and just email me would be great also. Edited November 20, 2020 by robandcathy1
TJF1960 Posted November 21, 2020 Posted November 21, 2020 (edited) It seems to me the first program should be as such. I don't have time to do this in the admin console but I hope this helps to make more sense. Go to the Variable tabs section of the admin console and select the State tab. Click add at the bottom of the page and name the new state variable "manual override" and then press save. Go to the program tab and create a new program and format the switches that you want to override the ms and format them similar to below. If Or ( Switch 1 is (Control) switched on And Switch 1 is (Control) not switched off ) Or ( Switch 2 is (Control) switched on And Switch 2 is (Control) not switched off ) Or ( Switch 3 is (Control) switched on And Switch 3 (Control) not switched off ) Then manual override = 1 Else manual override = 0 Edited November 21, 2020 by TJF1960
oberkc Posted November 21, 2020 Posted November 21, 2020 From a pure logic statement, I don't believe adding the parentheses changes the logical outcome.
TJF1960 Posted November 21, 2020 Posted November 21, 2020 (edited) Without the "or" parentheses would not Switch 1 and switch 2 and switch 3 have to be pressed at the same time for the program to run true? Edited November 21, 2020 by TJF1960
oberkc Posted November 21, 2020 Posted November 21, 2020 No. "AND" takes a natural priority over "OR". The parentheses simply duplicate the natural hierchy of Boolean logic. If, for example, switch1 is toggled on, the individual condition "switch1 is controlled on and switch1 is not controlled off" would be true, and the entire condition would also be true.
gzahar Posted November 22, 2020 Posted November 22, 2020 On 11/20/2020 at 5:05 PM, robandcathy1 said: as this first program was written for me as for program does not say weather to use (and,or) also does not say (is is not, etc) this is the clarification im asking the community, what values do I put in to make the program work that im missing. Should be this used under if, then, else. If you are trying to accomplish the first step (Create a State Variable named “Manual override” and set its value to 0), that is done in the variables tab (not a program). Also, the program calls for a state variable (make sure to use the state variable section when creating). Your sample looks like you're using an integer. Once you create the variable (using Add then Save), you can double click on the name to edit the name. The other steps above indicate where to locate each program line (if, then, else). The first line of the "if" section will not matter if you use 'and' or 'or', unless you later rearrange the program lines. The remaining lines in the section will use the 'and' or 'or' shown preceding the lines above. Use 'is' for "=". ('is not' for not =).
Recommended Posts