Home Assistant AUTOMAZIONI: luce con spegnimento automatico | EP.3

After seeing how to turn on the lights as we pass by, it's time to close the loop! In this third episode of the Home Assistant automation guide, we tackle a fundamental topic: automatic shutdown. Because a light that turns on by itself is useful, but one that turns off at the right time is even more so! In this video, we'll see how to move from theory to practice by managing timing and delays to avoid unnecessary energy waste in the hallway. What you'll learn in this video: ✅ Context logic: Why "turn it off after 2 minutes" is different from "turn it off after 2 minutes without movement." ✅ Two automations are better than one: Because initially, it's simpler and more understandable to create one automation to turn it on and a separate one to turn it off. ✅ Configuring the Off Trigger: Set the motion sensor's "away" state with a time delay. ✅ Safety conditions: Verify that the light is actually on before sending the off command. ✅ How Home Assistant Thinks: What Happens Behind the Scenes Between Events. Let's continue our Hack My Home journey to make your home smart in a simple and organized way! 📌 Video Index: 00:00 Introduction: The Importance of Automatic Shutdown 00:33 The Right Logic: Managing Time Based on Context 01:26 Strategy: Creating a Second Dedicated Automation 02:22 Practical Tutorial: Configuring the "Absence" Trigger 02:37 Adding the Shutdown Condition and Action 03:09 Analysis: How Home Assistant Manages the Two Automations 04:19 Conclusions and What We'll Cover in the Next Episode (The Choose Block!) 💬 Question of the Day: What was the first automation you created, or which one would you like to build right now? Let me know in the comments below! 🌐 Stay up to date and join the community: • Facebook: https://www.facebook.com/profile.php?... If this series is helping you automate your home, leave a 👍 and subscribe to Hack My Home so you don't miss episode 4 where we'll discuss more advanced logic! #HomeAssistant #HomeAutomation #SmartHome #Automations #HackMyHome #TutorialITA #DIY #EnergySaving