Skip to main content

Controller for Heatzy products

Project description

python-heatzy - Python Heatzy controller

heatzy

Heatzy (https://heatzy.com/) is a provider of heating control solutions (such as Pilot Wire addons to radiators). There is an API available on Google Drive, this software was created to control the Pilot Wire solution from a Python library.

Usage

Python

# First create the handler with your heatzy app login/password
hh = HeatzyHandler('bidon@bidon.fr', 'p@ssw0rd')

# Get the devices (HeatzyDevice) associated to your account
deviceDict = hh.getHeatzyDevices()

for device_name in deviceDict:
    hd = deviceDict[device_name]
    hd.status()         # Returns the status (OFF, ECO, HGEL, CONFORT)
    hd.confort()        # Sets the instruction to confort
    hd.stop()           # Sets to OFF

CLI

A CLI tool for interacting with the library is included (bin/heatzy-cli)

python .\heatzy.py
usage: heatzy.py [-h] [-u USERNAME] [-p PASSWORD] [-d DEVICE] [-l]
                 [-m SETMODE]

Controls Heatzy devices throught the CLI

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username on the Heatzy (Gizwits) platform
  -p PASSWORD, --password PASSWORD
                        Password of the user
  -d DEVICE, --device DEVICE
                        Name of the Heatzy device you wish to control
  -l, --list            List all devices
  -m SETMODE, --setmode SETMODE
                        Sets the mode of the device
python heatzy.py -u login@heatzy.com -p p@ssw0rd -l                        # Lists the devices
python heatzy.py -u login@heatzy.com -p p@ssw0rd -d Bedroom                # Prints the info of the device
python heatzy.py -u login@heatzy.com -p p@ssw0rd -d Bedroom -m ECO         # Sets the device in the bedroom in ECO mode

MQTT Daemon

A MQTT Daemon is included to interact remotely with a MQTT-enabled home automation software (this was created with Home Assistant in mind)

python .\heatzy-mqtt
usage: heatzy-mqtt [-h] [-u USERNAME] [-p PASSWORD] [-s SERVER] [-i PORT]

Controls Heatzy devices throught the CLI

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username on the Heatzy (Gizwits) platform
  -p PASSWORD, --password PASSWORD
                        Password of the user
  -s SERVER, --server SERVER
                        Broker IP or hostname
  -i PORT, --port PORT  Broker MQTT Port (default : 1883)

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

heatzy-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

heatzy-0.0.1-py3.6.egg (9.4 kB view details)

Uploaded Egg

File details

Details for the file heatzy-0.0.1.tar.gz.

File metadata

  • Download URL: heatzy-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for heatzy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a5358cb8df352ccafaf2ef37657361d636e802b015c4645525f84afcda4c755b
MD5 594d1a83d657a1b53d057b6925d8281b
BLAKE2b-256 a6a9d5e88cc97da47b97a9ea5658d91f86bb948c2035692c6b74e5d0d55771a9

See more details on using hashes here.

File details

Details for the file heatzy-0.0.1-py3.6.egg.

File metadata

  • Download URL: heatzy-0.0.1-py3.6.egg
  • Upload date:
  • Size: 9.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for heatzy-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 ad32b4cb82336e29a75084e996f67c0d804e49a04ed5d0476666dfbba4b248e5
MD5 5aeed716b6712e2221e548fff06a409b
BLAKE2b-256 35687a6c7141c2eee49fffd7a08871b185ab25c760aca29da6169068cb47ba76

See more details on using hashes here.

Supported by

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