Skip to main content

Query Hargassner equipment information through their Web API

Project description

Hargassner API

This Python module enables you to query information about your Hargassner devices from their Web portal.

Your device must be connected to the Web portal of Hargassner (https://web.hargassner.at). To use the module, you will need access to the following information:

Information Description
Username This is your username that you use to log into the web portal.
Password This is your password that you use to log into the web portal.
Client Secret The client secret is a cryptographic key derived from your login information. It can be found in the developer tools from your browser while navigating the web portal. Look for a POST request "login" and inspect the JSON information that is sent to the Hargassner server. It will contain your username, password and the client secret.
Installation ID This is the ID of your installation. You can find it in the address bar of your browser when you navigate through the web portal (https://web.hargassner.at/installations/-/info).

Usage/Examples

from hargassner.client import HargassnerAPI

# MAIN
if __name__ == "__main__":
    h = HargassnerAPI()
    h.username = '<your Hargassner username>'
    h.password = '<your Hargassner password>'
    h.client_secret = '<your client secret from Hargassner web'
    h.installation = '<your Hargassner installation ID>'
    h.authdat = 'auth.dat'
    h.debug = True
    j = h.query_api()

    if 'data' in j:
        for w in j['data']:
            if w['widget'] == 'EVENTS':
                for e in w['values']:
                    print('Ereignis: ' +e['created_at'] + " -> "+ e['text'])
            elif w['widget'] == 'HEATER':
                print('Name:' + w['values']['name'])
                print('State:' + w['values']['state'])
                print('Abgastemperatur: ' + str(w['values']['smoke_temperature']))
                print('Kesseltemperatur: ' + str(w['values']['heater_temperature_current']))
                print('Aussentemperatur: ' + str(w['values']['outdoor_temperature']))
            elif w['widget'] == 'BUFFER':
                print('Puffer Füllgrad: ' + str(w['values']['buffer_charge']))
                print('Puffer Temperatur Oben: ' + str(w['values']['buffer_temperature_top']))
                print('Puffer Temperatur Mitte: ' + str(w['values']['buffer_temperature_center']))
                print('Puffer Temperatur Unten: ' + str(w['values']['buffer_temperature_bottom']))
    else:
        print("PROBLEM")

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

hargassner-1.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hargassner-1.0.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file hargassner-1.0.4.tar.gz.

File metadata

  • Download URL: hargassner-1.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for hargassner-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0fd2dceab19761a9ccc6e51482e1efb72ebfd1cc4aa4e3f4d793bd4382450347
MD5 19fb1fd76e9071bdd03fa38d1ca27d41
BLAKE2b-256 6e5cf5756648d9e33a40793992b66398fe79363eb30f0fe31bfcbe71d0c05035

See more details on using hashes here.

File details

Details for the file hargassner-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: hargassner-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for hargassner-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 67991ee9f69037bc60229aefec502a9f15882f2f6b527f4a3df1740fea8a6815
MD5 7b045ec6f56f6111b92b6dce2b2a987c
BLAKE2b-256 bdb5e06479d74e63b7d35b9a11c0047d6adb46ad936b44d9fed9ba193a89b200

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