Metadata-Version: 2.4
Name: python-sn2
Version: 0.1.0
Summary: Python library for SystemNexa2 device integration
Author: Claes Nordmark
License: MIT
Project-URL: Homepage, https://github.com/konsulten/python-sn2
Project-URL: Repository, https://github.com/konsulten/python-sn2
Project-URL: Issues, https://github.com/konsulten/python-sn2/issues
Keywords: systemnexa,home automation,iot
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp==3.12.15
Requires-Dist: websockets==15.0.1
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: ruff==0.14.2; extra == "dev"
Requires-Dist: pytest==8.4.2; extra == "dev"
Requires-Dist: pytest-asyncio==1.2.0; extra == "dev"
Dynamic: license-file

# python-sn2

Python library for SystemNexa2 device integration.

## Installation

```bash
pip install python-sn2
```

## Usage

```python
from sn2.device import Device

# Create a device instance
device = Device(ip="192.168.1.100")

# Initialize the device
await device.initialize()

# Connect to the device
await device.connect()

# Set brightness
await device.set_brightness(0.75)

# Get device information
info = await device.get_info()
print(f"Device: {info.information.name}")

# Disconnect
await device.disconnect()
```

## Development

Install development dependencies:

```bash
pip install -e ".[dev]"
```

Run tests:

```bash
pytest
```

## License

MIT License
