Skip to main content

Python wrapper for zwave-js-server

Project description

zwave-js-server-python

Python library for communicating with zwave-js-server. Goal for this library is to replicate the structure and the events of Z-Wave JS 1:1. So it has a Driver, Controller and Node classes.

Setup development environment

To setup your development environment, run scripts/setup, which will install all requirements and set up pre-commit checks.

Trying it out

python3 -m zwave_js_server ws://localhost:3000

Or get the version of the server

python3 -m zwave_js_server ws://localhost:3000 --server-version

Or dump the state. Optionally add --event-timeout 5 if you want to listen 5 seconds extra for events.

python3 -m zwave_js_server ws://localhost:3000 --dump-state

Sending commands

try:
    result = await client.async_send_command({ "command": "start_listening" })
except zwave_js_server.client.FailedCommand as err:
    print("Command failed with", err.error_code)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

zwave_js_server_python-0.69.0.tar.gz (83.0 kB view details)

Uploaded Source

Built Distribution

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

zwave_js_server_python-0.69.0-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file zwave_js_server_python-0.69.0.tar.gz.

File metadata

  • Download URL: zwave_js_server_python-0.69.0.tar.gz
  • Upload date:
  • Size: 83.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zwave_js_server_python-0.69.0.tar.gz
Algorithm Hash digest
SHA256 df5b1678a91804ea2a5d2190e7bbdbbd607e12707ae18b36e9e1ace7264354f9
MD5 68d5408052f56b769cd764bbdc679807
BLAKE2b-256 fa62f8c7468e90e6c0f5685820807f323ffb6a0df54d8d377625a87fb36bbb8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for zwave_js_server_python-0.69.0.tar.gz:

Publisher: publish-to-pypi.yml on home-assistant-libs/zwave-js-server-python

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

File details

Details for the file zwave_js_server_python-0.69.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zwave_js_server_python-0.69.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef88278347cb77df019616c862d6ea09ebfe1c5437fb68756676eac52808a5f
MD5 88703f7ac83907ae4aed299cbdd04953
BLAKE2b-256 be98bea4031d243fd0af272c1a77d5cdafa506caaaf5908d43940270836bd649

See more details on using hashes here.

Provenance

The following attestation bundles were made for zwave_js_server_python-0.69.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on home-assistant-libs/zwave-js-server-python

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