Skip to content

python-bsblan

Asynchronous Python client for BSB-LAN devices.

Features

  • Async/await support using aiohttp
  • Read heating state, sensor data, and device information
  • Control thermostat settings and hot water parameters
  • Fully typed with PEP 561 support
  • Automatic API version detection (v1/v3)
  • Lazy loading with per-section validation

Quick example

import asyncio
from bsblan import BSBLAN, BSBLANConfig

async def main() -> None:
    config = BSBLANConfig(host="192.168.1.100")
    async with BSBLAN(config) as client:
        state = await client.state()
        print(f"Current temperature: {state.current_temperature.value}")

asyncio.run(main())