Jump to content

Sub-Routine

Members
  • Posts

    2226
  • Joined

  • Last visited

Everything posted by Sub-Routine

  1. Ah, you are right. I did not consider a power outage. I think to allow for that you could set the program to Run at Startup and add some lines to the Else. This will turn off the fan until the Temp is evaluated again. If Folder 'Vacation' is False And Program 'Fmly Rm Attic Fan Temp' is True And Program 'Fmly Rm Attic Fan Timer' is False Then Set Scene 'Fmly Rm Attic Fan Scene' On Wait 10 minutes Set Scene 'Fmly Rm Attic Fan Scene' Off Run Program 'Fmly Rm Attic Fan' (If) Else Set Scene 'Fmly Rm Attic Fan Scene' Off Run Program 'Fmly Rm Attic Fan Timer' (Else) Rand
  2. Thanks for this Burak! Rand
  3. Tim. that is a great example! I don't have any suggestions on using Last Run for you, but I do have a couple of comments. Don't try to combine the programs. You can think of each program as a routine that can be globally shared; like a procedure or a sub-routine. Keeping the programs as simple as possible is the best way to use the ISY. Grouping them in Folders is a great way to keep programs organized. Don't be afraid to use Wait actions. As far as I know, these simply calculate a 'Next Run Time' with a pointer to resume the program and are not consuming processor cycles while 'Running'. This should work fine for your 10 minutes On/45 minutes Off procedure. Rand
  4. It does happen to all of us Usually viewing the Log file helps to find these mistakes. Rand
  5. I sent you an email with the coupon Joe. Then use the ISY99i Admin Console menu Help | Purchase Modules. Have Fun! Rand
  6. That is so funny! I am definitely going to have to get a rabbit. Rand
  7. The Weatherbug stations are all independent. Sometimes they do fail and may take some time to be repaired. If it's a school you could call and ask them. As Michel says you should try another station, at least temporarily. Rand
  8. Sub-Routine

    KPL LED Off

    No. The KPL will only send button B On and not a button A Off. You could write that into your program though. In your button B program add a line that says Stop program button A. Rand
  9. By default Programs are all False until they have been evaluated at least once, then they may become True. They will remain True until the conditions change. It doesn't matter if they are currently Running. Programs can be False and Running depending on the Actions in the Else section. Rand
  10. Sub-Routine

    KPL LED Off

    Hi Joe, The And line watches for the KPL button to be turned Off. When the button is turned Off the program will become False and the Else is executed. Rand
  11. Sub-Routine

    KPL LED Off

    Yes, that should work unless Control 'KPL Pool Eq B' is switched which will either restart the program or quit it if the button is switched any way but On. So if you switch KPL Pool Eq B Off the program will end before the Wait is over. If you find that is the case you could watch for the Off. If Control 'KPL Pool Eq B' is switched On And Control 'KPL Pool Eq B' is not switched Off Then Send X10 'K16/On (3)' Wait 1 hour Send X10 'K16/Off (11)' Else Send X10 'K16/Off (11)' Rand
  12. Hi Eug, Unfortunately there is no way to convince the ISY to exchange a relay for a dimmer. As a work-around you could temporarily wire both switches, add the new buttons to the scenes and copy the attributes from the old buttons. Finally select Remove on the old device and rename your new KPL. Creating a topology before you start will help you by displaying the scenes the buttons are included in. Rand
  13. If you windows home server is already using port 443 you will have to assign a different port to the ISY. CWP_-_Configure_Webserver_Ports. Then you will have to append the port # to the IP address and it should be displayed in the ISY About as such. https://xx.xx.xx.xx:port# Rand
  14. Hi someguy, Delete the /0/x from your address. If you use https://x.y.z.1 it should automatically use port 443. The port will not be displayed in the About requester if it is 443. Depending on your router you may only be able to access the ISY from the LAN on the LAN: https://192.168.0.199 will use secure access. Rand
  15. That IS a great example Jim! Would you mind if I copied it into the Wiki? Rand
  16. Sub-Routine

    99i difference

    Yes Tim, you can add the APL to the conditions. You would have to use Status because the device is not a controller. You can add other conditions as well, Schedules, Levels, X10, etc. If you need more complex conditions you can create more programs that start and stop the same All Off program as well. You can use And to require specific buttons/switches/statuses to all be true before the program is stopped. Yes, the rest looks good. Rand
  17. Sub-Routine

    99i difference

    Almost aLf, The ISY cannot check the Status of a Scene, you have to check each button and the APL. Here either button pressed will stop the program. Pressing either button will turn on the other and the APL because they are in a scene. 4) If Control 'Button 1' is switched On Or Control 'Button 2' is switched On Then Stop program 'All Off' Else - No Actions - (To add one, press 'Action') If either button or the APL is off the program will run 5) If Status 'Button 1' is Off Or Status 'Button 2' is Off Or Status 'APL' is Off Then Run program 'All Off' (Then path) Else - No Actions - (To add one, press 'Action') Actually, I don't think you would need the APL anymore. Rand
  18. Sub-Routine

    99i difference

    Correct. Rand
  19. Sub-Routine

    99i difference

    Hi aLf, Only the first program which should be named 'All Off'. All programs should be Enabled. Rand
  20. Sub-Routine

    99i difference

    Hi aLf, How long does it take for the KPL button to turn on? All you should need would be a Wait in this program (set to Run at Startup): If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Wait 1 minute Set Scene 'Buttons OFF' Off Set Scene 'All OFF' Off Repeat Every 1 hour Set Scene 'All OFF' Off Else - No Actions - (To add one, press 'Action') These programs should only be activated when the button is actually pressed, not if it is turned on by another controller, that would be Status. If Control 'Living Room KPL 2' is switched On Then Stop program 'All Off' Else - No Actions - (To add one, press 'Action') If Control 'Living Room KPL 2' is switched Off Then Run program 'All Off' (Then Path) Else - No Actions - (To add one, press 'Action') Rand
  21. Hi Rob, This is indeed odd. I sent you an email and I can remote in when you reply with the link/credentials. What's really odd is some InlineLincs are marked as controllers for the scene, that's probably why you see the Request Failed. It won't work to just delete files from the ISY as the links would still remain in the devices, if they are indeed in the devices. Rand
  22. Hi Dave, Both those programs will be evaluated whenever the X10 command is received. If all the conditions are not true the program summary should display False and the Else section would run if you had any actions there. Rand
  23. Hello ergodic, This is on our list as an enhancement. Thank you oberkc for posting the work-around. Rand
  24. Use Rand@Universal-Devices.com Thanks
  25. Hello someguy, I'm afraid you will need to reboot the ISY or some of your programs will not execute properly. You can use the button on the Configuration panel. Would you be kind enough to email your Log file to me? Use the Email button at the bottom of this post please. Thank you, Rand
×
×
  • Create New...