Jump to content

How to run a program when a scene is activated?


PatPend

Recommended Posts

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? 

Link to comment
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?

Link to comment
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.

Link to comment
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
Link to comment

 

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.

Link to comment

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...