The instructions for this tutorial can be found in this YouTube video and in this blog post.
View the list of my devices and the devices that I recommend on this page
You can copy and paste the code used in this video, but please make sure that you replace the entities in this code by your own entities. This code is here for your convenience and works 100% if everything is installed correctly. If something is not working in your install, please review your installation and check the sensors in your Developer Tools to see what might be missing in your setup.
You can downloaded the code here
There's also extra code in that file to check if the sprinkler still runs after a restart of Home Assistant and to create this monitoring dashboard:
Visit my YouTube channel: Smart Home Junkie
⭐⭐⭐
If this helped and saved you time, you can support me by becoming my Patron, buy my a coffee or join my channel. I'd really appreciate that.
⭐ Join my Discord server at: https://discord.gg/at8v5hW ⭐
⭐⭐⭐
- NEVER REPLACE YOUR FILES BY THE FILES IN THIS REPOSITORY WITHOUT CREATING A BACKUP FIRST!
- THESE FILES CONTAIN ONLY PART OF THE CODE OF YOUR ORIGINAL FILES.
- ALWAYS COPY THE CODE IN THESE FILES AND PASTE THEM WITHIN YOUR ORIGINAL FILES.