Skip to content
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

Failed to set up ZHA - Network Formation Refused #135888

Open
raolss opened this issue Jan 17, 2025 · 5 comments
Open

Failed to set up ZHA - Network Formation Refused #135888

raolss opened this issue Jan 17, 2025 · 5 comments

Comments

@raolss
Copy link

raolss commented Jan 17, 2025

The problem

Can't set up ZHA. It was preceded by another error NetworkFormation: Network formation refused

What version of Home Assistant Core has the issue?

2024.12.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

integration:zha

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

2025-01-17 23:16:01.474 DEBUG (MainThread) [homeassistant.components.zha] Failed to set up ZHA
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/api.py", line 588, in _command
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/local/lib/python3.13/site-packages/zha/application/gateway.py", line 275, in async_initialize
    await self._async_initialize()
  File "/usr/local/lib/python3.13/site-packages/zha/application/gateway.py", line 258, in _async_initialize
    await self.application_controller.startup(auto_form=True)
  File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 220, in startup
    await self.connect()
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/zigbee/application.py", line 98, in connect
    await api.connect()
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/api.py", line 467, in connect
    await self.version()
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/api.py", line 812, in version
    self._protocol_version = await self.read_parameter(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
        NetworkParameter.protocol_version
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/api.py", line 831, in read_parameter
    rsp = await self.send_command(
          ^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/api.py", line 507, in send_command
    return await self._command(cmd, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/zigpy_deconz/api.py", line 587, in _command
    async with asyncio_timeout(COMMAND_TIMEOUT):
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

Additional information

No response

@home-assistant
Copy link

Hey there @dmulcahey, @Adminiuga, @puddly, @TheJulianJES, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation
zha source
(message by IssueLinks)

@puddly
Copy link
Contributor

puddly commented Jan 17, 2025

Please include the whole debug log.

@raolss
Copy link
Author

raolss commented Jan 17, 2025

@puddly
Copy link
Contributor

puddly commented Jan 18, 2025

You're running Supervised so it's likely that your Docker container doesn't have the serial port passed through correctly. ZHA can't connect to your radio.

@raolss raolss changed the title Failed to set up ZHA Failed to set up ZHA - Network Formation Refused Jan 18, 2025
@raolss
Copy link
Author

raolss commented Jan 18, 2025

Maybe this is because I installed DeConz to see if it could resolve the issue I originally had - Network Formation Refused. I uninstalled it and now I am getting the Network Formation Refused error again. I have tried moving the Conbee II further away. It's now 1,5 meter from anything else. This problem just occurred when I wasn't even home and was not related to any other changes to the system.

home-assistant_zha_2025-01-18T06-43-36.289Z.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants