Hello everyone, I wanted to share my experience with automating my irrigation system using Sonoff CH4 Pro devices and Tasmota. I’ve been working on this project for a while now, and I’m thrilled to finally get it working smoothly!
Initially, I set up two Sonoff CH4 Pro devices to control my irrigation system. I integrated them into Home Assistant via MQTT, and while I could manually turn the relays on and off, I wanted to add a timer function to automate the process. The goal was to have the irrigation system turn off automatically after a set time, but I ran into some issues with the automation not triggering as expected.
After some research and troubleshooting, I realized the problem was with how the automation was structured. I adjusted the configuration to ensure that the timer correctly triggered the shutdown, and now everything works like a charm! Here’s a quick rundown of what I did:
- Device Setup: I configured the Sonoff CH4 Pro devices with Tasmota and integrated them into Home Assistant using MQTT. Each relay was assigned a unique ID for easy identification.
- Timer Integration: I added an input number entity to set the irrigation duration. This allows me to easily adjust the timer from the Home Assistant dashboard.
- Automation Rules: I created an automation rule that triggers when any of the irrigation relays are turned on. The rule now correctly waits for the set duration before turning the relays off automatically.
- Testing and Fine-Tuning: I tested the system extensively to ensure there were no hiccups. It’s been running smoothly for weeks now!
This setup has been a game-changer for me. It not only saves me time but also ensures that my garden gets the right amount of water without any manual intervention. I’m so proud of how this project turned out, and I’m excited to explore more automation possibilities in the future!
If anyone has questions about setting up a similar system or needs help troubleshooting, feel free to reach out. I’d be happy to share more details or offer advice based on my experience!
Cheers to smart gardening! ![]()
![]()