Why isn't light bulbs going on when 'Sunset' is used in Activation Time Clause?

I have a Room Light app definition in my HE C8 Pro running 2.4.3.144.

The problem is with 'Nick Bedroom Lights' which currently shows as Active.

I am sitting alongside the lamp that is controlled by this RL App entry and it is most definitately OFF.

It is sitting 12 inches from the HE device. The bulb is a SengLED E11* device.

The definition shows as the following:

Today is Saturday 10/11/25 8:52PM so we are in the 'day of week' range and the activation settings show that the bulb should be glowing.

The Means to Activate Lights is as follows.

The Activate Lights Options shows:

Means to Turn Off Lights shows:

Sunset here and current time are:

So Sunset (6:27 PM) PLUS 138 minutes (2 hours, 18 minutes) says the light SHOULD go on at 8:45 PM.

I was sitting at the laptop with the lamp at my shoulder at 8:45 PM.

I had to do a manual web page refresh (ctrl-w) at 8:45 at which point Active showed up!

image

The question for the group is WHY didn't Nick's Bedroom Bulb go on?

Just to add to the confusion I had another RL App Entry for my Porch lights using Sunset+xx and they did not go on either.

A search of forum posts from 6/1/25 to 10/11/25 for Sunset yielded several other folks having problems. @function12 @JMac @User5008

It should be noted that when I created a simple rule to turn Nick Bedroom Light on at a specific time and turn it off a couple of minutes later, that worked fine!

My HE only has 5 SengLED bulbs known to it, so the problem is not one of Zigbee bandwidth or large quantities of other things going on.

I'm confused.

Paul

The best help will come from enabling logging and looking at the output of those logs for this app -- or in general, tips like the ones you can find here:

If you came here from a Sengled hub setup, you'll probably also want to look at this:

Without knowing more, the main thing you'll want to know is that Room Lighting wants to be in control by default. Whether the bulbs are actually on or off doesn't matter -- unless you tell it to "activate" or "turn off" anyway despite whatever state Room Lighting thinks it's in. But, again, your logs will tell you more about what is happening (or not) when and why.

1 Like

@bertabcd1234

My thanks for your reply!

I will go through the troubleshooting steps from the first article you referenced and post what I find out.

Your mention of coming from a SengLED environment is in fact my history. Their demise is unfortunate as I found that their hub and E11* bulbs worked real well together and very easy to figure out.

But their demise also forced me to search for a suitable hub replacement to deal with the bulbs first and then implement other options for integrated water sensors, main water shut-off valve options and other capabilities that I would not even try on a SengLED hub.

So here I am with the equivalent of a Swiss Army knife with the HE C8 Pro. And a huge learning curve.

Speaking of learning curve, after you mentioned 'come from a SengLED setup' the article you included is the same as the first document you referenced.

Is there a different article that is a 'cross over' from SengLED to HE hubs so we can figure out the magic decoder ring on HE hubs when looked at from what we know of SengLED hubs and endpoints?

Thanks.

Paul

1 Like

Yes, sorry, I pasted the same link twice. Fixed the other!

You can also just search the docs site, https://docs2.hubitat.com, to find other things that may be helpful, or the "?" icon in the top right of many UI pages will take you to any context-specific docs that are available.

1 Like

@bertabcd1234

My thanks for your reply.

I decided to essentially start over with the Room Lighting app. I deleted all RL entries and related Activator devices, leaving the HE with the SengLED E11* bulbs and my Samsung phone devices. Then I rebooted the HE.

Here is the current time and Sunset info for my laptop and HE device.

I find it curious that there is a 2 minute difference between my laptop time and the HE device. Clicking 'Update from browser' did nothing. The following is the current NIST time, which matches my laptop time.

image

I'll submit a different topic on why the HE device time is off.

Anyway, here is the HE reboot record from the 'HUB Events' log, so we have a starting time stamp of when to look into other log files.

Here is the starting list of devices, minus my phone.

Here is the starting list of Apps.

I then looked at the settings for the Nick Bedroom bulb, adjusted the brightness/level and turned it on/off a couple of times. I moved the lamp to be to my left and the HE device on my right. No worries about distances, mesh, throughput, whatever. Here are the log entries.

I then created a Room Lighting entry for the single bulb in 'Nick Bedroom'.

Which gets me:

And devices:

It is now 14:57 and the RL entry has gone ACTIVE!

The lamp itself is still off based on no perceptible light coming from the lamp.

The 'Past Logs' shows the following, which covers the time of testing that the bulb can be controlled (2:29), the creation of the RL entry (2:52) and the activation of the RL entry (2:56) and turn off (2:59).

image

The warning events for dev:12 shows:

I have no idea why the bulb hue, saturation and CT were changed. That is not in the RL entry!

Looking at the activator device we see:

Which matches what the device event log shows. But where/why did the Activator device get these settings???

The 'Nick Bedroom Lights' RL entry shows the following for the Activation Settings.

A check of the Lat/Long in the Hub, using the latlong.net web site shows the Hub knows where it is on the planet.

I clicked on the Activate button within the 'Nick Bedroom Lights' RL entry and got the following events show up.

image

The lamp is not emitting any light I can see.

At 3:24 PM, the RL entry shows Active, since I clicked on Activate.

I went into the RL entry and clicked on 'Turn Off' and got entries in the log file.

image

Based on all this info, I have NO idea why the lamp is not emitting light using this RL entry!

On a whim, I'm going to modify the Activator Device for the bulb settings I specified in the Bulb Device.

Starting point is:

After changes I have:

The event log for the device shows:

I clicked the 'On' button and NOTHING happened with the lamp!

The following showed up on the screen after I clicked ON. Clock time was 3:37, +- 2 minutes within the hub.

With the Events for the NB_RL device, there was NO new event for pressing the ON button!

Yet the LOGS for the device showed the device was turned ON!

image

I went back to the actual bulb Device for 'Nick Bedroom' and clicked the 'ON' button. The bulb lit up nice and bright. And there were events recorded for it! I included the system time of the laptop in the following.

As a last resort test, I went back to the RL entry and changed the rule to use a specific time to turn on and off.

The RL entry is showing Active. I included system time in the following.

The lamp is NOT emitting any light.

The logs show:

image

Sure seems like the Room Lighting app is not working on this hub.

I'm open to suggestions on what to do next.

Paul

Based on your other posts, I'm going to assume you have a firewall or other network configuration blocking your hub from reaching its default NTP servers on the Internet. To avoid this drift, you'll either need to figure out and fix that or change it manually to local NTP servers you can access, using instructions like these: Issues in 2.2.4 Latest - #7 by gopher.ny

Your Room Lighting setup has almost no configuration. You're telling to to vary by time period, but you don't need that if all you want to do is "Activate" at some time and "Turn off" at some other time. But even if you do, you don't actually have any time periods configured on your Set Up Lighting Periods page. I'd guess this might just use your same, only settings all the time then, but I'm thinking it might actually do nothing at all, as your table on the main page is blank, and I believe that will normally show what it would do right now if it were to activate. So, I'd start by disabling time periods entirely -- there's no reason to use this setting in the first place if you don't really need it -- though you could also actually configure one (typically more than one) if you do.

You'd need this setting if you want to do different "activation" settings at different times of day. You don't need it just to turn something on at some time every day. For that matter, RL itself is a bit overkill for this kind of automation if you only have one device, as you could use Basic Rule or other options to get the same result. (It can be nice if you have multiple devices to configure, more nuanced configuration needed, or want to use Zigbee Group Messaging as you might if you're controlling multiple Sengled bulbs in unison.)

Looks like that is just the time that you installed the RL app and created this child device, which got initialized to a set of default values -- not a problem.

2 Likes

@bertabcd1234

The HE has been on my internal network and as such can get to anything on the WWW however it wants to. A check of the HE time this evening shows that it matches the laptop time which matches NIST time. I have no idea why the time was off before.

As to the Room Lighting documentation, there are parts that can use a re-write and/or version upgrade!

The 'Set Up Lighting Periods or Re-Capture Devices' needs a re-write from my perspective, having spent hours today reading that section over and over and then trying to get it actually working in the HE. Very frustrating. I did eventually get it working for the Activation of a bulb. There is no capability, from what I can tell to use 'Periods' to turn off a bulb.

From my testing, only defining the time periods to turn bulbs on and off was insufficient to turn the bulbs on or off. I had to use the 'Means to...' options to turn the bulb on and off.

For the 'Means to Activate Lights' there is the following option that can be selected to leverage the time period I defined.

But there is no such option to use the time period I created in the 'Means to Turn Off Lights' as shown below.

I found that you can create a 'Day Group' for each day if you wanted. What I also found is that the web page has problems updating the web page when deleting a Day Group set in some cases.

The drop downs in the 'Means to...' options for on and off in the documentation do not mirror the options that the latest firmware displays.

As an aside, I encountered a fair number of problems/errors as recorded in the logs with no idea why they occurred. I was unable to find repeatable patterns that ended in the problems shown in the logs.

I deleted all the RL entries several times and started over to get this latest set of 3 RL entries that work.

Bottom line at the moment is that we have some success and some documentation that needs fixing.

Paul

The exact list is going to vary depending on the devices on your system and the options you've selected elsewhere in the app. For example, you apparently don't have any illuminance sensors, so you don't see that option, but you'll see them in the docs because that demo hub did. It may also change as the app evolves over time (though I don't think anything has happened recently).

Because of this, ultimately, you'll have to look at the list to see what your hub can actually do. Please do not interpret a screenshot in the documentation (not just for this app, though it's more likely with more complex ones like this) as an exact representation of what you will see on every hub.

Glad you found something that worked! If you want help with the reported errors, sharing the exact steps to reproduce and the specific error would be helpful. If you want more help with RL itself, I would share a description of the actual automation you're trying to create. As I mentioned above, it might not even be the most straightforward choice for this goal, though without more information, I was making an assumption from what I could see; but if it is, people are usually willing to offer hints if they know what for.

2 Likes

@bertabcd1234

Thanks for the reply.

Based on your mention that the contents of a drop-down list can vary at runtime based on what is known by HE at the time, my conclusion is that there is a bug in the Room Lighting app in the 'Means to turn off lights' clause when the rule uses time periods.

I base that statement on the fact that there is no 'Activate at Time Period Start' entry in the 'Means to turn off lights' clause when using Time Periods.

How do I submit a bug report that HE product management can get into their backlog?

I did a forum search on 'how to submit a bug report' and none of the articles actually answered that question.

My thanks for your help on this.

Paul

I don’t think this is a bug, but rather a misunderstanding. The intent of time periods is basically that you have the entire 24 hours covered (you had zero in your screenshot above, but perhaps that has since changed). There is no time when one period would end and another wouldn’t start, so activating at the start of your period makes sense; turning off at the end of one doesn’t.

EDIT: I would again also suggest describing the automation you want to create. Room Lighting is overkill for anything you've shown so far, so there is again probably a better option if that's all you want. But knowing more about what that is would be good in either case.

3 Likes

@claytonclan, I don't use Room Lighting, but perhaps This thread will provide you with an alternative explanation.
Rule Machine takes care of 80% of my needs.

1 Like

This is not quite how Means to Turn Off and Time Periods work. @bertabcd1234 gave you the answer, but I'll try to help by showing two pictures. My outside lights are controlled by Room Lighting and use time periods. The Room Lighting app technically never stops, but the lights turn off when I designate them.


This is how I have my Room Lighting app set up for Halloween. It activates at Time Period starts. The other key option you need to select is Adjust lights on Time Period changes. This will adjust the light setting to the new time period assuming the Room Lighting app is active. Mine is always active, but gets disabled when my Halloween Virtual Switch is turned off.


Here is a sample of two different Time Periods I use to cover the morning. At 6am (i.e. Turn on Morning), it turns on the decorations. My Hue scene is already activated previously from a different Time Period which is why everything is unchecked for those two devices. At 9am (i.e. Turn Off Morning), you'll see the that the Activation Settings is set to OFF for everything that I want to turn off. I've got other time periods to turn on in the afternoon (decorations turn on at 3:30pm when the neighborhood school gets out), the Hue lights turn on 30 minutes before sunset, and a time period to turn off the decorations and dim the outside lights around 10pm.

This instance works really well and I just leave it active while using the Virtual Switch to determine when it runs or not.

1 Like

There is a lot to unpack with the the replies from @bertabcd1234 @njanda and @JB10 and what I have found after more testing time, reading and wondering what I am missing versus what the Room Lighting (RL) development group intended.

For @bertabcd1234 , I am now in agreement that this is not a bug. I was looking at how to leverage the 'Time Periods' option wrong. And yes, at one point I had zero entries, then I had a couple and now I have even more as I worked towards a better understanding of Time Periods. You are very correct in that I need to look at it as '24 hour periods', effectively a full day, midnight to midnight.

I have a slightly different take on your statement "There is no time when one period would end and another wouldn’t start, so activating at the start of your period makes sense; turning off at the end of one doesn’t."

A time period does in fact end at some point in a lot of cases. Take the following Day Groups and Time Periods within the day. One item to note in the following is that with all days in the Day Group checked, the 'created time periods' underneath apply the same to all days of the week. More on this nuance later on.

There are 4 time periods defined in the above table which are in chronological order.

So time period LightOn starts at 11:55 AM and ends at 11:57 AM with the LightOff Period. The LightOff Period ends at 11:59AM when LightOn2 begins and so forth.

I was slow to realize that it is what we do with these time periods, in chronological order, that I can actually turn stuff on and off, along with a lot of other options.

I will also admit that I was not fully describing what I was trying to do back then. My apologies. It is my hope that this Reply corrects that and lays out, clearly, what I have found out about using Time Periods. Which, from perspective, is not what the documentation says or other postings put forth.

For @njanda, My thanks for pointing me to this other posting as it gave me the first hint that there were other rule entries I was missing that are key to Time Periods working well.

And absolutely yes, the Rule Machine could easily replace what I have been attempting to do with Time Periods. It is in fact what I used to do other bulb automations within my HE with successful outcomes!

What I want, is to learn about more capabilities of the HE, besides the Rule Machine, that can be used to automate not only lights but other things. At the moment, I only have bulbs to work with, but my head is already swimming with other tasks I want to get done and possibly use the HE to do them.

In my mind, it all goes back to the Hewlett Packard commercials and mantra, at the time, of 'What if....' and the need to keep wondering.

I do a lot of wondering, which absolutely impacts my sleep time among other things. It also improves my debugging skills.

For @JB10 My thanks for your reply as it filled in other missing parts. I noticed that you replied to the forum posting the @njanda sent me. In that posting you had a couple of replies. The first had 5 Time Periods defined while the 2nd posting had 4 Time Periods. The first reply provided three critical items I was missing which fixed a problem that was showing up in my logs. That being messages of:

Those 3 items are circled.

I had been using the 'Activate at time periods start' through all my previous testing. I never looked at the 'Other Activation Options' which has the following entries.

The first 'Additional Options' item resulted in the bulb being turned on and off as the wall clock time marched through the Time Periods I defined!

The second 'Additional Options' item is what stopped the 'Already Activated' messages in the log file and prevented the bulb from going off when the succeeding Time Period called for it to be OFF!

@JB10, the part that was confusing to me was your 2nd posting that included 4 Time Periods starting with "6:30am". In that posting, you had the following.

Here you hardcoded the start time to be 6:30 AM, didn't have the 'Activate when Time Period Starts', had the adjust lights as Time Periods change and then hardcoded the time to turn the lights off. Which I think would result in the 'Already Activated' message and failure to 10AM and '30 minutes before sunset' actions. Could be wrong about that.

#################################

Using all the information gleaned from the above replies and some 'what if' pondering, my testing today found the following worked out well for the case of needing to do some automation using RL Time Periods within the scope of a 24 hour day.

First step would be to write down the time an event is to occur, what is to change and a name that reflects what is going on. Personally, I refrain from including a timestamp as it becomes more confusing later on when you change the time the event happens. Been there, done that, learned my lesson.

In this simple case, I wanted to turn a single bulb on and off for two different time spans.

I did the typical startup a new RL with the following being the result for the top half of the window.

The red circle shows the name of the current Time Period that is active at the time of day this web page is displayed. The Device Control and Activation Settings boxes show the values of those boxes, for that Time Period, when the web page was displayed.

We now move to 'Set Up Lighting Periods or Re-Capture Devices' section.

When you click on that you get:



Going over what the above shows, we are using Time Periods and for this example, the automation we are doing is for every day of the week.

Then the starting time of each event needs to be entered into the table using the + and - symbols. The entries do not have to be put in the table in chronological order! As you enter the specific time for the event, and save it, the entries in the table will re-arrange themselves to be in chronological order! I know this due to playing 'hop scotch' with these entries during all my testing, which started at 8:30 AM, so you have a hint about when I finally worked this out to my satisfaction.

Then we have the four corresponding Device Control/Activation Settings boxes, one for each time period. You can manipulate their contents the way you do for all such boxes related to light bulbs.

The next major part and driver to make this actually execute is the in the following 'Means To Activate Lights' section.

The 'Activate at Time Periods Start' is telling the HE to start looking at the entries in the Time Period Table, compare the time defined for the first entry, remember they are in chronological order, and perform the actions in the first Device Control/Activation Settings box. That checking is starting at 1 minute after midnight and every minute thereafter until midnight of that day. We have to remember this is a 'per day' schedule!

The 'Other Activation Options' are the secret sauce that makes the next event and succeeding ones in the Time Periods timeline successfully execute! Without these two lines, only the 1st event would actually cause a change. Any later ones would not change a bulb from on to off and they would report an 'Already Activated' message in the logs.

You find those two options at:

To round out the RL definition we have the following.

You will note that there is nothing defined in this clause of the RL rule! In reality, if you want to have the lights turn off before midnight, then put another entry in the Time Periods table up above with a suitable time, which gets you another Device Control/Activation Settings box within which you set the state of the bulb to be off.

You now have a RL Time Periods based rule defined and working for a light bulb. Now take this info and stir in switches, pushbuttons and whatever else you need.

Additional info:

You can define your own 'Day Groups' by clicking on and off, the boxes that show up such that you can end up with the following as one example. Note that it also expands the Time Periods to correspond to the Day Groups.

You can change the times for any Day Group as shown below for WED-THU-FRI.

image

I do not know if you can delete an entry from the table for a specific event. Someone else can figure that out and report what they find.

When you split the week into multiple Day Groups, you will also get new Device Control/Activation Settings boxes for each group and entries in the Time Periods Table. For example:




There you have it. My version of using Room Lighting Time Periods and the documentation of what I did.

Your mileage may vary.

Safe travels.

Paul

PS: Sigh. I keep editing and adding to this post. Apologies.

PPS:

IF you are using Time Periods and the wall clock matched the first entry in the Time Periods table, your RL entry will be 'marked' as Active in the 'Apps' window of the UI as shown below.

image

The entry will remain in 'Active' mode for the rest of the day.

If you want to restart the rule, essentially clear the 'Active' state, click on the 'Turn Off' button shown below.

You can re-activate the rule, at the current wall clock time, by clicking Activate.

1 Like

You'll find that there are several different ways to complete the same goal even when using the same app. The two samples from the previous thread result in the same outcome...Lights turning on and off defined by Time Periods.

With the hardcoded time example, there is no "Already Activated" message since the only way to Turn On Room Lighting is at 6:30am and It turns off at 9pm. Already Activated comes when Room Lighting is Activated and another Means to Turn On event happens. My other example would only show that if the Means to Turn Off was missed...basically, the hub would need to be off at 9pm. In that other example, it basically works like:

1.) 6:30am - Room Lighting Activates. I have a time period defined as 6:30am and it turns on specific lights and plugs.
2.) 10am - Time period changes. Because I have the adjust lights as time period changes option selected, Room Lighting adjusts the lights/plugs based on the new time period. Room Lighting is active from the Means to Turn On at 6:30am, but this time period is not an activation event (i.e. there is no Already Active log).
3.) 30 minutes before Sunset - New Time Period. Everything follows what happens in step 2 above.
4.) 9pm - Room Light Turns Off. Anything that has the OFF Box checked will be turned off.

Think of these four steps as four individual rules with Rule Machine all tied under one instance of Room Lighting. The rule starts at 6:30am and does something, waits until 10am to do something else, then waits until 30 minutes before sunset to do more actions, and then finally waits until 9pm before doing its last action and shutting down for the day.

2 Likes

Thank you for your feedback. I’ve shared your information with our engineering team for further investigation. If an issue is identified, a fix will be included in a future update. Keep an eye on the release notes category for any related updates.

1 Like