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.

Running a program on scene activation

Featured Replies

Posted

I have a number of scenes that are controlled by multiple (about eight) KPLs. Sometimes I need a program to be activated along with the scene and the technique I have used so far is that I have a big "OR" for all of the control events. Is there an easier way?

This is how I would do it. I understand that there is no such thing as "scene status", so one must look for triggers from the individual scene controllers. No better way is coming to mind.

If you do a program "Status" condition on a KPL controller or responder button in a scene, the program will trigger when the scene triggers the status change on that button. For example:

 

If Status 'KPLTest A' is switched on
Then $Var = 100
Else $Var = 0

Presuming "KPLTest A" is linked to the scene, the variable $Var changes between 0 and 100 as the scene is switched off and on.

 

This is true regardless of how the scene is initiated since any way it happens will change the button status -- assuming it is a controller or responder in the scene.

 

Note this doesn't work if you use a "Control" test instead of "Status".

 

And of course if you remove the program-triggering button from the scene you still need to update your code to sync with that change.

  • Author

Thanks for the suggestion, but actually I guess I can also skip the variable and just use button status as a proxy for the scene. I just tried that and it seems to work just fine.

Sure. The variable was just to illustrate the general idea. Once you trigger off the status you should be able to have the program do whatever you want.

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.