tis-smartbus
Async Python client for the TIS Control SmartBus, talking to a TIS IP gateway (IP-COM-PORT / GTY) over UDP on the local network. No cloud, no dependencies.
It powers the TIS Control integration for Home Assistant.
Install
pip install tis-smartbus
Use
import asyncio
from tis_smartbus import TISGateway, CurtainAction, PanelType
async def main():
gw = TISGateway("192.168.1.50") # the IP gateway on your LAN
await gw.connect()
for module in await gw.discover(): # read-only: every module identifies itself
print(module.subnet, module.device, module.device_type.model, module.name)
print(await gw.read_channels(1, 5)) # [100, 0, 40, ...] — levels in %
gw.set_channel(1, 5, 2, 75, ramp_seconds=2)
gw.run_scene(1, 8, area=1, number=3)
gw.curtain(1, 6, 1, CurtainAction.OPEN)
gw.panel(1, 10, PanelType.COOL_SETPOINT, 23)
gw.add_listener(lambda tel: print(hex(tel.opcode), tel.source, tel.content.hex()))
await asyncio.sleep(30) # watch the bus
await gw.close()
asyncio.run(main())
What it covers
| Opcode | |
|---|---|
| Discovery (device type + address, module name) | 0x0004 / 0x000E |
| Single channel (lights, relays), with fade | 0x0031 → 0x0032 |
| Channel status | 0x0033 → 0x0034 |
| Scenes | 0x0002 |
| Curtains | 0xE3E0 |
| AC / floor heating panel control | 0xE3D8 → 0xE3D9 |
| Universal switch | 0xE01C → 0xE01D |
The wire format (datagram header, telegram layout, CRC-16/XMODEM) is documented in
protocol.py. The device-type table maps 250+ TIS module codes to
their model names.
Notes
- The gateway broadcasts replies to UDP port 6000, so
TISGatewaylistens on 6000 by default. Only one program per machine should do that; passbind_port=0for a send-only test. - Commands are fire-and-forget UDP; state comes back as telegrams on the bus.
Development
PYTHONPATH=src python -m unittest discover -s tests -v
License
Apache-2.0 © TIS Control
Metadata
Release files for tis-smartbus 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tis_smartbus-0.1.3.tar.gz | 20.3 kB | With provenance | Details for tis_smartbus-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tis_smartbus-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for tis_smartbus-0.1.3-py3-none-any.whl |
Total release size: 38.9 kB
Release files / tis_smartbus-0.1.3.tar.gz
| Download URL | tis_smartbus-0.1.3.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
350c12a5ee8305c8ced0e372efe37ac138884c372cff7305e835da431cb98e48
|
|
BLAKE2b-256 checksum How to use checksums |
73915d1e507a8cc344344b40626f765d7efb29b59de9e0ae6a4722211ba89651
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / tis_smartbus-0.1.3-py3-none-any.whl
| Download URL | tis_smartbus-0.1.3-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5333bfdc296a70b14be866fa650969eaadae6db74a0220bd289439921362725b
|
|
BLAKE2b-256 checksum How to use checksums |
0d0403b02a0a30a258e73abf955803e197adb5fb17acedb3c020eb064bd124ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logSecurity for tis-smartbus 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tis_smartbus-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.