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.

How to run a program when a scene is activated?

Featured Replies

Posted

I have a bathroom off my living room.  The lights are controlled by an Insteon dimmer whose on-level changes based on time-of day by a scheduled program.  I also have a scene that dims the lights for watching TV.  When the TV scene is activated (by KPL button or via Home Assistant integration) I want to run a second program to change the bathroom on-levels to another value.  I tried setting a condition for the THEN clause but only devices are allowed, not scenes.  Is there a way to trigger a program based on a scene activation? 

Solved by tmorse305

Go to solution
18 minutes ago, PatPend said:

I have a bathroom off my living room.  The lights are controlled by an Insteon dimmer whose on-level changes based on time-of day by a scheduled program.  I also have a scene that dims the lights for watching TV.  When the TV scene is activated (by KPL button or via Home Assistant integration) I want to run a second program to change the bathroom on-levels to another value.  I tried setting a condition for the THEN clause but only devices are allowed, not scenes.  Is there a way to trigger a program based on a scene activation? 

No there is not. But if you want the bathroom light on based on that scene, why not add it to thse scenes and have it part of that?

Edited by lilyoyo1

1 hour ago, PatPend said:

Is there a way to trigger a program based on a scene activation? 

No.
 

Best option I can think is to identify a device within that scene that would only come on when the scene is on (however you define this) and go off only when the scene is off.  Use that device as a condition in your program.

  • Solution

There is a Node Server called Virtual that allows you to create virtual devices.  You can add it to the scene and use its status to trigger another program.

There is a Node Server called Virtual that allows you to create virtual devices.  You can add it to the scene and use its status to trigger another program.

I’m using that node server for some two step scenes. Works well when you want to know one of a few scenes came on.


Sent from my iPhone using Tapatalk
  • Author

 

On 2/6/2022 at 2:41 PM, lilyoyo1 said:

No there is not. But if you want the bathroom light on based on that scene, why not add it to thse scenes and have it part of that?

What I meant to say by on-level is the brightness at which the light turns on when a person hits the switch, not turn the light on at that brightness.  This way, when we are watching TV or a film and the lights are dimmed, and someone uses the bathroom, the lights come on at a gentle brightness so their retinas don't get blown out.

 

On 2/6/2022 at 4:46 PM, tmorse305 said:

There is a Node Server called Virtual that allows you to create virtual devices.  You can add it to the scene and use its status to trigger another program.

Virtual Node Server worked like a charm, thank you.

Edited by PatPend

You can use the status of the lights.  For example, if your scene has two lights with on-level set to 50%, then your if clause would be.

If

status dimmer 1 is 50%

and 

status dimmer 2 is 50%

Then

 

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.