{"id":15022070,"url":"https://github.com/ptcryan/hydrawiser","last_synced_at":"2025-08-20T12:30:52.282Z","repository":{"id":31862106,"uuid":"129642985","full_name":"ptcryan/hydrawiser","owner":"ptcryan","description":"Python library for Hydrawise API","archived":false,"fork":false,"pushed_at":"2023-01-28T08:49:18.000Z","size":26,"stargazers_count":17,"open_issues_count":6,"forks_count":11,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-12-09T11:10:46.037Z","etag":null,"topics":["home-assistant","home-automation","hunter","hydrawise-api","irrigation","irrigation-controller"],"latest_commit_sha":null,"homepage":null,"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/ptcryan.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}},"created_at":"2018-04-15T19:24:28.000Z","updated_at":"2023-04-28T06:51:05.000Z","dependencies_parsed_at":"2023-02-15T15:16:24.051Z","dependency_job_id":null,"html_url":"https://github.com/ptcryan/hydrawiser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptcryan%2Fhydrawiser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptcryan%2Fhydrawiser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptcryan%2Fhydrawiser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptcryan%2Fhydrawiser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptcryan","download_url":"https://codeload.github.com/ptcryan/hydrawiser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230423559,"owners_count":18223435,"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","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":["home-assistant","home-automation","hunter","hydrawise-api","irrigation","irrigation-controller"],"created_at":"2024-09-24T19:57:24.975Z","updated_at":"2024-12-19T11:11:20.064Z","avatar_url":"https://github.com/ptcryan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hydrawiser\n[![Coverage Status](https://coveralls.io/repos/github/ptcryan/hydrawiser/badge.svg?branch=master)](https://coveralls.io/github/ptcryan/hydrawiser?branch=master)\n[![Build Status](https://travis-ci.org/ptcryan/hydrawiser.svg?branch=master)](https://travis-ci.org/ptcryan/hydrawiser)\n[![Documentation Status](https://readthedocs.org/projects/hydrawiser/badge/?version=latest)](http://hydrawiser.readthedocs.io/en/latest/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/Hydrawiser.svg)](https://badge.fury.io/py/Hydrawiser)\n![Format](https://img.shields.io/pypi/format/hydrawiser.svg)\n![License](https://img.shields.io/pypi/l/hydrawiser.svg)\n\nThis is a Python 2 and 3 library for controlling the [Hunter](https://www.hunterindustries.com) Pro-HC sprinkler controller.\n\n*Note that this project has no official relationship to Hunter Industries. It was developed using the Hydrawise API v1.4. Use at your own risk.*\n\nHydrawise Youtube video: https://youtu.be/raOEK8JjSUA\u003cbr/\u003e\nHydrawise official site: https://hydrawise.com\u003cbr/\u003e\nSource code documentation: https://hydrawiser.readthedocs.io\u003cbr/\u003e\nPython Package Index: https://pypi.org/project/Hydrawiser/\n\n## Usage\n```python\nfrom hydrawiser.core import Hydrawiser\n\n# Register with a hydrawise account to obtain an API key.\nhw = Hydrawiser('0000-1111-2222-3333')\n\n# List all the controller information.\nhw.controller_info\n{'boc_topology_desired': {'boc_gateways': []}, . . . .\n\n# Get the controller status.\nhw.status\n'All good!'\n\n# Get the name of the controller.\nhw.name\n'Home Controller'\n\n# Get information about the relays on this controller.\nhw.relays\n[{'relay_id': 987654, 'relay': 1, 'name': 'yard', . . . .\n\n# Get the number of relays on this controller.\nhw.num_relays\n6\n\n# You can index a specific relay information.\nhw.relays[2]  # Return information for the 3rd relay. Relays is zero indexed.\n\n# Get the name of the 1st relay.\nhw.relay_info(0, 'name')\n'Back yard'\n\n# Suspend all relays for 60 days.\nhw.suspend_zone(60)\n\n# Suspend relay 3 for 2 days.\nhw.suspend_zone(2, 3)\n\n# Stop all relays.\nhw.run_zone(0)\n\n# Run all relays for 15 minutes.\nhw.run_zone(15)\n\n# Run relay 5 for 10 minutes.\nhw.run_zone(10, 5)\n\n# Refresh the controller attributes.\nhw.update_controller_info()\n\n# Test to see if a zone is running.\nhw.is_zone_running(3)\nTrue\n\nhw.time_remaining(3)\n247\n```\n\n## Limitations\n\n* Only one controller is supported\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptcryan%2Fhydrawiser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptcryan%2Fhydrawiser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptcryan%2Fhydrawiser/lists"}