Skip to main content

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 meassured temperature.

## Install
```
pip3 install pymill
```

## 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 Assitant: [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


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.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

millheater-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file millheater-0.1.0.tar.gz.

File metadata

  • Download URL: millheater-0.1.0.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/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for millheater-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aff8e0166d19d96ffece46a86b4944a4754e8a39722bc0dc4e59669d3c985981
MD5 6b4ee165f4f5b03994543c539310d074
BLAKE2b-256 254de427aa078e45af0cc058531eb901a765003bb4948ddbdde1f0ea393c29e3

See more details on using hashes here.

File details

Details for the file millheater-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: millheater-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for millheater-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a420a819fafed6f3617651d39ef46b74eca66642002e9dacb219460d10a1a8b
MD5 c6e5f83803cb3467a42fd7f329404983
BLAKE2b-256 d4086dd65cb965ce5be0365391a6b667b1cdd09808d571064dcf8c293522a89c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page