A python3 library to communicate with Mill
Project description
# pymill [![Build Status](https://travis-ci.org/Danielhiversen/pymill.svg?branch=master)](https://travis-ci.org/Danielhiversen/pymill)
Python3 library for Mill.
Based on https://pastebin.com/53Nk0wJA and Postman capturing from the app.
All requests are send unencrypted from the app :(
Control Mill heaters and get measured temperatures.
[Buy me a coffee :)](http://paypal.me/dahoiv)
## Install
```
pip3 install millheater
```
## Example:
```python
import mill
mill_connection = mill.Mill('email@gmail.com', 'PASSWORD')
mill_connection.sync_connect()
mill_connection.sync_update_heaters()
heater = next(iter(mill_connection.heaters.values()))
mill_connection.sync_set_heater_temp(heater.device_id, 11)
mill_connection.sync_set_heater_control(heater.device_id, fan_status=0)
mill_connection.sync_close_connection()
```
The library is used as part of Home Assistant: [https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/climate/mill.py](https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/climate/mill.py)
Python3 library for Mill.
Based on https://pastebin.com/53Nk0wJA and Postman capturing from the app.
All requests are send unencrypted from the app :(
Control Mill heaters and get measured temperatures.
[Buy me a coffee :)](http://paypal.me/dahoiv)
## Install
```
pip3 install millheater
```
## Example:
```python
import mill
mill_connection = mill.Mill('email@gmail.com', 'PASSWORD')
mill_connection.sync_connect()
mill_connection.sync_update_heaters()
heater = next(iter(mill_connection.heaters.values()))
mill_connection.sync_set_heater_temp(heater.device_id, 11)
mill_connection.sync_set_heater_control(heater.device_id, fan_status=0)
mill_connection.sync_close_connection()
```
The library is used as part of Home Assistant: [https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/climate/mill.py](https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/climate/mill.py)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
millheater-0.1.1.tar.gz
(4.3 kB
view details)
File details
Details for the file millheater-0.1.1.tar.gz
.
File metadata
- Download URL: millheater-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc0ebc321f5d13f96b412f541a7014d7a63bfe8fa0763d48789431b8a9de4cf |
|
MD5 | 7c305b84754ff9f3e518325d3d8f636c |
|
BLAKE2b-256 | 9e7aa516b9fb431541587ac43d8a80b5c42f13fc182b7f2132b9c98a593d609c |