Hi everyone! I wanted to share a small project I’ve been working on that has made a significant difference in my mornings. I’ve always struggled with waking up feeling groggy, and after using a Philips wake-up light for a while, I decided to integrate this functionality into my smart home setup using Philips Hue and Sleep as Android. Here’s how I did it!### The GoalI wanted to replicate the gradual light transition of the Philips wake-up light but with more flexibility and integration. The idea was to use a Philips Hue bulb to simulate a sunrise, gradually increasing in brightness and shifting from warm to cool tones over a 30-minute period. This would be triggered by my existing Sleep as Android alarm, ensuring a smooth wake-up experience.### The Setup1. Hardware: I used a Philips Hue color bulb, which I already had in my bedroom. It’s important to note that this setup works best with a single bulb, but you can adjust it for multiple bulbs if needed.2. Home Automation: I set up the Hue bridge and ensured the bulb was correctly integrated into my Home Assistant setup.3. Script Creation: I created a custom script in Home Assistant to handle the gradual color and brightness transitions. Here’s the script I used:yamlsunrise: sequence: - service: light.turn_on data: entity_id: light.hue_color_lamp_1 xy_color: [0.67,0.39] brightness: 1 - delay: seconds: 1 - service: light.turn_on data: entity_id: light.hue_color_lamp_1 xy_color: [0.65,0.41] brightness: 85 transition: 600 - delay: seconds: 600 - service: light.turn_on data: entity_id: light.hue_color_lamp_1 xy_color: [0.60,0.40] brightness: 170 transition: 600 - delay: seconds: 600 - service: light.turn_on data: entity_id: light.hue_color_lamp_1 xy_color: [0.48,0.40] brightness: 255 transition: 600This script transitions the light through four stages, each lasting 10 minutes, to simulate a natural sunrise.### Integration with Sleep as AndroidTo integrate this with Sleep as Android, I followed these steps:1. Enable REST API: Ensure the REST API is enabled in your Home Assistant configuration.2. Create a Task in Tasker: I used Tasker to send an HTTP POST request to my Home Assistant server when the alarm triggers.3. Set Up the Alarm: In Sleep as Android, I set the alarm time 24 minutes before my desired wake-up time. This allows the sunrise simulation to complete just as the alarm goes off.### ResultsAfter implementing this setup, I’ve noticed a significant improvement in how I feel upon waking. The gradual light transition helps me feel more alert and less groggy. It’s been a game-changer for my mornings!### Tips for Others- Test Gradually: Start with shorter transition times and adjust based on your preference.- Adjust Colors: Use the Philips Hue color gamut to fine-tune the colors to match your wake-up light preferences.- Ensure API Access: Make sure your Home Assistant instance is accessible via the REST API for the Tasker integration to work smoothly.I hope this project inspires others to integrate similar functionalities into their smart homes! Let me know if you have any questions or suggestions for improvement. ![]()