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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3e4020244628d228bc2da5bca7640646e6b1b5aac14c9aef1d9426ea9ea904 |
|
MD5 | be447f666d5df94ed3fde9820d45b384 |
|
BLAKE2b-256 | 0fb99a5abd90a58bcd268f37931600d6266b55eae1d85391ccf767735b5a3605 |
Close
Hashes for zwave_js_server_python-0.35.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 094262c6cee940d8c06bce38fc86b0e11b0649bffe8893e91bbaf2ed72194339 |
|
MD5 | ea36873c0f40a8d92b4993d850997c05 |
|
BLAKE2b-256 | 84763e974e328247195edb27a0309068e0d7e18eb107aff9a51d671a28ae5e6d |