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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5957e5b1a27466e0bb93e1364cff5f795a9d7fa89bc6b18ef1b06ccf54624938 |
|
MD5 | 7077e06a5a1bbc7090bee8e8e2fd4ec7 |
|
BLAKE2b-256 | 31c86867be658da8893b2e521aa6d9bc477260614d9e936df0abc234bde18b70 |
Close
Hashes for zwave_js_server_python-0.55.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4e7fedaed9ac618ee469f49664a187c9e763da27c414cc339e39ca8367e311 |
|
MD5 | 7d1c39b6836f62d530775b92dfe1470b |
|
BLAKE2b-256 | 248171326ad79f5eaf70cde0d10ab46853b0e46811f7ecd85370a8bcd8a09dce |