Skip to content

home-assistant-libs/zwave-js-server-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e60b1a1 · Mar 5, 2025
May 15, 2024
Mar 4, 2025
Oct 4, 2024
Mar 4, 2025
Mar 5, 2025
Aug 27, 2021
Oct 4, 2024
Sep 6, 2024
Jan 5, 2021
Nov 14, 2023
Dec 27, 2023
Nov 15, 2023
Oct 4, 2024
Sep 29, 2024
Mar 3, 2025
Jan 27, 2025
Mar 3, 2025
Nov 4, 2024
Mar 3, 2025
May 15, 2024

Repository files navigation

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)