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.54.0.tar.gz (82.8 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.54.0-py3-none-any.whl (100.6 kB view details)

Uploaded Python 3

File details

Details for the file zwave-js-server-python-0.54.0.tar.gz.

File metadata

  • Download URL: zwave-js-server-python-0.54.0.tar.gz
  • Upload date:
  • Size: 82.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for zwave-js-server-python-0.54.0.tar.gz
Algorithm Hash digest
SHA256 81f3fbbf4feb1af8a8a3fbc96e02865f9f82f41b111e867a3b16354d69aca7ba
MD5 aa9396f10ec88828e1d6c69491ea9817
BLAKE2b-256 a74499377f51b6f4e68e75497d3e5d0182c09dadac29a4bfb6877a553df5af7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zwave_js_server_python-0.54.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb1dde5964a10b2c4367dfeae34b22b4f59306a08ccc030b4d24efa4a2eed94
MD5 ca8a0c0e5009bcf7c354766c2c08e3db
BLAKE2b-256 21cf28207cbc7d31ccb4298ff14b413da9fbcfc8a2a2b3b0c7dac6107245b2b8

See more details on using hashes here.

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