Smart Garden Watering System Integration with Vegetronix and Shelly

Hey everyone, I wanted to share a project I’ve been working on to automate my garden watering system using Vegetronix sensors and Shelly relays. It’s been a fun challenge, and I thought I’d walk through my setup and some of the lessons I’ve learned along the way. :seedling::bulb:

So, the goal was to create a system that waters my garden based on soil moisture, water tank levels, and even fills the tank if needed. I’ve got a few Shelly 1Pro relays controlling the sprinkler valves and the water tank fill valve. The Vegetronix hub and sensors are doing the heavy lifting with tank water level, soil moisture, and water flow monitoring. The script I’ve written uses the Shelly relays to trigger updates on the Vegetronix hub and then queries the data to decide whether to water or fill the tank first.

One thing I noticed is that VegeCloud takes around 41-45 seconds to update, which isn’t ideal but manageable. I had to add a sleep command in the script to wait for the data to refresh. It’s a bit inelegant, but it works! :sweat_smile: I also embedded some sensor data views directly into Home Remote using the VegeCloud links, which is super handy for monitoring everything in one place.

Here’s a quick overview of how it all ties together:

  • Vegetronix Sensors: Tank water level, soil moisture, and water flow.
  • Shelly Relays: Control the sprinkler valves and tank fill valve.
  • Home Remote Script: Automates the entire process, from data collection to decision-making.

I’ve included some screenshots of the setup and the script for anyone interested in replicating this. It’s been a great way to ensure my garden gets the right amount of water without me having to check it constantly. Plus, it’s been a fantastic learning experience in integrating different devices and platforms!

If anyone has questions or suggestions, I’d love to hear them. Happy gardening! :cherry_blossom: