Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB adapter discovery error (No valid USB adapter found) #24187

Closed
Koenkk opened this issue Oct 2, 2024 · 3 comments
Closed

USB adapter discovery error (No valid USB adapter found) #24187

Koenkk opened this issue Oct 2, 2024 · 3 comments

Comments

@Koenkk
Copy link
Owner

Koenkk commented Oct 2, 2024

TL;DR

Add adapter (likely zstack, see docs for more info) to your Zigbee2MQTT configuration.yaml, example:

serial:
  port: /dev/ttyACM0
  adapter: zstack # <-- Add this line

What changed?

Koenkk/zigbee-herdsman#1197 brings improvements to the adapter discovery feature. This feature allows Zigbee2MQTT to automatically detect your adapter (preventing the need for a serial section in configuration.yaml).

In case Zigbee2MQTT could not automatically detect the type of adapter, it would default to zstack. This gives issues to people using other adapters. When not specifying the adapter and when using e.g. an EZSP adapter, Zigbee2MQTT will fail to start with Error: SRSP - SYS - ping after 6000ms instead of a clear error message. This behaviour has now been changed. Starting from 1.41.0, in case Zigbee2MQTT cannot automatically detect your adapter, you have to explicitly specify the serial port and adapter.

This change in behaviour has 1 drawback. In case Zigbee2MQTT defaulted to zstack before in your setup, it will now fail to start with USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.. This can be fixed by adding adapter: zstack to your Zigbee2MQTT configuration.yaml as described above.

The full documentation can be found here.

@Koenkk Koenkk added problem Something isn't working and removed problem Something isn't working labels Oct 2, 2024
@Koenkk Koenkk changed the title USB adapter discovery error (No valid USB adapter found) USB adapter discovery error (No valid USB adapter found) Oct 2, 2024
@Enzokot
Copy link

Enzokot commented Oct 3, 2024

Could this error be related to the functionality under discussion? After adding the adapter: zstack option the error remains

[2024-10-02 09:02:44] error: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-02 09:02:44] debug: 	zh:adapter: Failed to validate path: 'Error: spawn udevadm ENOENT'

Debug log:
log.log

@aivult
Copy link

aivult commented Oct 3, 2024

Could this error be related to the functionality under discussion? After adding the adapter: zstack option the error remains

[2024-10-02 09:02:44] error: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-02 09:02:44] debug: 	zh:adapter: Failed to validate path: 'Error: spawn udevadm ENOENT'

Debug log: log.log

Have the same problem. Adding adapter line doesn't help

@Koenkk
Copy link
Owner Author

Koenkk commented Oct 3, 2024

The change has not been merged yet. Failed to validate path: 'Error: spawn udevadm ENOENT' means z2m doesn't have udev permissions (for the addon it will be fixed in zigbee2mqtt/hassio-zigbee2mqtt#637)

Repository owner locked and limited conversation to collaborators Oct 3, 2024
@Koenkk Koenkk converted this issue into discussion #24199 Oct 3, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants