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.47.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97d809a2e801e45e86197c4d9e4183765059dd7fbb35c3dca02350c8536a02d |
|
MD5 | 314be85a7e4d7f2b774118a10319646e |
|
BLAKE2b-256 | 9caa8852cf2ab1d9f4e75c5209b07b58b79fd951fe2801bdc21ec4c37335536c |
Close
Hashes for zwave_js_server_python-0.47.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cdde747796b0d9d22f289d4b6515d99934c5d4a1c9f2ad9c938b02d040dc58a |
|
MD5 | 456b57e2fdd002d86b382c2d1897f421 |
|
BLAKE2b-256 | 43ff631e146cd937f4cb938ead585182aa0772cf305a1600d648f6a6f112d3bb |