Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 607 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 607 Bytes

Python library for T-Smart smart thermostats

This library provides access to T-Smart smart thermostats, and supports the Home Assistant integration for these devices.

from tsmart import TSmart
import asyncio

async def find_devices():
    devices = await TSmart.async_discover()
    print("Found %d devices" % len(devices))
    for device in devices:
        await device.async_get_status()
        print("Thermostat: %s" % device.name)
        print("Temperature: %.1f°C" % device.temperature)

asyncio.run(find_devices())