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.45.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 146616f7b21245b6de33c51ce1af0b3263ad2a0164966a16e23fc34201b5d72c |
|
MD5 | a967787cef7fe306bc2f543aac306587 |
|
BLAKE2b-256 | 87c957eccee47ec416d83eb0665a92ebe0abc2cc9e3d6e0ffea5a799694d99b5 |
Close
Hashes for zwave_js_server_python-0.45.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 887da1b3bd4524e2f8d624e17f38a51d72f9776f1907f90cf756008e2ecf22ea |
|
MD5 | fe12f3cdd70ac1b52a19aa9457a04bca |
|
BLAKE2b-256 | b1536c767d7861160742a3abc95c348793a0a96315d97a8e32b638deefae90e0 |