Skip to main content

A Python API for Thermia heat pumps using https://online.thermia.se

Project description

Thermia Online API

A Python API for Thermia heat pumps using https://online.thermia.se

Confirmed Thermia profiles that API supports:

  • Thermia Diplomat / Diplomat Duo
  • Thermia iTec

Confirmed Thermia models that API supports:

  • Danfoss DHP-AQ 9

Supported APIs:

How to use api:

See example.py file

Available functions in Thermia class:

Function Description
fetch_heat_pumps Fetches all heat pumps from Thermia Online API and their data
update_data Updates all heat pump data

Available properties within ThermiaHeatPump class:

Property Description
name Name of the Heat Pump
id Unique ID of the Heat Pump Thermia generates
is_online Boolean value indicating if the Heat Pump is online or not
model Model of the Heat Pump
last_online DateTime string indicating the last time the Heat Pump was online
has_indoor_temperature_sensor Boolean value indicating if the Heat Pump has an indoor temperature sensor
indoor_temperature Indoor temperature in Celsius, if has_indoor_temperature_sensor is False, this value is the same as heat_temperature
is_outdoor_temp_sensor_functioning Boolean value indicating if the Heat Pump has an outdoor temperature sensor
outdoor_temperature Outdoor temperature in Celsius
is_hot_water_active Boolean value indicating if the Heat Pump is heating water
hot_water_temperature Hot water temperature in Celsius
heat_temperature Heat Pump heating target temperature in Celsius
heat_min_temperature_value Minimum temperature value possible for Heat Pump to set
heat_max_temperature_value Maximum temperature value possible for Heat Pump to set
heat_temperature_step Step value for temperature setting
operation_mode Current operation mode of the Heat Pump
available_operation_modes List of available operation modes for the Heat Pump
available_operation_mode_map Dictionary mapping operation mode names to their values
is_operation_mode_read_only Boolean value indicating if the Heat Pump operation mode is read-only
is_hot_water_switch_available Boolean value indicating if the Heat Pump has a hot water switch
active_alarm_count Number of active alarms on the Heat Pump
active_alarms List of titles of active alarms on the Heat Pump

Available functions within ThermiaHeatPump class:

Function Description
update_data Refetch all data from Thermia for Heat Pump
set_temperature Set the target temperature for the Heat Pump
set_operation_mode Set the operation mode for the Heat Pump
set_hot_water_switch_state Set the hot water switch state to 0 (off) or 1 (on) for the Heat Pump

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

ThermiaOnlineAPI-2.7.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

ThermiaOnlineAPI-2.7-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file ThermiaOnlineAPI-2.7.tar.gz.

File metadata

  • Download URL: ThermiaOnlineAPI-2.7.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for ThermiaOnlineAPI-2.7.tar.gz
Algorithm Hash digest
SHA256 705e483066db02b5ade6733fefbd5d36793ef4f88272f4622e92c9b55fda721f
MD5 18c9ec599ca670f0f17b0f421e4c145c
BLAKE2b-256 b00b791131a10b9479e82662b7c3afdc4029b471e2238dad647adfc03235c8e3

See more details on using hashes here.

File details

Details for the file ThermiaOnlineAPI-2.7-py3-none-any.whl.

File metadata

  • Download URL: ThermiaOnlineAPI-2.7-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for ThermiaOnlineAPI-2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c2cd65bff67ed6142baf2c02ad9857d35e939db5d1d57540689cd985b6e79ba3
MD5 72ca5ed03c4234e8a392e52af6b347ed
BLAKE2b-256 fe5795cb00213e6717ad603baf7b351ff4d37eba21e433ea44ef920501ee9d8f

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