Melor Posted November 7, 2008 Posted November 7, 2008 This tutorial was made to help me learn about the use of flags to control program operation. Even if you don't want to control multiple scenes with a single KPL, this will show how to use flags as variables. Hopefully with the next release of firmware, this will be obsolete. This tutorial is in the form of a single page PDF file. Below is a thumbnailof the PDF. Below the thumbnail is the link to the actual PDF. Click here to download the PDF file to your computer. Paul www.melor.com
Michel Kohanim Posted November 9, 2008 Posted November 9, 2008 Paul, This is amazing. Thanks so very much for your contribution. With kind regards, Michel This tutorial was made to help me learn about the use of flags to control program operation. Even if you don't want to control multiple scenes with a single KPL, this will show how to use flags as variables. Hopefully with the next release of firmware, this will be obsolete. This tutorial is in the form of a single page PDF file. Below is a thumbnailof the PDF. Below the thumbnail is the link to the actual PDF. Click here to download the PDF file to your computer. Paul www.melor.com
Algorithm Posted November 13, 2008 Posted November 13, 2008 Hello Paul, Excellent tutorial on using variables, as well as a multi-sceen button. If you don't mind, I'll place this on our wiki as well.
Melor Posted November 13, 2008 Author Posted November 13, 2008 You may post the information on your Wiki. I don't mind if you post an original copy or link to the copy on my website although I cannot guarantee it will be hosted forever. Paul
Algorithm Posted November 13, 2008 Posted November 13, 2008 Thanks, Rob. It is here, and linked from the Programs section of the How-To Guide.
andrew77 Posted October 6, 2010 Posted October 6, 2010 I'm blown away at this. I'd love to get this working but alas I am but a mere mortal as far as the programming aspect of this goes. If I understand this I can affect a scene four different ways from one kpl button? Such as dim, brighter, brighter still, brighter still, full on? I'm not sure how to even start this. i printed off the PDF and am looking at it now. If I have this right i: Create four scenes (these scenes are programs 00 01 10 11?) a little lost already (are these scenes or programs?) If anyone has the patience to drag my overtaxed brain through this I would forever be in his or her debt. Drew
apostolakisl Posted October 6, 2010 Posted October 6, 2010 Scenes and Programs may effectively do the same things, but are not at all the same things as to how they go about doing it. Scenes are directly programmed into the Insteon switches, kpls, etc. These are the links that can be created manually (no ISY or other software/hardware required). The ISY can be used to automate the process of creating scenes and is a lifesaver for anything more than the simplest of scenes, but ISY is not required. Programs are written into the programming section of ISY. They are totally run by the ISY. The insteon devices can be told to do things by a program, but without ISY, programs don't exist. Programs offer a whole lot of options that scenes can not do. But, they are quite a bit slower than scenes. A scene will usually happen in a small fraction of a second (instantly as far as most applications are concerned), whereas a program that does the same thing may take a couple seconds. If you are trying to create a group of insteon devices to respond to another insteon devices in the same way everytime, use a scene. If you have more complex if/then parameters, you need to use a program. In this example, pushing the kpl button does something different with each press. Programs are therefore required. The "F" programs (flags) do nothing but get set to true or false. If the "F" program is executed from another program as either a run "then" or run "else" it will cause the status of that program to become true or false respectively. Other programs can then reference that true or false status as part of the if section. You can think of it as binary code. Using 2 flag programs is like 2 bit binary. 00, 01, 10, 11. So with those 2 flags you can have other programs respond in 4 different ways. I hope I got all of this correct. I encourage others to critique my explanation!
andrew77 Posted July 26, 2011 Posted July 26, 2011 Shortly after I tried this it didn't work. I contacted Paul and he said there was a bug in it. Has anyone figured out how to make it run? Drew
Recommended Posts