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
File details
Details for the file zwave_js_server_python-0.59.0.tar.gz
.
File metadata
- Download URL: zwave_js_server_python-0.59.0.tar.gz
- Upload date:
- Size: 85.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b761b0525a531375ff1fa7ed275d5b601eb5ce50288f27859d93612bebfd550 |
|
MD5 | 7e697e9b9d01264ad5a9b86842cadd2c |
|
BLAKE2b-256 | f04f5dc13f08661979a7ac439ac5f895475197eeaa815fb7eaf816178e06d06c |
File details
Details for the file zwave_js_server_python-0.59.0-py3-none-any.whl
.
File metadata
- Download URL: zwave_js_server_python-0.59.0-py3-none-any.whl
- Upload date:
- Size: 107.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b28ac5510124ded509a55b0fec1ab1e22fcfcad64f932f2faf0215e0e26094 |
|
MD5 | ee5dba624015318f5e28670be99898f2 |
|
BLAKE2b-256 | 23ee60fc2dab87ad223d05a95f0546d0966a99110468493a67e223b52dcbcffc |