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.70.0.tar.gz (86.9 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.70.0-py3-none-any.whl (111.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zwave_js_server_python-0.70.0.tar.gz
Algorithm Hash digest
SHA256 9822926f9a5589f9c1e9b48bf4239c3b8434c9917519d422538cdb3c17367107
MD5 8eb32ac787f5a565de4ddda7e78f03b6
BLAKE2b-256 0ff95f49ccca31836c760b89c54df6bc904d1940d486ae362bcc7af80541520a

See more details on using hashes here.

Provenance

The following attestation bundles were made for zwave_js_server_python-0.70.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.70.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zwave_js_server_python-0.70.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f552d582afa2929e1e5b776576afa805430d991d07b47b62bc4c353f80c64d70
MD5 74b271a666a9a199b92507c0077bbdcf
BLAKE2b-256 7f959e478ca7e56288ec1b46117daf8ae3b090ce77049b43c9d548a05926d210

See more details on using hashes here.

Provenance

The following attestation bundles were made for zwave_js_server_python-0.70.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