Skip to content

ZHA Broken in 2020.5, Error setting up entry TI CC2531 USB #50912

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

Closed
Sjorsa opened this issue May 20, 2021 · 4 comments
Closed

ZHA Broken in 2020.5, Error setting up entry TI CC2531 USB #50912

Sjorsa opened this issue May 20, 2021 · 4 comments
Assignees

Comments

@Sjorsa
Copy link
Contributor

Sjorsa commented May 20, 2021

The problem

I have updated to 2020.5 and down to 2020.4 two times now, and in 2020.5 I get this error and my zigbee network does not work anymore, all 18 devices and 48 entities are unavailable. In 2020.4 everything works fine.
Error setting up entry TI CC2531 USB CDC, s/n: __0X00124B0014D96121 - Texas Instruments for zha

What is version of Home Assistant Core has the issue?

core-2021.5.5

What was the last working version of Home Assistant Core?

2020.4

What type of installation are you running?

Home Assistant Container

Integration causing the issue

ZHA

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

raceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 269, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 102, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 155, in async_initialize
    app_config = app_controller_cls.SCHEMA(app_config)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: path does not exist for dictionary value @ data['device']['path']

Additional information

No response

@Adminiuga
Copy link
Contributor

Check the release notes and breaking changes. New docker container is not running udev, so your path is probably missing.

On the side note, consider upgrading the cc2531. It just not adequate anymore. https://www.tubeszb.com/ have some nice alternatives.

Per se this is not a zha issue, but caused by breaking changes in the container. Feel free to submit feedback in the ha docker repo.

@Sjorsa
Copy link
Contributor Author

Sjorsa commented May 20, 2021

Are there docker-specific patch notes somewhere? I don't see breaking changes about ZHA on the official 2021.5 release notes.

@Adminiuga
Copy link
Contributor

Not about zha. The change was about container disabling udev. No udev -> no serial path in container -> no zha

@Derkades
Copy link

The solution is to refer to devices by their main path (e.g /dev/ttyUSB0) instead of symlinks in /dev/serial/by-id. Described in more detail here: #50289 (comment).

Commit that disabled these symlinks by default: home-assistant/docker@93a881b

@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants