Checkout the code and open a terminal at the root of the project. Then run the following commands:
script/setup
script/run
Open another terminal at the root of the project and run the following command:
script/run_client
To start the server modify the content of the start_network.json
file in the examples directory to match your radio and paste it as a single line into the console and press return / enter
to stop the server paste the content of the stop_network.json
file into the prompt in the console as a single line and press return / enter
- install the SSH & Web Terminal addon
- turn off protection mode
- Open the web UI for the addon
- execute this command:
docker exec -it hassio_supervisor bash
- execute this command:
cp /usr/src/supervisor/supervisor/discovery/services/zwave_js.py /usr/src/supervisor/supervisor/discovery/services/zhaws.py
- exit the web terminal
- install the samba addon
- connect to the share for your installation
- copy the
zhaws
folder from this repo: https://github.com/zigpy/zhaws-addon.git to the addons directory on your test device - copy the
zhaws
(homeassistant/components/zhaws) directory from this repo: https://github.com/dmulcahey/home-assistant/tree/dm/zha-ws to custom components on the test device (config/custom_components) - create the custom_components directory if it doesn't exist - open the manifest.json in this folder on the test device and add this:
"version": "2022.02.02"
to the file and save it. This is needed now for custom components but not for regular ones. - restart core via the supervisor panel and reload the supervisor
- install
zhaws
Configuration -> Devices & Services -> Add Integration -> ZHAWS - follow the prompts to set up the integration leaving the use addon box checked. This can take ~50-10 minutes depending on the hardware used because the addon is built locally for testing