redbeardbrowneyes/dog-save-the-lawn — explained in plain English
Analysis updated 2026-05-18
Automatically run sprinklers after a dog goes potty on the lawn to dilute the urine.
Trigger any custom script, light, or notification after a confirmed pet potty trip.
Generate a Hydrawise multi-zone watering script from a simple configuration form.
Add a stability window so the automation waits until the yard is fully clear before running.
| redbeardbrowneyes/dog-save-the-lawn | 00kaku/gallery-slider-block | 04amanrajj/netwatch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | — | JavaScript | Rust |
| Last pushed | — | 2021-05-19 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | general | general | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing Home Assistant setup with a door sensor and a camera that exposes animal detection.
Dog Save the Lawn is a Home Assistant blueprint that automatically detects a full dog potty trip and then runs whatever script you want afterward. It was built to trigger sprinklers so they can dilute dog urine on the lawn, but the same detection logic can trigger any script you attach to a confirmed potty trip. The automation watches a door sensor and a camera's animal detection sensor to confirm the whole cycle: the door opens, the dog goes outside, the camera sees an animal, the door opens again, and the door closes to bring the dog back in. Each stage has its own timeout, so opening the door for an unrelated reason will not accidentally trigger the script, the automation just stops quietly and can log why if status tracking is turned on. After the return door closes, the automation does not assume the trip is over immediately. Instead it watches the animal sensor, and optionally a person sensor, and waits until the yard has stayed clear for a stability window of a few minutes before running the script. If the dog or a person is detected again during that window, the timer resets and it waits again. This handles cases like the dog briefly stepping back outside or a family member still being in the garden. To use it, Home Assistant needs a door sensor exposed as a binary sensor with device class door, and a camera or NVR that exposes a binary sensor which turns on when an animal is detected. The README documents setup for UniFi Protect, Reolink, and Frigate cameras specifically, and says other integrations that expose a similar sensor should also work. The repo includes two blueprints: one that watches the door and camera and runs your script when a trip is confirmed, and one that generates a Hydrawise multi-zone watering script from a simple form, for people using Hydrawise sprinkler controllers. Setup involves importing both blueprints into Home Assistant, configuring your animal sensor, and creating the automation from the blueprint with your own entities filled in.
A Home Assistant blueprint that detects a full dog potty trip using a door sensor and camera, then runs a script such as watering the lawn afterward.
MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly general.
This repo across BitVibe Labs
Verify against the repo before relying on details.