Skip to content

fix: getCoordinatorInfo throws while zigbee-herdsman is not started - #3043

Merged
asgothian merged 1 commit into
ioBroker:masterfrom
Schimi1983:fix/coordinator-info-log
Nov 17, 2026
Merged

asgothian merged 1 commit into
ioBroker:masterfrom
Schimi1983:fix/coordinator-info-log

Conversation

@Schimi1983

Copy link
Copy Markdown
Contributor

Problem
getCoordinatorInfo() is a method of the adapter class (main.js), but the "not connected" branch reads this.adapter.config.autostart. this.adapter is undefined there, so every call before zigbee-herdsman has started (e.g. the admin tab or config page open while the adapter starts) throws. The catch only logs exception raised in getCoordinatorInfo without any detail.

Fix

  • this.adapter.config.autostart → this.config.autostart (2 places)
  • include the error message in the warning

Tested
On my installation (3.6.0-dev, ZStack over LAN): before, every adapter start with the config page/tab open logged exception raised in getCoordinatorInfo (once or twice). With the fix: restart with the config page open → no warning.

Install for testing: https://github.com/Schimi1983/ioBroker.zigbee/tarball/fix/coordinator-info-log

🤖 Generated with Claude Code

https://claude.ai/code/session_013Q82LhA9wBMqm1L1powvy6

getCoordinatorInfo() is a method of the adapter, but the "not connected"
branch read this.adapter.config.autostart - this.adapter is undefined
there, so every call before zigbee-herdsman has started (e.g. the admin
tab open during adapter start) ended in the catch block and logged
"exception raised in getCoordinatorInfo" without any detail.

Use this.config.autostart and include the error message in the warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Q82LhA9wBMqm1L1powvy6
@asgothian
asgothian merged commit 134b1f9 into ioBroker:master Nov 17, 2026
11 checks passed
@Schimi1983
Schimi1983 deleted the fix/coordinator-info-log branch November 17, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants