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)
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.54.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f3fbbf4feb1af8a8a3fbc96e02865f9f82f41b111e867a3b16354d69aca7ba |
|
MD5 | aa9396f10ec88828e1d6c69491ea9817 |
|
BLAKE2b-256 | a74499377f51b6f4e68e75497d3e5d0182c09dadac29a4bfb6877a553df5af7d |
Close
Hashes for zwave_js_server_python-0.54.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb1dde5964a10b2c4367dfeae34b22b4f59306a08ccc030b4d24efa4a2eed94 |
|
MD5 | ca8a0c0e5009bcf7c354766c2c08e3db |
|
BLAKE2b-256 | 21cf28207cbc7d31ccb4298ff14b413da9fbcfc8a2a2b3b0c7dac6107245b2b8 |