Skip to main content

Python client library for controlling Termo thermostats via web interface

Project description

Termoweb

Python client library for controlling Termo thermostats via web interface.

Installation

pip install termoweb

Usage

from termoweb import Termoweb

# Initialize client with your credentials
client = Termoweb(email="your_email@example.com", password="your_password")

# Connect to the service
client.connect()

# Get all heaters/radiators
heaters = client.get_devices()
print(heaters)

# Set heater temperature and mode
client.set_heater(heater_id=1, mode="heat", target_temp=21.5)

Features

  • Authentication: Secure login with email/password
  • Device Discovery: Automatically discover connected heating devices
  • Temperature Control: Get and set target temperatures
  • Mode Control: Switch between heating modes
  • Real-time Data: Access current room temperature and settings

API Reference

Termoweb(email, password)

Initialize the client with your Termoweb credentials.

connect()

Authenticate and establish connection to the Termoweb service.

get_devices()

Returns a dictionary of all connected heaters with their current settings:

{
    1: {
        "name": "Living Room",
        "mode": "heat",
        "target_temp": 21.0,
        "room_temp": 20.5
    }
}

set_heater(heater_id, mode, target_temp)

Set the mode and target temperature for a specific heater.

Exception Handling

The library includes custom exceptions:

  • TermowebError: Base exception
  • AuthenticationError: Authentication failures
  • APIError: API request failures

Supported Devices

Device Type Supported
Heaters/Radiators
Thermostats
Power Monitors

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

termoweb-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

termoweb-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file termoweb-0.1.1.tar.gz.

File metadata

  • Download URL: termoweb-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.23

File hashes

Hashes for termoweb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 415f438e0e2f8da71aa6f322ca28bacf1b555e48b9bc1f66495f0279f58196d2
MD5 fa37218084eec9eb42cec3bbdec8e403
BLAKE2b-256 562a8adfb3426809a7feb93152f97396430ce9135352167196dafdf8a98a6ee4

See more details on using hashes here.

File details

Details for the file termoweb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: termoweb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.23

File hashes

Hashes for termoweb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d919fbe874458c6acf477234110b425379b9da569eb87e7adb58762f02130599
MD5 9e3956bef1a5939974559a0b2a78ec4c
BLAKE2b-256 92a7048552e470c15c74ac33b022553dbab762cfbe43ea169c97a7fe55d8aa0d

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