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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termoweb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a07042753d48f8f497f2eaef995816543ac869b3fc213a6e4352ccbdbfb7a607
MD5 58a81a7d34dd7dcfb72e8c5286efb316
BLAKE2b-256 31bc23933b0f7f3a0ee2fb8227cd7ba028158a7222153fd6bf983ed0b9a9af79

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for termoweb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c70a3223f845279cc96285354efc3c8730701c37419efe12ba723d7d7fa7c62
MD5 3fa9f092c1a074ed1049d93722453a69
BLAKE2b-256 cf9cce11270e1f0a16fa8188a69d2486c37f9fc034181dfe43e95479fe1e60e7

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