Jump to content

Q: Status of One Scene Triggers Another Scene


dkaleita

Recommended Posts

Posted

I'm trying to write a program to illuminate a button on a KeypadLinc if ANY of the lights in my basement are on. [in other words, the KeypadLinc button would go dark if and only if ALL of the lights in my basement have been switched off]. I want to be able to tell at a glance whether I've left some lights on in my basement, which is covered by four scenes, with each scene containing 3 or 4 insteon SwitchLincs.

 

I've got it mostly working, but it's a horrifically complicated thing involving a variable to keep count of whenever any lamp is switched on or off, several flags, and several programs, each containing a very long string of OR statements (one OR for each light switch).

 

Can anyone think of a simpler way to do this? For example, is there a simple way to directly detect whether or not EVERY member of a scene has a status of OFF?

Posted

dkaleita

 

There is no Scene status. Although each device must be included in the If there is only one Program needed.

 

If

Status 'ICON Dimmer 1' is Off

And Status 'ICON Relay 1' is Off

And Status 'KeypadLinc Relay' is Off

And Status 'SwitchLinc Dimmer' is Off

 

Then

Set Scene 'KPLButton' Off

 

Else

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

 

Lee

  • 1 month later...
Posted
dkaleita

 

There is no Scene status. Although each device must be included in the If there is only one Program needed.

 

If

Status 'ICON Dimmer 1' is Off

And Status 'ICON Relay 1' is Off

And Status 'KeypadLinc Relay' is Off

And Status 'SwitchLinc Dimmer' is Off

 

Then

Set Scene 'KPLButton' Off

 

Else

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

 

Lee

 

I don't know how to paste code from the ISY but I did a program like this this. I set the 'else' to set the scene I created 'on' but it doesn't seem to work. I also set the button to toggle mode 'off' only. Still doesn't work.

Posted
I don't know how to paste code from the ISY but I did a program like this this. I set the 'else' to set the scene I created 'on' but it doesn't seem to work. I also set the button to toggle mode 'off' only. Still doesn't work.

 

Based on your description, I expect your program to work and can either conclude that I don't understand your program correctly, or that there is something else going on unrelated to program logic.

 

I have a program much like LeeGs and yours. I have a secondary keypad button, set to non-toggle off. Because one cannot directly control secondary keypad buttons from a program, I created a scene, with only the secondary keypad in it. I then created a program such as:

 

if
status "light 1" is not off  <<or status "light 2" is not off 
or status "light 3" is on <<then
set "scene with secondary KPL button" on
else
set "scene with secondary KPL button " off

 

It works great for me.

Posted

To copy a Program right click on the Program Name and select Copy to Clipboard. A Paste will then put the Program into the forum post in progress.

 

I agree with oberkc that the posted program, which is apparently not yours, will work.

 

Suggest posting your Program for analysis.

 

Look at the Current State column for the devices involved. Is the On/Off state what you expect. If not then there is a communications problem or link record problem rather the a problem with the Program itself

.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...