Skip to content

Python 3 library for interacting with Hydrawise sprinkler controllers

License

Notifications You must be signed in to change notification settings

rumbu13/pydrawise

 
 

Repository files navigation

pydrawise

Python 3 library for interacting with Hydrawise sprinkler controllers.

Note that this project has no official relationship with Hydrawise or Hunter. Use at your own risk.

Usage

import asyncio

from pydrawise import Auth, Hydrawise


async def main():
    # Create a Hydrawise object and authenticate with your credentials.
    h = Hydrawise(Auth("username", "password"))

    # List the controllers attached to your account.
    controllers = await h.get_controllers()

    # List the zones controlled by the first controller.
    zones = await controllers[0].get_zones()
    
    # Start the first zone.
    await zones[0].start()


if __name__ == "__main__":
    asyncio.run(main())

About

Python 3 library for interacting with Hydrawise sprinkler controllers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%