Skip to main content

inelnet-api

Async client library for the INELNET blinds controller REST API. One object represents one channel (host + channel number).

Installation

pip install inelnet-api

Usage

Create one InelnetChannel instance per channel (host + positive channel number):

import asyncio
from inelnet_api import Action, InelnetChannel

async def main():
    channel = InelnetChannel(host="192.168.1.67", channel=1)

    # Check controller availability
    ok = await channel.ping()
    if not ok:
        print("Controller unavailable")
        return

    # Move: open / close / stop
    await channel.up()
    await channel.down()
    await channel.stop()

    # Short move and programming mode
    await channel.up_short()
    await channel.down_short()
    await channel.program()

    # Optional: custom session (e.g. from Home Assistant)
    # await channel.send_command(Action.UP_SHORT, session=hass_session)
    # await channel.up(session=hass_session)

asyncio.run(main())

API

  • InelnetChannel(host: str, channel: int) – channel must be >= 1.
  • send_command(act, *, session=None, timeout=...) – send a command; act is an Action enum member (e.g. Action.UP, Action.DOWN, Action.STOP) or an integer.
  • ping(*, session=None, timeout=...) – GET to the controller, returns True if reachable.
  • up(), down(), stop(), up_short(), down_short(), program() – convenience methods (optional session=).

If you do not pass session, the library creates a temporary aiohttp.ClientSession() per call. In environments like Home Assistant you can pass async_get_clientsession(hass) for a shared HTTP client session.

Publishing to PyPI (for maintainers)

# One-time
pip install build twine

# Build
python3 -m build

# Upload to PyPI (requires account and token)
twine upload dist/*
# or test PyPI only:
twine upload --repository testpypi dist/*

After code changes, update version in pyproject.toml and inelnet_api/__init__.py, then run python3 -m build and twine upload dist/* again. Versions published on PyPI should match tagged releases (e.g. tag v1.0.0 for version 1.0.0).

Development / Testing with Home Assistant

To try the library inside Home Assistant before publishing to PyPI (e.g. from the same repo):

  1. In your Home Assistant dev environment, activate the virtual environment and install the library in editable mode:

    pip3 install -e /path/to/ha_inelnet
    
  2. Run Home Assistant without installing the package from PyPI (so your local code is used):

    hass --skip-pip-packages inelnet_api
    

See Building a Python library for an API for more.

Metadata

Release files for inelnet-api 1.0.1

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

Source distribution (sdist)

Source distribution for inelnet-api 1.0.1
File Size Uploaded Provenance Actions
inelnet_api-1.0.1.tar.gz 12.4 kB Without provenance Details for inelnet_api-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inelnet-api 1.0.1
File Interpreter ABI Platform Actions
inelnet_api-1.0.1-py3-none-any.whl Python 3 none any Details for inelnet_api-1.0.1-py3-none-any.whl

Total release size: 20.9 kB

Release files / inelnet_api-1.0.1.tar.gz

Download URL inelnet_api-1.0.1.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
16e279eb35cf46975b8d3f7002b593fb2f7181ac0f04eff27d7d7fe8cf13b9ea
BLAKE2b-256 checksum
How to use checksums
2fd39cba049c8448fca184b58ea81937b2b59f36a230247abaea0c95f18ebff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / inelnet_api-1.0.1-py3-none-any.whl

Download URL inelnet_api-1.0.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bb21581fdfa2eb92fad0a7648eb0d1ba885de653703e04020f55217f5d0125c
BLAKE2b-256 checksum
How to use checksums
cd4c9cc629aefd3b792e5363cee0cfe37b332a6d73319be3808eeb5fe85e8745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for inelnet-api 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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