C Martin Posted October 4, 2007 Posted October 4, 2007 Here is my program sample: If Receive X10 House Code "B" Unit Code "1" Command "3 -On" And Program 'Good Nite' is False Then Set 'All On' On Wait 10 minutes Run program 'Good Nite' Finally GoodNite is a Scene but GoodNite is actually been turned on. So, can we truly track the status of a scene if it has been activated by Program content for GoodNite-0007: If Time is 10:58 PM Then Set 'GoodNite' On Finally So, I don't get the proper results if I look for a True Condition but I fi make the condition False, it works. I made sure that Good Nite was set to "ON" The idea is to only allow the temp On to work after the GoodNite Scene is active. Quote
Chris Jahn Posted October 4, 2007 Posted October 4, 2007 There are still a few glitches in the true/false status of a program, but this has been fixed for the next code drop. You can track the status of a scene using a program, but only if that program is the only thing that can turn that scene on or off. I'm not exactly sure what you are trying to accomplish, but hopefully these examples will help (unfortunately you'll have to wait for the next drop to use them). In our next drop, 'Finally' is replaced by 'Else' (by the way, if you right-click on the program in the program tree, you can 'Copy to Clipboard' and paste it into your post) Program 'GoodNitePgm' If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Set Scene 'GoodNite' On Else Set Scene 'GoodNite' Off This program will turn scene 'GoodNite' On if B.1.3-On is received and the scene is not already on. If X10 House 'B' Unit '1' Command '3 - On' is Received And Program 'GoodNitePgm' is False Then Run program 'GoodNitePgm' Else - No Actions - (To add one, press 'Action') This program will turn scene 'GoodNite' Off if B.1.11-Off is received or at 11:00PM, and the scene is not already off. If ( X10 House 'B' Unit '1' Command '11 - Off' is Received Or Time is 11:00:00PM ) And Program 'GoodNitePgm' is True Then Run program 'GoodNitePgm' (Else Path) Else - No Actions - (To add one, press 'Action') Quote
C Martin Posted October 4, 2007 Author Posted October 4, 2007 the idea is to be able to turn the lights up to a full "ON" or some other state for a set amount of time but only if the "Good Nite" scene has been turned on, and then return the lights back to the "Good Nite" scene. Quote
C Martin Posted October 4, 2007 Author Posted October 4, 2007 So that I understan a little more...... If a Program has run, the status of that program is ON and is a toggle status that should otherwise be turned Off ? And, the status of a Scene can only be checkedby the program that calls it? Is the status of a Scene also a toggle? Quote
C Martin Posted October 4, 2007 Author Posted October 4, 2007 I have treid the Right Click in the porgram tree and I don't get any option to copy, paste or any context menu at all. Quote
Chris Jahn Posted October 4, 2007 Posted October 4, 2007 If a program is explicitly run (using 'Run') then its status becomes True, if the Else is explicitly run (using 'Run Else') then its status becomes False. The True/False status of a program also changes when an event occurs or a time arrives that makes one or more of the 'If' conditions true or false (which subsequently causes the 'Then' or 'Else' to run). Scenes do not have status. I thought the way you used a program to essentially assign it a status was a great idea! Basically, you have scene that only the program will call, and you test the true/false of the program to determine if the scene is on or off. So in these sense, the status of a scene is a toggle. So that I understan a little more...... If a Program has run, the status of that program is ON and is a toggle status that should otherwise be turned Off ? And, the status of a Scene can only be checkedby the program that calls it? Is the status of a Scene also a toggle? Quote
Chris Jahn Posted October 4, 2007 Posted October 4, 2007 The right-click menu was added to the last beta drop. How many buttons do you see in the lower left corner (with the 'Save Program','Undo Changes' etc. buttons). If you see 6 buttons then you do not have the newest beta drop. I have treid the Right Click in the porgram tree and I don't get any option to copy, paste or any context menu at all. Quote
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.