Metadata-Version: 2.4
Name: pyintellidwell
Version: 1.0.0
Summary: Asynchronous Python client for IntelliDwell Sprinkler Controller API
Author-email: Tanner Nelson <tannernelson16@gmail.com>
Project-URL: Homepage, https://github.com/TannerNelson16/pyintellidwell
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: aiohttp>=3.9.0

# pyintellidwell

Asynchronous Python client library for communicating with the IntelliDwell Sprinkler Controller REST API.

## Installation

```bash
pip install pyintellidwell
```

## Usage

```python
import asyncio
import aiohttp
from pyintellidwell import IntelliDwellClient

async def main():
    async with aiohttp.ClientSession() as session:
        client = IntelliDwellClient(host="sprinklers.local", session=session)
        
        # Fetch controller telemetry status
        status = await client.get_status()
        print("Relay states:", status["relay_states"])
        
        # Turn on Zone 1 (index 0)
        await client.set_relay(pin=0, state="on")
        
        # Turn off Zone 1
        await client.set_relay(pin=0, state="off")

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

## License

This project is licensed under the MIT License.
