Hi everyone, I wanted to share my recent experience integrating my RainMachine Touch HD controller with Home Assistant. After some research and experimentation, I managed to create a custom solution that provides detailed irrigation monitoring and control without relying on RainMachine’s cloud service. Here’s how I did it:
The Challenge
I purchased the RainMachine Touch HD to manage my garden irrigation, but I was disappointed to learn that the official Home Assistant integration doesn’t offer the level of detail I needed. Specifically, I wanted:
- Real-time notifications about irrigation activity
- Detailed weather forecasts
- Customizable sensors for irrigation scheduling
The Solution
I decided to leverage Home Assistant’s AppDaemon add-on to create a custom integration. With the help of ChatGPT, I developed a Python script that interacts directly with RainMachine’s local API. Here’s a breakdown of the steps:
-
Install AppDaemon
- Enable the AppDaemon add-on in Home Assistant.
- Create a new Python file in the AppDaemon configuration directory.
-
Script Development
- The script logs into RainMachine’s local API and fetches data such as irrigation status, weather forecasts, and zone-specific details.
- It generates custom sensors for each irrigation zone, including real-time watering duration, scheduled times, and any restrictions (e.g., rain delay).
- I also set up daily notifications to inform me about the day’s irrigation activities.
-
Configuration
- Added the necessary secrets for RainMachine’s login credentials and API endpoints.
- Configured the script to update sensors every 5 minutes and reset daily metrics at midnight.
Features
- Irrigation Monitoring: Track real-time watering activity for each zone.
- Weather Integration: Access detailed 7-day weather forecasts directly from RainMachine’s local data.
- Custom Notifications: Receive push notifications when irrigation starts, completes, or is delayed.
- Rain Delay Management: Set and monitor custom rain delay periods directly within Home Assistant.
Setup Steps
- Install and start the AppDaemon add-on.
- Create the
rainmachine_status.pyscript in the appropriate directory. - Add the necessary configuration to
apps.yamlandsecrets.yaml. - Restart AppDaemon to apply the changes.
Results
This integration has completely transformed how I manage my irrigation system. I now have a comprehensive overview of my garden’s watering needs, all from within Home Assistant. Best of all, I no longer need to rely on RainMachine’s cloud service, saving me money and reducing dependency on external platforms.
Conclusion
I’m thrilled with how this project turned out and would love to hear if anyone else has implemented similar solutions or has suggestions for improvement. Happy automating! ![]()
![]()