Actions not trigerred at sunset

Hi,
I have a simple routine turning some lights on at sunset. I used to work well. It suddently stopped working for no apparent reason. Mode activates sunset properly and I can see the actions going in the logs, but the lights are not actually turning on. If I go in the configuration of the rule and click "run actions", the actually tun on.

Can you please help?

Thanks,

Benoit

You should post a screenshot of your rule. I would suggest that you open the rule and hit Done. That will re-establish its scheduling, in case something got messed up with that.

I am not allowed to post images for whatever reason. Maybe because I'm new here? I did clicked "Done" in the rule and it did not solve the problem. I'll do it again.

I copied and pasted the logs here. You can see that commands to turn lights on were sent at 8:33PM, but nothing effectively happened. I then went in the rule at 8:49PM and clicked "Run actions" manually and it worked.

Thanks for your reply!

Benoit

2025-07-19 20:49:46.793 Prise lumière du salon was set to 20% [digital]

2025-07-19 20:49:46.791 Prise lumière du salon was turned on [digital]

2025-07-19 20:49:32.926 Lumière ambiance cuisine was turned on [physical]

2025-07-19 20:49:32.817 Lumière porte de garage is on [physical]

2025-07-19 20:49:32.412 Prise lumière chambre a coucher was turned on [digital]

2025-07-19 20:49:32.229 Lumière facade was turned on [digital]

2025-07-19 20:49:32.128 Lumière porte entrée was turned on [digital]

[2025-07-19 20:49:31.949 Lumière porte de garage was turned on [digital]

2025-07-19 20:49:31.345 Action: Dim: Lumière ambiance cuisine: 35 --> fade: 15

2025-07-19 20:49:31.334 Action: Dim: Prise lumière du salon: 20 --> fade: 15

2025-07-19 20:49:31.300 Action: On: Lumière porte de garage, Lumière porte entrée, Lumière facade, Prise lumière chambre a coucher

2025-07-19 20:33:00.246 Action: Dim: Lumière ambiance cuisine: 35 --> fade: 15

2025-07-19 20:33:00.194 Action: Dim: Prise lumière du salon: 20 --> fade: 15

2025-07-19 20:33:00.145 Action: On: Lumière porte de garage, Lumière porte entrée, Lumière facade, Prise lumière chambre a coucher

2025-07-19 20:33:00.116 Triggered: Chez Melissa et Benoit mode Evening

2025-07-19 20:33:00.115 Event: Chez Melissa et Benoit mode Evening

2025-07-19 20:33:00.041 Mode set to Evening from Day by Time: Sunset

Please join the Hubitat Owners Group. Afterwards, you should be able to post pictures. We really need to see your Rule to understand what is going on.

1 Like

Thank you very much!

Here's my rule:

Actually your rule does not turn on any lights at sunset. As it is written, it should turn on the lights when the mode changes to evening. When that happens could be anytime. :rofl:

To test the rule itself, manually change the mode to evening, and see if the lights turn on, which I expect they will.

After confirming your rule is working, then investigate if the mode is really changing to evening at sunset. What rule or app are you using to achieve this mode change?

1 Like

I don’t see an obvious problem with your rule. From the copy/paste of your log data, it does look like the Mode does change, and then the rule is triggered. So it is odd that the lights don’t react properly.

One thing you could try is to remove that specific rule and then recreate it. Make sure you enable all logging in the rule and then keep an eye on things to see if they work or not. If not, please screen capture the pertinent log data and paste it here, along with the new rule, to allow the community to help debug the issue.

1 Like

I am having the actions not being triggered at sunset happen to me as well.
Started misbehaving around a week ago.
I have changed all of my triggers to actual times to see if that works. Should know tomorrow.

Is anyone elese having this issue? Or is it a known issue?

1 Like

Same issue here, I have rules to run 5 minutes before sunset to turn on lights (in the barn and chicken coop). Instead, they come on between 9:30 and 10:00AM. Tried the reboot, reset, and repair Zigbee no change in behavior. At a loss as to what to do.

1 Like

Found the solution.

Initial Issue with Latitude and Longitude

Upon reviewing the Hub Details, I noticed that the Latitude and Longitude information was incorrect. When I clicked the "Find on Map" button, a dialog box appeared, prompting me to enter search parameters. After entering the information, the map displayed an all-green background with a red pin positioned in the center. Since I was not familiar with the Latitude and Longitude for my new location, I selected the pin and closed the dialog box, then saved the details.

Troubleshooting with Map Controls

To verify the coordinates, I reopened the "Find on Map" dialog box and used the map controls to zoom out in search of a nearby lake as a reference point. Although I was unable to locate the lake, I did find a national park in the country of Georgia. I then side-scrolled to the left (west) to visually search for my address on the map.

Final Correction and Outcome

By manually navigating the map, I was able to find my address, position the red pin accurately, and then select and save the location. With the Latitude and Longitude now correctly set for this zip code, the sunrise and sunset data are displaying accurate information.

1 Like