Jump to content

How to run a program when a scene is activated?


PatPend
Go to solution Solved by tmorse305,

Recommended Posts

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? 

Posted (edited)
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
Posted
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
Posted

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.

  • Thanks 1
Posted
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
Posted (edited)

 

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
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...