Configuring a Timer for Input_boolean Automation

Hey everyone, I’m working on a project where I need to set up a timer on my Dashboard that controls an input_boolean for a specific duration. After some research and trial and error, I figured it out! Here’s how I did it:1. Understanding the Goal: I wanted a simple interface where I could input a time in minutes, and have an automation run for that duration. This would control a switch or helper, perfect for temporary settings like lights or heating.2. Dashboard Setup: I added an input_number entity to allow users to enter the desired time in minutes. Then, I created an input_boolean to toggle the automation on and off.3. Automation Rules: - When the input_boolean is turned on, it triggers a scene that sets the remaining time using the input_number value. - If the remaining time is greater than zero, it decreases the time by one minute every 60 seconds and repeats until it reaches zero. - Once the time hits zero, it turns off the input_boolean and resets the remaining time to zero.4. Testing and Adjustments: I tested different scenarios to ensure the automation works smoothly. It’s been running perfectly, and I can easily adjust the duration as needed.I’m really happy with how this turned out! It’s a neat solution for temporary controls without needing complex setups. If anyone has questions or suggestions, I’d love to hear them. Happy automating! :rocket: