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

Controller status is "Unknown state". #3891

Closed
3 tasks done
kpine opened this issue Sep 13, 2024 · 1 comment
Closed
3 tasks done

Controller status is "Unknown state". #3891

kpine opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kpine
Copy link
Contributor

kpine commented Sep 13, 2024

Checklist

  • I am not using Home Assistant. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog and my problem is not mentioned there.

Deploy method

Docker

Z-Wave JS UI version

9.18.1.fe0ba05

ZwaveJS version

13.2.0

Describe the bug

The controller state is shown as "Unknown state".

image

To Reproduce

No steps.

Expected behavior

Correct state is shown.

Additional context

Driver itself gives an inclusion state, so it must be down to how ZUI is calculating it.

const { logger, zwaveClient, require } = this
logger.info(`Controller inclusion state: ${driver.controller.inclusionState}`);

Output at time of UI "Unknown state" is:

Sep 13 10:25:04 zui[302191]: 2024-09-13 10:25:04.325 INFO Z-WAVE: Calling api driverFunction with args: [
Sep 13 10:25:04 zui[302191]:   'const { logger, zwaveClient, require } = this\n' +
Sep 13 10:25:04 zui[302191]:     'logger.info(`Controller inclusion state: ${driver.controller.inclusionState}`);',
Sep 13 10:25:04 zui[302191]:   [length]: 1
Sep 13 10:25:04 zui[302191]: ]
Sep 13 10:25:04 zui[302191]: 2024-09-13 10:25:04.328 INFO Z-WAVE: Controller inclusion state: 0
Sep 13 10:25:04 zui[302191]: 2024-09-13 10:25:04.329 INFO Z-WAVE: Success zwave api call driverFunction undefined

0 is InclusionState.Idle.

@kpine kpine added the bug Something isn't working label Sep 13, 2024
@robertsLando
Copy link
Member

I think this is due to the change with controller events, I forgot to init the value as before the only way I had to get updates of the inclusion state was to use an interval. Fixing it asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants