Jump to content

True--stays True


aLf

Recommended Posts

Posted

I have a simple program which I wanted to recieve an e-mail daily at 0700 showing that ISY was alive, doing well and was where I left it!

 

If

Time is 7:00:00AM

And Folder 'AWAY' is True

 

Then

Send Notification to 'aLf'

 

Else

- No Actions - (To add one, press 'Action')

 

 

This works well, except that it turns the status to "TRUE" and stays true forever (unless I take the AWAY, away). How can I get ISY to go "TRUE" on day 1 at 0700, then go back "FALSE" until the next day at 0700.

 

I recently had a communication problem with ISY not being available for log-in until I came back home to re-boot it. It (appeared) to be running its programs normally, but this simple program would allow me insurance that ISY indeed was OK and at least operating programs in light that id didn't seem to want to answer the network phone call.

 

Thanks,

 

aLf

Posted

How about something like this:

 

If 
Time is from 7:00:00AM 
To 7:01:00AM
And Folder 'AWAY' is True 

Then 
Send Notification to 'aLf' 

Else 
- No Actions - (To add one, press 'Action') 

 

Tim

Posted
This works well, except that it turns the status to "TRUE" and stays true forever (unless I take the AWAY, away). How can I get ISY to go "TRUE" on day 1 at 0700, then go back "FALSE" until the next day at 0700.

 

What is "it"? The program status? The folder status? And what do you believe is the problem with "it" being true? As I see this program, it will send you a message every day at 7:00, so long that the ISY is working. Is this not what you want? Is it not sending these messages?

 

Tim's suggestion would turn the program status to false at 0701, but would have no effect (in my estimation) on when it sends messages or how often.

Posted

oberkc:

 

Your assessments are correct, except.

 

The way I had it, the Program Status as you said goes True, an email is sent. However it only happens on the first day, then the status of the program stays True until I come home and change the status of the Home/Away folders. Because of this I only recieve 1 email (first day) and no other "updtaes" while away.

 

I have tried Tim's way and it does indeed fix the problem. As you stated it becomes False at 0701 and remains that way until next day at 0700.

 

I have read somewhere on these threads that one should always do "from-to's" on programs and I guess this is another example.

 

Thanks Tim & oberkc

 

aLf

Posted
Because of this I only recieve 1 email (first day) and no other "updtaes" while away.

 

Interesting. I have programs that are quite similar. One runs at 11:00pm, based on the condition:

 

Time is 11:00:00PM.

and status override is off.

 

It runs every night, same time. I am having trouble understanding why yours would be any different. Something strange is going on.

Posted

I, too, like to see 'false' across the board for programs that are not 'active'. By doing so, one can quickly ascertain the overall state of the ISY just by looking at the status column in the Program Summary tab.

 

I frequently find myself using the following paradigm to solve problems similar to yours. IMHO, the solution is clunky, but serviceable. Most importantly, it fits a well-defined pattern, so you don't have to go fiddling with custom conditionals for each program that differs.

 

Program 'XXX':

If
Time is 7:00:00AM
And Folder 'AWAY' is True

Then
Send Notification to 'aLf'
Run Program 'XXX' (Else Path)

Else
- No Actions - (To add one, press 'Action')

 

This has the effect of making the program a 'one shot'--when the condition is met, it executes the 'then' action, then immediately sets itself back to 'false'. Just be sure the "Run Program 'XXX' (Else Path)" is *always* the last action in the Then clause; otherwise, anything below it is effectively 'commented out'. :)

 

cheers,

mrp

Posted
I, too, like to see 'false' across the board for programs that are not 'active'.

 

Neat example of a way to make your program false after execution. I like it. However, there are times when one may want to test the last evaluated condition of a program as part of another program's condition. I find that the program list in the admin panel showing active or not is enough for me to know whether a program is executing.

 

Additionally, I don't believe it is necessary for a program status to start out as false in order for it to be evaluated and executed based on the latest evaluation. One of my programs is in a continual true condition, yet it runs every day at the same time. I still find aLf's situation a little puzzling.

 

aLf, under what conditions is your folder "away" true or false? Is it possible that executing this program turns the folder "away" to false? I am curious to see the folder conditions for this folder posted.

Posted

Ober:

 

If I leave the program as it was starting this thread.

 

If

Time is 7:00:00AM

And Folder 'AWAY' is True

 

Then

Send Notification to 'aLf'

 

Else

- No Actions - (To add one, press 'Action')

 

At 0700 on the very first day (after I make the AWAY folder true). The Notification comes but the program will never run again. I then changed it to:

 

If

Time is

 

From 7:00:00AM

To 7:01:00AM

And Folder 'AWAY' is True

 

Then

Send Notification to 'aLf'

 

Else

- No Actions - (To add one, press 'Action')

 

Then the programs runs every day as it should.

 

aLf

Posted

aLF

 

Thanks for the response. I understood that the addition of a from-to condition caused your program to work, and that is great. Still, curiousity (and a desire to better understand how things work) has got me on this one.

 

Because of the several examples of programs in my own setup, I continue to believe it to be unnecessary turn a program false in order for it to run again. I was just hoping you would share your "away" folder conditions for my own edification.

Posted

Ober:

 

The "AWAY" folder is simple. Within it is a simple program that turns every off every hour. It allows (forces) two INL's to not come on in the periphery of my property. The "AWAY" folder is controlled by an Appliance linc which is in a scene with (2) KPL buttons. Upon leaving I turn off either KPL button which in turn extinguishes the APL=Program AWAY (True). I then use the program I stated above. And yes, you are right after the first day of being AWAY at 0700 the program went TRUE and stayed TRUE---never to send an e-mail again.

 

I'm not sure if my methodology is the best, but because of many power outages and the fact that "sometimes" ISY does not come back on the network, it was a simple way to at least hear from ISY once a day. If anyone has a better idea or a more robust program, I'm listening.

 

aLf

Posted

Thanks for the response. It sounds to me that it is potentially your away folder which turns false which causes your program condition to evaulate false. Somehow, adding the from-to condition turns it true again.

 

And yes, you are right after the first day of being AWAY at 0700 the program went TRUE and stayed TRUE---never to send an e-mail again.

 

I still maintain that a program condition of "TRUE" will not keep it from executing. I don't believe a program has to start from a false condition in order for it to be evaluated and executed. When a program is evaluated, and the response to the evaluation, is (as I understand) completely unaffected by the current state (true or false) of a program.

 

Consider the following example:

 

If 
Time is 7:00:00AM  

Then 
Send Notification to 'aLf' 

Else 
- No Actions - (To add one, press 'Action') 

 

I believe that if you created this program, it would send you a message every day, even though it would show as true, continuously. I believe it is your inclusion of the away folder which creates the complication, which is solved by further adding the from-to condition.

 

It sounds like it is working for you, though. Thanks for the response.

Guest
This topic is now closed to further replies.

×
×
  • Create New...