Skip to main content

Unofficial client for the WiseHouse building-management API. Not affiliated with, endorsed by, or supported by WiseHouse / Neware.

Project description

wisehouse-client

Unofficial. Not affiliated with, endorsed by, or supported by WiseHouse / Neware.

Python client for the WiseHouse building-management API: doors, facility bookings, and info pages. Built for a separate Home Assistant integration, but works standalone too.

Install

uv add wisehouse-client
# or: pip install wisehouse-client

The .env/load_credentials convenience needs the optional dotenv extra:

uv add "wisehouse-client[dotenv]"

Usage

from wisehouse_client import WisehouseClient, Credentials

client = WisehouseClient(Credentials(username="...", password="...", brf="your-brf"))
client.login()
for door in client.list_available_doors():
    print(door.door_id, door.name)

The API base is per-association: https://<brf>.wisehouse.se/.

Async

AsyncWisehouseClient mirrors the sync API with await and accepts an optional httpx.AsyncClient (e.g. Home Assistant's shared client). A client it creates itself is closed on aclose() / async with; an injected one is left open.

from wisehouse_client import AsyncWisehouseClient, Credentials

async with AsyncWisehouseClient(creds) as client:
    await client.login()
    doors = await client.list_available_doors()

The client transparently re-logs in and retries once when the session token expires. The side-effecting methods (open_door, make_booking, remove_booking, infopage_vote) act on the real building system, so call them deliberately.

Development

uv sync
uv run pytest

Tests run offline via httpx.MockTransport and recorded fixtures.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wisehouse_client-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wisehouse_client-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file wisehouse_client-0.1.0.tar.gz.

File metadata

  • Download URL: wisehouse_client-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wisehouse_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c4992bc797595c8c7986ebdfbad30263d743441a61acaa0c46b59f2a156d79b
MD5 f88e2e8d90e5671e7b32aff3f8c5b7ef
BLAKE2b-256 524c6e57aaa7557abc15a9dc5be164276838fb24ece89629333318506c99e732

See more details on using hashes here.

Provenance

The following attestation bundles were made for wisehouse_client-0.1.0.tar.gz:

Publisher: release.yml on hbogaeus/wisehouse-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wisehouse_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wisehouse_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e03d2735ca5aa91460d6eaa755021b19674e2f2eabc5804993e672ab59ca6091
MD5 c8e445aab07c7fa5887bcbe4eaff63f0
BLAKE2b-256 acda6c79215a483acb3853ac01bb37a9a2c70e49367e09ab42585af73095d456

See more details on using hashes here.

Provenance

The following attestation bundles were made for wisehouse_client-0.1.0-py3-none-any.whl:

Publisher: release.yml on hbogaeus/wisehouse-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page