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)
Optional dependencies
zwave-js-server-python
optionally supports orjson
which can be installed with the orjson
extra (e.g. pip install zwave-js-server-python[orjson]
)
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
Built Distribution
Close
Hashes for zwave-js-server-python-0.55.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 578289f503a09ecbff2813b3c000710037baf70166b2771542ca2e8c83d4f6aa |
|
MD5 | b844011a5d8f9ebd3924ae39ebef7c79 |
|
BLAKE2b-256 | 25fc6d6ee07028e2245fc79382fe55a2347b6d0c70e5e3991a8985556227fa9c |
Close
Hashes for zwave_js_server_python-0.55.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3658d00d1f5a2676e1339b900ae5432ee9fe8951679c5457e113bfcf806e814b |
|
MD5 | af370f6ca1e01d3e68f014b189fa2a44 |
|
BLAKE2b-256 | 225cb1b0833babb8d53666c9c43ec90974d2fe416d80bcbd9c8db924448977cf |