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.65.0.tar.gz (81.2 kB view details)

Uploaded Source

Built Distribution

zwave_js_server_python-0.65.0-py3-none-any.whl (104.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zwave_js_server_python-0.65.0.tar.gz
  • Upload date:
  • Size: 81.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for zwave_js_server_python-0.65.0.tar.gz
Algorithm Hash digest
SHA256 ba23ceca3396adbce7ee087916f5dfd45d7c60851462275813c38584732d5259
MD5 e36392c0f93586956d6c7c42211e1066
BLAKE2b-256 03ee5cf2eb9e21c9de78a6df03e73d95c992056dc60f00d22ce58e33c5eb3a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zwave_js_server_python-0.65.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd91a1f643c6d3ac2faa79226946139b6aeed5b6237e03cdc94e1b7b1dce20a9
MD5 3838b60eeb560698e9100f278616c11e
BLAKE2b-256 3ca911a3356f997e18b29f4a3306d219607fdb94e05d75e6a4b661c0d170f776

See more details on using hashes here.

Supported by

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