{"id":31397650,"url":"https://github.com/jamesshannon/ad-irrigation_check","last_synced_at":"2026-05-18T19:08:37.850Z","repository":{"id":315506000,"uuid":"1056983405","full_name":"jamesshannon/ad-irrigation_check","owner":"jamesshannon","description":"Confirm successful irrigation and send alerts with an AppDaemon app for Home Assistant","archived":false,"fork":false,"pushed_at":"2025-09-19T00:22:16.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-19T02:35:00.380Z","etag":null,"topics":["appdaemon","home-assistant"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesshannon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T05:58:20.000Z","updated_at":"2025-09-19T00:22:17.000Z","dependencies_parsed_at":"2025-09-19T02:35:56.535Z","dependency_job_id":"0e772781-8a94-48b6-b4e3-0ec7a975f313","html_url":"https://github.com/jamesshannon/ad-irrigation_check","commit_stats":null,"previous_names":["jamesshannon/ad-irrigation_check"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jamesshannon/ad-irrigation_check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesshannon%2Fad-irrigation_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesshannon%2Fad-irrigation_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesshannon%2Fad-irrigation_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesshannon%2Fad-irrigation_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesshannon","download_url":"https://codeload.github.com/jamesshannon/ad-irrigation_check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesshannon%2Fad-irrigation_check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277526756,"owners_count":25833447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appdaemon","home-assistant"],"created_at":"2025-09-29T13:59:57.600Z","updated_at":"2025-09-29T14:00:00.489Z","avatar_url":"https://github.com/jamesshannon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n```\n# Irrigation Check AppDaemon App\n\n## Purpose\nThis AppDaemon app helps prevent irrigation failures by cross-checking the logical Home Assistant irrigation controller (e.g., Irrigation Unlimited) with the physical valve and water flow. It ensures that:\n\n1. The irrigation valve is actually closed after the controller finishes.\n2. The expected amount of water was used, as measured by a water meter.\n\nThis helps detect under-watering (valve didn't open) or over-watering (valve stuck open), both of which can be serious for plant health and water usage.\n\n## Installation\n1. Copy `irrigation_check.py` to your AppDaemon apps directory (or symlink for development).\n2. Add the configuration below to your AppDaemon `apps.yaml`.\n3. Reload AppDaemon or restart the app.\n\n## Configuration\nAdd an entry to your `apps.yaml`:\n\n```yaml\nirrigation_check:\n  module: irrigation_check\n  class: IrrigationCheck\n\n  sequence_entity_id: binary_sensor.irrigation_unlimited_c2_s1  # The logical controller's sequence entity\n  sprinkler_entity_id: switch.sprinkler_controller_zone_3_relay # (Optional) The physical valve entity\n\n  notify_ok_action: notify.persistent_notification              # (Optional) Service to notify if check passes\n  notify_alert_action: notify.str_notification_group            # (Optional) Service to notify if check fails\n\n  min_duration: 3         # (Optional) Minimum watering duration (minutes) to check (default: 3)\n  min_expected_lpm: 10    # (Optional) Minimum expected flow rate (liters/min, default: 10)\n```\n\n### Required Arguments\n- `sequence_entity_id`: The entity_id of the irrigation controller sequence (e.g., from Irrigation Unlimited)\n\n### Optional Arguments\n- `sprinkler_entity_id`: The entity_id of the physical valve (switch)\n- `notify_ok_action`: Home Assistant notify service to call if water usage is as expected\n- `notify_alert_action`: Home Assistant notify service to call if water usage is below expected\n- `min_duration`: Minimum watering duration (in minutes) to check\n- `min_expected_lpm`: Minimum expected liters per minute\n\n## How It Works\nWhen the irrigation controller finishes a run, the app:\n1. Optionally checks that the valve is off.\n2. Waits for a configurable delay to allow water meter updates.\n3. Checks the water usage during the run. If usage is below expected, sends an alert; otherwise, sends an OK notification.\n\n## Example Use Case\nIf a zone is scheduled to run for 10 minutes, but the water meter shows only 5 liters used (instead of the expected 100+), the app will alert you to a possible valve or plumbing issue.\n\n## Troubleshooting\n- Ensure your water meter entity is updating correctly in Home Assistant.\n- Adjust `min_duration`, `delay_minutes`, and `min_expected_lpm` as needed for your system.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesshannon%2Fad-irrigation_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesshannon%2Fad-irrigation_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesshannon%2Fad-irrigation_check/lists"}