[NEW APP] Room Lighting

Fixed in last release earlier today.

4 Likes

Does anyone know how I manage lights when mode changes.

I have modes setup and my 'sunset' mode has all lights come on (1-8)
sleeping mode where half the lights come on (5&6)
Sunrise mode where no lights come on

When the lights are on and mode changes from sunset to sleeping, the lights 1,2,3,4,7 and 8 stay on and have to be turned off manually as they are no longer "active" as part of the mode

Have you configured those lights with “off” for sleeping mode (and “act” removed)?

If you cannot get it to work, while not being ideal, I’d suggest set up two RL apps - One app for lights 5 and 6 and the other rule for the others

This is what you need. The new room app is not the old motion app it more the scene app. So you are calling scenes or "presets" so you need to think really what you want it to look like in each mode. Rather than what you want to happen to some extent.

So if you in mode A want light 1 and 2 on you need to do a ON to 1 and 2 (plus's levels) but also light 3, 4 and 5 you need to turn off.

Personally and professionally I don't like the "scenes" direction, I can do it and understand it but it confuses customers and can be very confusing to anything more than basic control. It's very time consuming to do anything special, where as groups are much easier.

Example
You have a corridor with lights and PIRs along it.
You want lights in a turn on infront of you as the detector's are triggered either direction you walk in. This requires really complicated scenes and loads of them where as groups are really easy to do as each detector is just assigned to its local group plus the next either side of it.

1 Like
  1. Make sure the "activation" setting for the lights is set to "off" for the mode.
  2. Be sure to enable the "adjust lights on mode changes" option.

Is there potential to make this timer optionally irrespective of the activation event type? So regardless if it's motion, sunset, contact open, the timer can be used as a means to turn off after 'first' or 'last' [re]activation? A companion option could be/may have to be "honor original activation type" (for the 'first' case), so if it was originally a contact that activated, the 'from first/last event' would only pay attention to a contact? Seems this would eliminate the need to have multiple types of timers. I have a reasonable use case, which I'll detail below, that I just can't seem to find the combo of settings that work. Thanks in advance.

I sort of detailed this above, but I'll try to consolidate my thoughts. I have several contacts for my garage entrance: two people doors, two vehicle doors. I also have a motion.

Primary activation should be contacts - as not all contacts/entrances into the garage will trigger motion (wife opens the door to peek out to see if I'm out there, for example).

I often keep the side door or garage doors open when working in the garage. Thus I can't use the 'contact closes and remains'.

The other issue with this is the contact will turn on lights, but regardless if there's motion or not, the lights will turn off due to contacts being closed. I have to wait for motion to go inactive, then move, then lights will come back on.

Basically I'm looking for a way for lights to come on with contact open or motion, and turn of 10 min from last motion, or 10min from opening, in the case no motion was ever detected.


As I understand it, “elapsed time” is what you want as means to turn off. It will use whatever you have configured as “means to turn on” and start the elapsed time timer from either the first activation event, or the last depending on how you configure the timer. It doesn’t matter if it is motion or contact or switch or something else, it will work with any of them.

I use a combination of timers in some of my RL apps. If there is a motion sensor in the room I will use the “motion stays inactive” as one timer, but also adding the “elapsed time” to the mix for those instances where, like you mentioned, only a contact or a switch is activated but no one went in far enough to trigger the motion sensor. I set the elapsed time to a longer time than the motion sensor would use so that it is the normal motion sensor timeouts that would turn off the lights if motion was triggered.

1 Like

At first blush this is a bit complex, and not doable at present. However, I think there is a simple fix.

What's missing is a Condition to Limit Turning Off if there is a pending Stays Turn Off, such as waiting after motion as gone inactive. This would work for your case as follows:

Means to Turn On: Contact Open or Motion Active
Means to Turn Off: Motion Stays Inactive for 10 Minutes, or 10 Minutes Elapsed from first Activation Event
Conditions to Limit Turning Off: Motion Active, or Pending Stays for Off.

The possible cases:
Contact opens, and someone enters garage: Lights turn on, and motion goes active; lights will turn off 10 minutes after motions stops, but not 10 minutes after contact opened.

Contact opens, but no one enters garage: Lights turn on, and turn off 10 minutes later.

Door was left open, and the lights went out, then someone enters garage: Lights turn on, and turn off 10 minutes after motion stops.

I think that covers it. I think I can add the extra Condition to Limit Off for the next release.

3 Likes

This will be the third of fourth time I have started writing up what I thought was an error in room lighting and each time as I wrote it out and thought about it it got me to go back and look at options and realize why things were not working. I think this one might be a problem.

I can't seem to find a option that turns the rule off. Once activated It seems to stay active and it will not work again until I go in and manually turn it off. In the screen shot below it is still active even though two switches, Shop Alarm and the Shop lights are off. I added those to try and make sure that something would de-activate the rule. I have another rule, that I activate via Siri and a cloud endpoint that closes the shop. This turns off the lights and turns on the alarm switch. So I figured that should take care of a case where I don't activate the motion sensors. I thought maybe that was why it wasn't setting the rule not active and the lights would not turn back on. I am getting some errors, however, see below. I am on firmware 2.3.3.134, which I believe is the latest.

The room lighting rule:

The errors:

A couple of things:

Do not use the controlled devices (e.g. Shop Floor Lights) as either a Means to Turn On or a Means to Turn Off. This is circular logic and certain to fail. On my to-do list is to prevent that selection.

If you have lights that are turned off outside of RL, and that leave RL thinking its Active when it's not, there are two things you can do: One is to use the Turning Off Lights Option of "Switches that Determine All Lights Are Off":

Or you can use the Turning Off Lights Option of "Turn Off even is already partially off":

As for the error, it appears to possibly be related to something you removed from the app, that didn't get cleared out properly when removed. Specifically, this would have been a Condition to Limit Activation or Condition to Limit Turning Off. I would suggest that you hit Update in the app, and if the errors still persist after that, to remove the app and redo it.

1 Like

I had not seen this option and I thought selecting the light you turned on was a poor option, but it was the only thing I could come up with. A few times in one of our garages I would step out the door, which would turn the garage light on, and then back in and I would manually turn off the light. Since no motion sensor was activated and I don't want shutting the door to turn off the lights the rule would remain active and the next time I opened the door the light would not come on. This would only happen if I re-opened the door before the Elapsed time option had run out. So the only option I could think of was use the switch I turned off, as I did not see the option you mentioned. I assumed initially that turning off the only light used would not leave the RL rule active. Bad assumption on my part, although it seem logical to me

Also in the RL shown above I initially did not have the switch itself as a turn off option, but I just added it to try and see if I could come up with a way make sure the RL rule was not staying active. I have long time out options on these and like the garage problem I mentioned sometimes I would come back in the shop and the lights would not come on, because it would show the RL rule still active.
I should also mention that the Shop lights switch is a group, of 5 other switches. Should I remove the group and use the 5 individual switches instead. I tried both ways and got the same results so I just went back to the single switch for clarity.

I re-built the rule from scratch and we will see if the errors go away.

Here is the new version:

1 Like

You still need one of the two options I mentioned above.

Is there a way of utilizing multiple criteria for Means to Turn Off Lights that are based on times? Basically, during the daytime I want to turn off the lights after motion is inactive for 5 minutes, but at night time I want to turn off the lights after 1 minute of motion inactivity.

I was hoping this is possible natively in RL, but if I have to use RM for this then I’ll do that. In that case I’ll have to figure out how to use my existing RL light settings that currently adjust based on time periods

I'm not sure that what you want is possible directly in RL, but you can definitely do it with RM. If you create an activator device for the RL instance and only turn it on/off with RM, then it will apply the settings from the table in RL. You also need to ensure that you do not turn on the "activate as a group" option in RL.

2 Likes

Yes, you can have different Stays time for each mode or period. The option is a toggle on the Set Up Lighting Schedules page:

That above for Modes, and below for Time Periods:

1 Like

Oh awesome, thank you! So to clarify, if I set the Stay Minutes for each time period or mode, what would I use as my “Means to turn off”? Currently my means to turn off is motion inactive for 5 minutes. Would I just delete this completely? I’m just a bit confused on this last piece

1 Like

I extensively use the controlled devices (light switches) as means to turn on and off, and things work really well. I get worried now hearing you are about to remove that as an option. What are my options here for rectifying my non-ideal configuration?

Turn off: For turning off I remove the switch from the means to turn off and add to “Switches that Determine All Lights Are Off"?

Turn on: What do I do here for removing the switch from means to turn on? If someone turns on the lights from outside of RL (like physically pressing the light switch (driver not able to distinguish from physical press and digital press)), the only way I can think of of detecting this from RL is to have the switch included in means to turn on.

Edit: Here's an example app to illustrate what I'm currently doing:

2 Likes

Once you set up modes or time periods, the means to turn off “motion stays inactive” should become available to you. That will use the “stay” settings from the modes/time periods page.

I also use the controlled devices (light switches) as means to turn on and off, and things work well. The apps work and I do not see any circular anomalies in the logs. I am leaning to leave it alone, as in ....if it ain't broke.....

@bravenel .... I hope any upcoming upgrades will not affect my existing apps.
Also, I love the Room Lighting app. Thank you for all your work on this!

2 Likes