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.
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
Built Distribution
Close
Hashes for zwave-js-server-python-0.35.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e46bcfd36f1e8d340ab57ce055dc9bd771f179e894a950d309a07767ddc4c4dd |
|
MD5 | f354d20e1095b21d0f49706a7e09a2cd |
|
BLAKE2b-256 | 6163734e82cc2f07ba0548a462133ed65bd686ff0933c6d7f280843b84a3fcba |
Close
Hashes for zwave_js_server_python-0.35.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9d4b0094682a97733775b86aea999b9e29e8f1b279b60e0b7556c20c313ba8 |
|
MD5 | d07879732c9db45fd98905fc20a5488b |
|
BLAKE2b-256 | cd1782d22ca7611fd7bbe5fbb05f9ce7021329d43f53079e3b6a8c53e3f7c2cf |