Hi everyone! I’ve been working on a smart irrigation system that automatically runs based on temperature and rainfall. It’s been a fantastic project, and I wanted to share my setup and a question I have about enhancing it further.
I’ve set up an automation using GitHub (you can learn more about the setup here). The system works perfectly, but I’d love to add a feature to track how long the irrigation runs each time. Right now, the last step of my automation sends me a notification via the app to let me know the plants have been watered. My goal is to include the duration of the irrigation in this notification.
I noticed that someone suggested using an input_datetime to capture the start time of the automation, and I’ve already implemented that. However, I’m not entirely sure how to use this data to calculate and display the irrigation duration in the notification. I’m wondering if there’s a clever way to track the time between the start and end of the irrigation cycle and then include that information in the notification message.
If anyone has any tips or alternative solutions, I’d be thrilled to hear them! Maybe there’s a way to use a script or a rule engine to handle the timing and formatting. I’m also curious if others have tackled similar challenges and how they approached it. Let’s brainstorm together!
Thanks in advance for your insights and suggestions!