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

login() is optional (since 0.1.2): the client establishes a session automatically on the first request. Call it explicitly only when you want to validate credentials up front — it raises AuthError on a bad username/password.

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 establishes its session on first use and transparently re-logs in and retries once when the session token later expires (server codes E010/E011/E013). 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.2.tar.gz (9.4 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.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wisehouse_client-0.1.2.tar.gz
  • Upload date:
  • Size: 9.4 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.2.tar.gz
Algorithm Hash digest
SHA256 61df58ce57825382fcde0f4f41306895ca469c13d4f693f208192a8fc3151314
MD5 3c7feb38bad86d4554b72827f1a1efc3
BLAKE2b-256 a8909a911b924d3d579d8557af87abead37c472cd9f790469692a8325b344116

See more details on using hashes here.

Provenance

The following attestation bundles were made for wisehouse_client-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for wisehouse_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2986904b18a87286ff48a5330f8da48f0d445f7dde207a817af5a69d4c167912
MD5 0a4f30b066cd20f15ed0c42f9b42f9ce
BLAKE2b-256 7c4628404d718f9a92b0656832b79dea39951eb683ec2a74d96c675da3ff7dc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for wisehouse_client-0.1.2-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