I’ve been working on setting up an automation that fits seamlessly into my morning routine, and I wanted to share my experience in case it helps someone else. The goal was to have my TV turn on and start playing my favorite morning show as soon as I enter the kitchen, but only during the early hours before work. Here’s how I approached it and what I learned along the way.First, I identified the key components needed for this automation. I have a Google TV in the kitchen, which I wanted to control using my Hue motion sensor. The challenge was ensuring the automation only triggered once a day, specifically in the morning. After some research, I realized I could use time conditions to restrict the automation to a specific window—say, between 5:00 AM and 9:30 AM. This way, even if the motion sensor detects movement later in the day, it wouldn’t activate the TV.The next step was setting up the automation itself. I used Home Assistant’s automation editor to define the trigger, conditions, and actions. The trigger was straightforward: motion detected by the Hue sensor in the kitchen. For the conditions, I added a time constraint to ensure it only runs during the designated morning window. The actions included turning on the TV, closing any unnecessary apps, and launching the IPTV app to start the desired channel. I also added a small delay to ensure everything initializes properly before switching to the IPTV app.One thing I found particularly useful was the ability to force-stop the IPTV app before launching it again. This ensures that the app starts fresh every time, which has helped eliminate any glitches I was experiencing before. I also discovered that using the androidtv.adb_command service was essential for reliably controlling the app through Home Assistant.After setting everything up, I tested the automation multiple times to ensure it worked as intended. It’s been running smoothly for a week now, and it’s made my mornings much more enjoyable. The key takeaway for me was how powerful and flexible Home Assistant can be when it comes to creating custom routines. With a bit of trial and error, I was able to create an automation that perfectly fits my needs.I’d love to hear if anyone else has similar automations or tips for optimizing routines. Whether it’s for mornings, evenings, or any other part of the day, sharing experiences can help us all make the most out of our smart home setups!