Sunset and Sunrise Automation Setup

Hey everyone, I wanted to share my experience setting up a sunset and sunrise automation in my smart home. I’ve been trying to create a routine where my lights dim one hour before sunset and turn on one hour after sunrise. I thought it would be straightforward, but I ran into a bit of confusion with the time offsets. After some research and trial and error, I figured out the right setup using the following conditions:

condition:
or:
- condition: sun
after: sunset
after_offset: “-01:00:00”
- condition: sun
before: sunrise
before_offset: “01:00:00”

This setup ensures that my lights start dimming an hour before sunset and turn on an hour after sunrise, providing a smooth transition between natural and artificial light. I’d love to hear if anyone has similar automations or tips for improving this setup!

On a related note, I’ve been exploring other ways to enhance my home’s ambiance. For instance, I recently set up a motion sensor that adjusts the lighting based on foot traffic in my shop. It’s been a great way to monitor activity without startling customers. If anyone has experience with similar projects, I’d love to hear about your setups!

Looking ahead, I’m excited about the potential for even more intuitive lighting systems. Imagine lights that not only adapt to the time of day but also respond to music or personal preferences. It’s a fascinating glimpse into the future of smart home technology!

Would love to hear your thoughts and experiences!