PatPend Posted February 6, 2022 Posted February 6, 2022 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?
lilyoyo1 Posted February 6, 2022 Posted February 6, 2022 (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 February 6, 2022 by lilyoyo1
oberkc Posted February 6, 2022 Posted February 6, 2022 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 tmorse305 Posted February 6, 2022 Solution Posted February 6, 2022 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. 1
sjenkins Posted February 6, 2022 Posted February 6, 2022 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
PatPend Posted February 8, 2022 Author Posted February 8, 2022 (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 February 8, 2022 by PatPend
apostolakisl Posted February 8, 2022 Posted February 8, 2022 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
Recommended Posts