Kitchen Lighting Automation Based on Time of Day

I wanted to share my experience with setting up an automated kitchen lighting system that adjusts based on the time of day. I have two separate lights in my kitchen, and I wanted them to behave differently depending on whether it’s morning, afternoon, or evening. However, I encountered an issue where the automation wasn’t respecting the conditions I set—it would always activate the right-side lights instead of the left-side lights as intended. This was quite puzzling, and I spent a lot of time trying to figure out why the system wasn’t evaluating the conditions properly.

After some research and trial and error, I realized that the problem might be with how the conditions were structured in my automation rule. I decided to break down the automation into smaller, more specific conditions to ensure that each trigger and action was clearly defined. I also made sure to remove any default behaviors that might have been overriding my custom settings.

Here’s a simplified version of what worked for me:

  1. Morning (10:30 AM - 6:00 PM): The right-side lights are turned on when motion is detected.
  2. Evening (6:01 PM - 10:00 PM): Both the left and right-side lights are turned on when motion is detected.
  3. Night (10:01 PM - 10:00 AM): The left-side lights are turned on when motion is detected.

I also added checks to ensure that the lights turn off after a certain period of inactivity, which helps save energy. This setup has been working perfectly for me, and it’s been a great way to optimize my kitchen lighting based on the time of day.

If anyone has similar use cases or tips for improving automation logic, I’d love to hear about them! It’s always great to learn from others’ experiences. Thanks for reading, and happy automating! :rocket: