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)

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.3.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.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termoweb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6902b40df5ac822e2af634b42ac2a67ca37362c73a3b1c5eb5bc5f9f448e456e
MD5 bf48167a154fe50f5ee66a57247e2444
BLAKE2b-256 7f8bae842715427c3c48378c0bdfc38554a42c5c82b4bf28ff5a66cd121166d8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for termoweb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de0f24850bba4ee60d43998731feaffc80b9a4ecff7ac3a4a4762e93037ca944
MD5 aa62d67a65ace16416922282abfd56d7
BLAKE2b-256 a44f164013545b81498b6b87f52059a90cd9e57a9925e9995d258cb992480d9c

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