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.5.tar.gz (4.2 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.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hargassner-1.0.5.tar.gz
  • Upload date:
  • Size: 4.2 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.5.tar.gz
Algorithm Hash digest
SHA256 36036ca6237ade58e109c4fd65386c7bff96fb121ddb08eda0e395e26a466dda
MD5 67f8a413890c7c814e8880c7b4dd52f9
BLAKE2b-256 a4beb3f5b1cb482d39156fb352924c44269096fe6179ae463f4bdc147b1a0dbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hargassner-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b468b9ec8ec7a930ce451cdec59c5785891d20e17312e9605a28dbb11c5062b6
MD5 7414c7fb002473854b26697a24cd99cf
BLAKE2b-256 93a6009f154f0967fa988f4d02ac943e7aa4dcf8ca0f57417cf276debe5c0696

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