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

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

# Get the devices dictionary (containing object type HeatzyDevice) associated to your account. The key is the device name
>>> deviceDict = hh.getHeatzyDevices()

# Assigns the device named 'Chambre'
>>> device = deviceDict['Chambre']  
# Gets status
>>> device.status() 
'ECO'
### Sets 'confort' mode 
>>> device.confort()
# Gets status
>>> device.status() 
'CONFORT'
>>> device.off()            # Sets mode to 'off'
>>> device.horsgel()        # Anti-freezing mode
>>> device.eco()            # Sets 'ECO' mode
>>> device.setMode('ECO')   # Different way to set 'ECO' mode

CLI

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

heatzy-cli
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
heatzy-cli -u login@heatzy.com -p p@ssw0rd -l                        # Lists the devices
heatzy-cli -u login@heatzy.com -p p@ssw0rd -d Bedroom                # Prints the info of the device
heatzy-cli -u login@heatzy.com -p p@ssw0rd -d Bedroom -m ECO         # Sets the device in the bedroom in ECO mode

HASS Integration

An optional component is available under opt/homeassistant. Put it in your '/custom_components/climate' directory, and edit your configuration.yaml file.

# Heatzy
climate:
  - platform: heatzy
    username: 'bidon@bidon.com'
    password: 'p@ssw0rd'

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

Uploaded Source

File details

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

File metadata

  • Download URL: heatzy-0.0.11.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for heatzy-0.0.11.tar.gz
Algorithm Hash digest
SHA256 3c16ee659058fd9e9ba75349e37828e44a4cc2de8a4d461adc0087c846b6fbae
MD5 0f14814ffd2d33700795a35dba386851
BLAKE2b-256 dc09a3b5b995dfd7386a34691175b339aff3d3092532124f8bbdc2a1ea590628

See more details on using hashes here.

Supported by

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