logo smart home family kruse

Kruse Smart Home

Easy living in our smart home & Garden

How to fix Home Assistant Z-Wave connection issue?

How to fix Home Assistant Z-Wave connection issue?

30 October 2022

Jan-Willem

1. Issue

Z-Wave devices are not accessible as Home Assistant cannot connect to the host as indicated by the Z-Wave JS integration
Z-Wave JS integration warning that it cannot connect to host

Z-Wave JS integration warning that it cannot connect to host

Clicking on the configure link gives the message “Z-Wave JS: Retrying setup”, “Failed to connect: Cannot connect to host …..” as in the example below.

2. Cause

Possible causes based on my own experience:

  • changing the Z-Wave controller from USB port on the Raspberry Pi 4;
  • a Home Assistant update;
  • moving the SD-card with Home Assistant to another Raspberry Pi 4.

3. Solution

The next sections describe how to fix the Home Assistant Z-Wave connection issue due to a change in USB port ID to which the Z-Wave controller is attached.

3.1 Quick steps

The quick steps below are for the experienced Home Assistant user. Less experienced users are recommended to skip this section and follow the detailed steps in section 3.2.

  1. Find out the correct USB port off the Z-Wave controller
  2. In the Home Assistant sidebar select Z-Wave JS
  3. Click on the hamburger menu in the top left of the Z-Wave JS control panel and select settings.
  4. Open the Z-Wave section
  5. Change the USB port under Serial Port to the correct port.
  6. Save the new settings by clicking on save in the lower right.
  7. Check Z-Wave is working again.

3.2 Detailed steps

The steps below describe in detail how to fix the Home Assistant Z-Wave connection caused by a change in USB port ID registered for the Z-Wave controller.

  1. Find out the correct USB port by opening the Hardware menu under Settings > System > Hardware.
  2. Click on the 3 dots in the upper right and select “All” from the menu.
  3. Type “tty” in the search box and remember the port ID of the Z-Wave controller. I am using the Aeotec Z-Stick 7 Z-wave controller, which is using the Z-Wave chip from Silicon labs. So ttyUSB0 is in my case the correct port.

    The ttyUSB1 port has my Plugwise stick inserted.

  4. In the Home Assistant sidebar select Z-Wave JS
    The control panel for Z-Wave JS does not list any devices and shows a red error message “Driver: Failed to initialize the driver: ZWave Error: Timeout while waiting for an ACK from the controller (ZW0200) at Driver…”

  5. Click on the hamburger menu in the top left of the Z-Wave JS control panel
    and select “Settings” from the menu
  6. Open the Z-Wave section
  7. Change the USB port under Serial Port to the correct port.
  8. Save the new settings by clicking on save in the lower right.
  9. The warning in the header of the Z-Wave JS control panel should have been disappeared.

    When going back to Home Assistant settings > Devices & Services the Z-Wave JS integration might still show the warning.  Click on the 3 dots and select Reload.
    The Z-Wave JS integration warning should be disappeared.

 

Article by <a href="https://smarthome.familykruse.eu/author/iamjwk/" target="_self">Jan-Willem</a>

Article by Jan-Willem

Position

Writen by the website owner

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *