Error when switching several devices simultaneously

When switching several devices (5 shelly wave plugs) simultaneously, i sometimes get the following error:

2025-04-25 22:04:33.342 INFO Z-WAVE: [Node 108] Value updated: 37-0-duration 0s => 0s
2025-04-25 22:04:33.351 INFO Z-WAVE: [Node 108] Value updated: 37-0-targetValue false => true
2025-04-25 22:04:33.355 INFO Z-WAVE: [Node 108] Value updated: 37-0-currentValue false => true
2025-04-25T20:04:33.521Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:33.855Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:33.900Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:34.165Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:34.246Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:34.303Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:34.771Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:35.109Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:35.179Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:36.564Z DRIVER   Dropping message with invalid payload
2025-04-25T20:04:37.496Z DRIVER   Dropping message with invalid payload
2025-04-25 22:04:37.541 INFO Z-WAVE: [Node 110] Value updated: 37-0-duration 0s => 0s
2025-04-25 22:04:37.542 INFO Z-WAVE: [Node 110] Value updated: 37-0-targetValue true => false
2025-04-25 22:04:37.544 INFO Z-WAVE: [Node 110] Value updated: 37-0-currentValue true => false
2025-04-25 22:04:38.126 INFO Z-WAVE: [Node 110] Metadata updated: 50-0-value-66049
2025-04-25 22:04:38.132 INFO Z-WAVE: [Node 110] Value updated: 50-0-value-66049 2.7 => 0
2025-04-25 22:04:38.773 INFO APP: GET /health/zwave 301 0.281 ms - 162
2025-04-25 22:04:38.913 ERROR Z-WAVE-SERVER: Unexpected error (0 , import_serial.isAnySendDataResponse) is not a function
TypeError: (0 , import_serial.isAnySendDataResponse) is not a function
    at Driver.executeTransaction (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:6385:8)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Driver.drainTransactionQueue (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:6270:5)
2025-04-25 22:04:39.220 INFO Z-WAVE: [Node 104] Value updated: 37-0-duration 0s => 0s
2025-04-25 22:04:39.220 INFO Z-WAVE: [Node 104] Value updated: 37-0-targetValue false => true
2025-04-25 22:04:39.222 INFO Z-WAVE: [Node 104] Value updated: 37-0-currentValue false => true

Instead, switching each device separatly, causes no error. Homeassistant is in hyper-v, the aeotec gen5+ stick is on a raspberry pi, connected to ha by tcp: using ser2net.

What might be the reason?

It’s interesting that you’ve posted this about 6 hours ago since I’m hitting this as well just today, and this is the only post I’ve seen with this exact same error (Unexpected error (0 , import_serial.isAnySendDataResponse) is not a function TypeError: (0 , import_serial.isAnySendDataResponse) is not a function). I’m wondering if this is a newly introduced bug.

I also see a similar error. I have a helper that creates a group of lights. Some of those lights themselves have helpers that change the type from switch to light.
When I turn on (or off) the group of lights, I sometimes get errors, but not always.
It has only started recently.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:09:28 (1 occurrences)
Last logged: 10:09:28

[546600496016] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 648, in async_handle_light_on_service
    await light.async_turn_on(**filter_turn_on_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/group/light.py", line 182, in async_turn_on
    await self.hass.services.async_call(
    ...<5 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1032, in entity_service_call
    raise result from None
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1628, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 648, in async_handle_light_on_service
    await light.async_turn_on(**filter_turn_on_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/light.py", line 271, in async_turn_on
    await self._async_set_brightness(brightness, transition)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/light.py", line 399, in _async_set_brightness
    await self._async_set_value(
        self._target_brightness, zwave_brightness, zwave_transition
    )
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/entity.py", line 337, in _async_set_value
    raise HomeAssistantError(
        f"Unable to set value {value.value_id}: {err}"
    ) from err
homeassistant.exceptions.HomeAssistantError: Unable to set value 36-38-1-targetValue: unknown_error: TypeError: (0 , import_serial.isAnySendDataResponse) is not a function
    at Driver.executeTransaction (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:6385:8)
    at Driver.drainTransactionQueue (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:6270:5)

I am using a raspberry pi 5 running HAOS 2025.4.4 and using a UZB by Z-Wave.Me running Firmware: 5.25.

@RobinA @tenpaiyomi There are two things I’ve notified:

  1. I believe this error is new after having upgraded to the latest z-wave js ui version from the previous version some days ago.
  2. Before this upgrade, instead of getting this error I had the problem with dead nodes, especially when switching more than one device simultaneously. This didn’t occure any longer since the update any more, in favour of this new error. But devices get switched despite.

I suppose they fixed something regarding the dead nodes issue, which causes this new error now?

Where to report this issue best? On the GitHub repository for homeassistant itself, for the z-wave js ui, or for the z-wave js ui addon only?