I’m thrilled to share my recent success in setting up automated lighting using Milight and Astro! After some trial and error, I managed to create a system that turns lights on at sunset and off at sunrise. Here’s how I did it, in case anyone else is looking for a similar solution.
Setup and Configuration:
- Bindings: I installed the
binding.milightandbinding.astrofiles in my addons folder. I made sure not to include the action files, as that seemed to cause issues in the past. - Configuration: I set up my
.cfgfile with my latitude and longitude for accurate sunrise and sunset times. I also configured the Milight bridge with the correct IP address and port. - Items: I created items for the lights, including a color picker, white light button, disco mode, and speed controller. This setup allows for a lot of flexibility, whether you want to set a specific color or let the lights disco!
- Sitemap: I organized the lights into a frame with switches and a color picker for easy control.
- Rules: I set up two simple rules using the Astro binding to trigger the lights at sunrise and sunset. This ensures the lights come on when it’s dark and turn off when it’s light.
Tips for Others:
- Make sure your latitude and longitude are accurate for the best results.
- Test each component individually before setting up the rules to catch any issues early.
- If you’re using RGBW lights, you might need to tweak the settings slightly, but the basic setup should work.
I’d love to hear if anyone else has tried something similar or has tips to improve this setup! It’s been a game-changer for me, and I hope it can help others too. ![]()