Conflicting Automations - How do I fix them?

This should serve as an official introduction as well as my first post. So… HI! :slight_smile:

I have been attempting to automate my theater room. I installed two osram lightify cans into the ceiling. The wiring, is setup as always on. (in that it shares power with my projector, which I don’t want switch controlled).

So, as a fix, I purchased a WEMO wall switch to act as sort of a dummy switch. And it works GREAT! It took a few purchases before I figured out that local push is the only way to go.

So, to control this, I created 2 automations. Theater_Virtual_Switch on and off.
I have also created a few scenes, theater_lights_off, theater_lights_dim and theater_lights_high.
They do as it sounds.

I tied the “switch_on” automation to the “theater_lights_high” scene.

When I started launching scenes via the HA dashboard, I realized that it wasn’t switching the wall switch. So I added the switch to the scenes to represent on or off. Mostly so I didn’t have to tap the switch twice.

The problem now comes if I run a scene from the HA dashboard. If the lights are off, and I hit the “theater_lights_dim” scene, it also switches the switch on, which in turn runs the switch on automation, resulting in the “theater_lights_bright” scene executing (right after?).

Is this a logical problem on my part? Am I missing a setting that would help? Like a delay or something? Is there a condition I could put into place?

Essentially, how do I flip the wall switch on, without executing an automation, while executing a scene in HA dashboard?

TIA - MIKE

Not sure I follow all of the intricacies involved, but look at adding conditions to your automations. An automation will stop once a condition test false. You can check to see how long that switch has been on or off with a “for” attribute in your state condition:

1 Like

Thanks!

yup! Conditions did it, I added the “for” attribute to the automation to stop the light “on” from being triggered when it was on.

:slight_smile: - Quick and simple.