Jump to content

How To: Rotate through scenes via a single KPL button.


Melor

Recommended Posts

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.

 

scenerotation.jpg

 

Click here to download the PDF file to your computer.

 

Paul

www.melor.com

Link to comment

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.

 

scenerotation.jpg

 

Click here to download the PDF file to your computer.

 

Paul

www.melor.com

Link to comment
  • 1 year later...

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

Link to comment

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!

Link to comment
  • 9 months later...

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...