Skip to main content

Library for interacting with millheat api

Project description

pymillheat

Python3 wrapper for interacting with millheat api.

Features:

  • Temperature readings.
  • Ability to change set temperature.
  • Turn the device on/off.
  • Device ID, room ID, user ID.

Install

pip3 install pymillheat

Example

import pymillheat

mill = pymillheat.Mill(
    access_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    secret_token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    username="example@email.com",
    password="password123"
)

mill.open_connection()

mill.access_token
mill.authorization_code
mill.refresh_token

mill.update_access_token()

mill.get_home_list()
mill.homes_information

mill.get_room_by_home(home_id)
mill.rooms_information

mill.get_device_by_room(room_id)
mill.devices_information

mill.get_independent_devices(home_id)
mill.independent_devices_information

mill.switch_control_device(device_id, status, retry=1)
mill.temperature_control_device(device_id, status, hold_temp=None, retry=1)

mill.close_connection()

Thanks to https://github.com/Danielhiversen for inspiration code-wise.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pymillheat, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pymillheat-1.0.2-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pymillheat-1.0.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page