Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Q: Status of One Scene Triggers Another Scene

Featured Replies

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?

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...
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.

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.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.