Skip to main content

Sensio Library

AI: Assisted

A minimal async library to control Sensio (EOPT Home) smart house systems. Designed for easy integration with Home Assistant.

Features (v1.3.0)

  • Unity and HA pilot — Supports getting devices from both unity and ha-pilot
  • Local control & live state feedback — Sends commands directly to your controller on the LAN and listens to its RSN event stream for real-time state updates (including changes from physical wall switches)
  • Automatic reconnect — Automatically reconnects with exponential backoff if the connection to the controller drops
  • Hub validation — Verifies hub identity (serial, firmware, MAC, product ID) upon connection
  • Cloud API — Fetch device configuration from the EOPT cloud (one-time setup)
  • Lights — Turn individual relay lights on/off with live state tracking
  • Dimmers — Set brightness (0–100%) and turn dimmers on/off (restoring previous brightness), with live brightness feedback
  • Zones (Rooms) — Resolves human-readable zone names and exposes zone_name on all devices
  • Scenes — Activate house-level lighting scenes

Architecture

The library separates cloud access from local control:

  • SensioApi — Authenticates with the Sensio cloud and fetches device data. Used once during setup; the result can be cached.
  • Hub — Connects to your local controller and sends commands. Works entirely offline using cached device data.

Quick Start

First-time setup (fetch device data from cloud)

from sensio_lib import SensioApi

async with SensioApi(username, password) as api:
    projects = await api.login()
    project_id = next(iter(projects.values()))
    functions_data = await api.get_devices(project_id)
    # Cache functions_data for future use

Local control (from cached data)

from sensio_lib import Hub

async with Hub("192.168.1.100") as hub:
    await hub.connect(cached_functions_data)

    for light in hub.get_lights():
        await light.turn_on()

    for scene in hub.get_scenes():
        await scene.activate()

Device Support

This library has been tested with a Sensio X1 controller. Testing is limited, so your experience may vary.

Requirements

  • Python 3.10+
  • aiohttp

Testing

Example script reads env params for sensitive data and does not store anything. Example for launching it and testing:

SENSIO_USERNAME="your user name / email" SENSIO_PASSWORD="your password" SENSIO_HUB_IP="your hub IP" python example.py

You can also optionally specify SENSIO_ENV to target a different cloud environment (defaults to unity, can also be ha-pilot):

SENSIO_ENV="ha-pilot" SENSIO_USERNAME="your user name / email" SENSIO_PASSWORD="your password" SENSIO_HUB_IP="your hub IP" python example.py

Metadata

Release files for sensio-lib 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sensio-lib 1.3.0
File Size Uploaded Provenance Actions
sensio_lib-1.3.0.tar.gz 24.0 kB With provenance Details for sensio_lib-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sensio-lib 1.3.0
File Interpreter ABI Platform Actions
sensio_lib-1.3.0-py3-none-any.whl Python 3 none any Details for sensio_lib-1.3.0-py3-none-any.whl

Total release size: 41.4 kB

Release files / sensio_lib-1.3.0.tar.gz

Download URL sensio_lib-1.3.0.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e6ee2b27fce99a8ec4428cb9c6577298ee3462c4e85216009f0cfe54ff0aa0e3
BLAKE2b-256 checksum
How to use checksums
8753e49da84607db84bf5bf383b4067e135a1a2f669b739f1ef650f2a951cf79
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 19, 2026.

Transparency log

Release files / sensio_lib-1.3.0-py3-none-any.whl

Download URL sensio_lib-1.3.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
367ea8e38b6e72a9c5078f41811444b6b792f9a31ba34d1634f5e299c508c94e
BLAKE2b-256 checksum
How to use checksums
31f7d0a1ce7c7934c715bd6a4513a537212bdd9a3df52080f2ec1370e6454b5b
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 19, 2026.

Transparency log

Security for sensio-lib 1.3.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sensio_lib-1.3.0.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 19, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page