Metadata-Version: 2.1
Name: hubitatcontrol
Version: 0.8.1
Summary: Hubitat Maker API Interface
License: MIT
Author: Jesse Schoepfer
Author-email: jelloeater@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: requests
Description-Content-Type: text/markdown

from main import get_hubfrom main import lookup_device# Hubitat Control

Hubitat Elevation Maker API Interface (with Requests)

## Usage
```python
from hubitatcontrol import *
h = get_hub(host='Hubitat_IP_or_Hostname', token='Maker_Token', app_id='Maker_App_ID')
d = lookup_device(h, 'Device_Name')
print(d.switch)
d.turn_on()
print(d.switch)
```

## Roadmap
### v0.5
- [X] Advanced Zigbee RGBW Bulb
### v0.7
- [X] Generic Zigbee Outlet
### v0.8
- [X] Leviton DZ6HD Z-Wave Dimmer
### v1.0
- [ ] hueBridgeBulb
### v1.1
- [ ] hueBridgeBulbCT
### v1.2
- [ ] hueBridgeBulbRGBW
### v1.5
- [ ] Ecobee Thermostat
### v2.0
- [ ] Generic Z-Wave Lock
### v2.5
- [ ] Generic Z-Wave Plus Scene Switch
### v2.6
- [ ] Generic Zigbee Contact Sensor (no temp)
- [ ] Sonoff Zigbee Button Controller


## Development setup
**Tooling**
- Need Python > 3.10 Installed
- Doc gen w/ pdoc3 and pyreverse
- Poetry for package management + Build
- Code Complexity with Radon and Xenon
- isort for imports
- Black for formatting
- Vulture for dead code
- Bandit for security
- Testing with PyTest

- **Setup**
- Install Go-Task (<https://taskfile.dev/>)(Optional, it's NEAT!)
  - Linux (`sudo snap install task --classic`)

## Structure

```mermaid
flowchart LR
Hub --> Device --> Abstract_Device_Class --> Specific_Device
```
## Test

```sh
task
```

