Python library to interact with a Z-Wave JS server.
Go to file
dependabot[bot] 36e4d064e2
Bump codecov/codecov-action from 5.1.1 to 5.1.2 (#1141)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 15:42:22 +01:00
.devcontainer Bump python version to 3.12 (#975) 2024-05-15 13:49:34 -04:00
.github Bump codecov/codecov-action from 5.1.1 to 5.1.2 (#1141) 2024-12-19 15:42:22 +01:00
scripts Update const generation scripts based on zwave-js 13 (#1079) 2024-10-04 07:54:49 +02:00
test Support `controller.cancel_secure_bootstrap_s2` (#1122) 2024-11-21 11:28:35 +01:00
zwave_js_server Bump version to 0.60.0 (#1128) 2024-11-27 16:25:34 +01:00
.coveragerc Refactor constants (#281) 2021-08-27 11:20:07 +02:00
.gitignore Update const generation scripts based on zwave-js 13 (#1079) 2024-10-04 07:54:49 +02:00
.pre-commit-config.yaml Bump ruff from 0.5.7 to 0.6.3 (#1047) 2024-09-06 16:21:05 +02:00
LICENSE Initial commit 2021-01-05 10:53:45 -05:00
MANIFEST.in Switch to pyproject.toml (#816) 2023-11-14 09:42:23 -05:00
README.md Revert "Add orjson support (#815)" (#856) 2023-12-27 19:46:11 +01:00
codecov.yml Fix codecov.yml coverage.status.project.threshold (#817) 2023-11-15 12:59:26 +01:00
package.json Update const generation scripts based on zwave-js 13 (#1079) 2024-10-04 07:54:49 +02:00
pyproject.toml Bump pylint from 3.2.7 to 3.3.0 (#1071) 2024-09-29 11:45:55 -04:00
requirements.txt Bump aiohttp from 3.11.9 to 3.11.10 (#1135) 2024-12-09 17:20:28 +01:00
requirements_dev.txt Bump tox from 4.23.0 to 4.23.2 (#1106) 2024-10-29 11:58:01 +01:00
requirements_lint.txt Bump ruff from 0.8.2 to 0.8.3 (#1139) 2024-12-16 17:23:46 +01:00
requirements_scripts.txt Bump colorlog from 6.8.2 to 6.9.0 (#1111) 2024-11-04 16:23:38 +01:00
requirements_test.txt Bump pytest from 8.3.3 to 8.3.4 (#1130) 2024-12-03 11:15:12 +01:00
tox.ini Bump python version to 3.12 (#975) 2024-05-15 13:49:34 -04:00

README.md

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)