Can You Pause RL APP when another RL APP is activated?

RL APP #1: Kitchen Mood Lighting
App that turns on MOOD lighting for the cabinets in the kitchen. roughly 25%

RL APP#2: Kitchen Cabinets on w/ OH
APP turns on the cabinet's to 100% when a specific light switch is turned on in the kitchen.

The goal is to allow app #2 pause app #1 when activated. Once deactivated, resume app #1.

Have app 2 turn on a virtual switch, and that switch disables app 1. When app 2 turns the switch off, that re-enables app 1.

1 Like

Yes, it is definitely possible using the switch as the controller. You'll need to make changes to both RL instances to make it work. In the Mood Lighting app, you'll need to do two things:

1.) Under Means to Activate, add the Kitchen Overhead switch turning off to go with the time.
2.) In activate light options, you want to add two limits. The first being the kitchen overhead switch being on. The second being time between Sunset-16 minutes and 10:01pm.

In the Kitchen Cabinets RL, you need to make the following changes:

1.) In activate light options, you want to select "activate even if partially activated"
2.) In turn off light options, you want to limit turning off between times Sunset-16 and 10:01pm.
3.) In switches that determine all lights are off, put all three switches (Cabinets, Island, Kitchen Overhead).

All of these changes mean that your Kitchen Overhead switch becomes a scene controller from Sunset-16 to 10:01pm. If you turn on that switch, it will activate the brighter lights. If you turn off the switch, it will activate the Mood Lights. Outside of this time block, the switch will only activate and turn off brighter lights app.

1 Like

Although this one is more complicated than @bravenel, i will try this one. :slight_smile:
Thank You @JB10
I think i got this all and will test tonight!

@JB10 Tried this method last night and it would work partially, then it would not dim the cabinet lights back down after the overhead light turned off.

For now, i wrote a Rule Machine rule to pause the RL- Room Lighting

I would like to try this again, anything above you see that may have caused it NOT to dim the cabinets back down after Rule #2 was finished?

Check the logs, but I bet it was a race condition. The mood lighting tried to activate before the limitation was lifted. Do you still have the logs to confirm?

I paused the others and rebuilt this.
I add Breakfast light to disable, this is my default disable rules switch.
I also added motion to turn off when motion is not present.

It works but when i turn off overhead light, the cabinets fail to DIM back down to the correct setting.
Kitchen overhead is unchecked in the snapshot but it was for testing. ITs check for ON/OFF



The logs help. It’s saying that the RL Mood is already activated. In the activate options, select “activate even if partially activated.” That should fix this; though, a race condition is still potentially possible.

Ok i got it to work with adding that AND unchecking ACT box on kitchen overhead device.

Seems to work as intended now.

1 Like

It was short lived on working. It would seem to work some times while not working correctly other times.
The cabinet lights would stay on past the time period if they triggered on from the overhead light. Would not happen often but it would happen
I checked the logs and didn’t see anything out of place.
I wrote a RM rule to pause the RL mood lighting when overhead light is turned on. It works better but still have some issues with it hanging up

I’m going to need to go back to the drawing board on this one. What I thought would be simple turned out not to be such.

:frowning:

@JB10
Thank you for the suggestion on the RL app for my mood lighting. I had to pause this process and try to find time to work it out. I'm going to try to work it out tomorrow before the holiday.

While building the rule, as you suggested, i experienced several instances of the mood lights changing based on the rule but then not changing anymore if the overhead light was turned on or off.
What i thought would be a basic rule turned into much more. Do you have any other suggestions to make this easier and work as intended?

@bravenel
I also tried to use a virtual switch that would pause the rule when overhead light turned on and then reenable the rule when it was turned off but that also had some issues.

As of now, I have a RM rule to pause the RL rule but it has edge case problems when the light is on and the modes changes in the house while the light is on. I also also removed the varying light setting for times or mode on the kitchen mood while trying to get this to work.